Public bug reported: Kernel v2.6.26-rc2 on Dell XPS M1330 (Core Duo 2 CPU).
The program reports "sensors_init: Kernel interface error" and segfaults. The reason is that the code attempts to fclose a NULL pointer caused by the changed (again) layout of /sys/class/hwmon, which contains a "virtual" entry (note hwmon0 in the listing below). The attached patch fixes the crash, so the program just reports the error and exits. /sys/class/hwmon/: total 0 drwxr-xr-x 3 root root 0 2008-05-15 19:58 hwmon0/ drwxr-xr-x 3 root root 0 2008-05-15 19:58 hwmon1/ drwxr-xr-x 3 root root 0 2008-05-15 19:58 hwmon2/ /sys/class/hwmon/hwmon0: total 0 -r--r--r-- 1 root root 4.0K 2008-05-15 20:30 name drwxr-xr-x 2 root root 0 2008-05-15 20:30 power/ lrwxrwxrwx 1 root root 0 2008-05-15 19:59 subsystem -> ../../hwmon/ -r--r--r-- 1 root root 4.0K 2008-05-15 20:30 temp1_crit -r--r--r-- 1 root root 4.0K 2008-05-15 20:30 temp1_input -rw-r--r-- 1 root root 4.0K 2008-05-15 19:58 uevent /sys/class/hwmon/hwmon0/power: total 0 -rw-r--r-- 1 root root 4.0K 2008-05-15 21:42 wakeup /sys/class/hwmon/hwmon1: total 0 lrwxrwxrwx 1 root root 0 2008-05-15 19:58 device -> ../../../devices/platform/coretemp.0/ drwxr-xr-x 2 root root 0 2008-05-15 20:30 power/ lrwxrwxrwx 1 root root 0 2008-05-15 19:59 subsystem -> ../../hwmon/ -rw-r--r-- 1 root root 4.0K 2008-05-15 19:58 uevent /sys/class/hwmon/hwmon1/power: total 0 -rw-r--r-- 1 root root 4.0K 2008-05-15 21:42 wakeup /sys/class/hwmon/hwmon2: total 0 lrwxrwxrwx 1 root root 0 2008-05-15 19:58 device -> ../../../devices/platform/coretemp.1/ drwxr-xr-x 2 root root 0 2008-05-15 20:30 power/ lrwxrwxrwx 1 root root 0 2008-05-15 19:59 subsystem -> ../../hwmon/ -rw-r--r-- 1 root root 4.0K 2008-05-15 19:58 uevent /sys/class/hwmon/hwmon2/power: total 0 -rw-r--r-- 1 root root 4.0K 2008-05-15 21:42 wakeup ** Affects: lm-sensors (Ubuntu) Importance: Undecided Status: New -- The sensors program crashes on 2.6.26+ https://bugs.launchpad.net/bugs/230839 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs