Crash in hddtemp codepath with a SATA SSD drive
Steps to reproduce: 1. Add a SATA SSD drive, not supported by hddtemp, to /etc/conf.d/hddtemp: `HDDTEMP_DRIVES="... /dev/sdd"` 2. Run `"/etc/init.d/hddtemp restart"` 3. Run `"xfce4-panel -r"` ```` $ sudo hddtemp /dev/sdd WARNING: Drive /dev/sdd doesn't seem to have a temperature sensor. WARNING: This doesn't mean it hasn't got one. WARNING: If you are sure it has one, please contact me (hddtemp@guzu.net). WARNING: See --help, --debug and --drivebase options. /dev/sdd: Samsung SSD 850 PRO 256G B @: no sensor ```` ```` #0 __GI_raise (sig=sig@entry=6) at sys-libs/glibc-2.33-r1/work/glibc-2.33/signal/../sysdeps/unix/sysv/linux/raise.c:49 #1 0x00007fd8c5383526 in __GI_abort () at sys-libs/glibc-2.33-r1/work/glibc-2.33/stdlib/abort.c:79 #2 0x00007fd8c53d9b39 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fd8c54df83c "%s\n") at sys-libs/glibc-2.33-r1/work/glibc-2.33/libio/../sysdeps/posix/libc_fatal.c:155 #3 0x00007fd8c53e16ca in malloc_printerr (str=str@entry=0x7fd8c54e1c30 "double free or corruption (out)") at sys-libs/glibc-2.33-r1/work/glibc-2.33/malloc/malloc.c:5628 #4 0x00007fd8c53e2cd0 in _int_free (av=0x7fd8c5513ba0 <main_arena>, p=0x55a411135350, have_lock=<optimized out>) at sys-libs/glibc-2.33-r1/work/glibc-2.33/malloc/malloc.c:4547 #5 0x00007fd8c53e67e4 in __GI___libc_free (mem=<optimized out>) at sys-libs/glibc-2.33-r1/work/glibc-2.33/malloc/malloc.c:3309 #6 0x00007fd8c5579de9 in g_free () at dev-libs/glib-2.68.4/work/glib-2.68.4-abi_x86_64.amd64/../glib-2.68.4/glib/gmem.c:199 #7 0x00007fd8c553917f in ptr_array_free () at dev-libs/glib-2.68.4/work/glib-2.68.4-abi_x86_64.amd64/../glib-2.68.4/glib/garray.c:1471 #8 0x00007fd8c553a89c in g_ptr_array_free () at dev-libs/glib-2.68.4/work/glib-2.68.4-abi_x86_64.amd64/../glib-2.68.4/glib/garray.c:1444 >>>> #9 0x00007fd8c6388597 in free_chip (ptr_chip=ptr_chip@entry=0x55a411151490, unused=unused@entry=0x0) at middlelayer.c:311 >>>> #10 0x00007fd8c638c248 in initialize_hddtemp (chips=<optimized out>, suppress_message=suppress_message@entry=0x55a411290058) at hddtemp.c:437 #11 0x00007fd8c6387f03 in initialize_all (chips=chips@entry=0x55a41129a070, out_suppressmessage=out_suppressmessage@entry=0x55a411290058) at middlelayer.c:64 #12 0x00007fd8c63893ae in sensors_new (plugin=plugin@entry=0x55a4112841d0, plugin_config_filename=<optimized out>) at sensors-interface-common.c:53 #13 0x00007fd8c639d167 in create_sensors_control (plugin=plugin@entry=0x55a4112841d0) at sensors-plugin.c:2285 #14 0x00007fd8c639cfd1 in sensors_plugin_construct (plugin=plugin@entry=0x55a4112841d0) at sensors-plugin.c:2349 #15 0x00007fd8c639ba56 in xfce_panel_module_realize (xpp=0x55a4112841d0) at sensors-plugin.c:2393 .... ````
issue