Skip to contentSkip to conversation

#1385 (sensors segfault)

DISCUSSION Frido Ferdinand 2 participants 4 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

Regarding #1385:

---
It is completely different from ticket #1267.

Segfaults are often caused by old versions of libsensors being present on your system. Please look in both /usr/lib and /usr/local/lib for libsensor* and keep only the more recent version. Run "ldconfig" after that.

Another possibility is that you have different versions of i2c, lm_sensors modules and lm_sensors userspace tools mixed. Please check that too. How did you install the whole thing?

Follow up on the list ([email protected]), reference your ticket number.
---

There is only 1 version of libsensors around, this is 2.8.0, both i2c and lm_sensors where run from standard sources with ./configure; make; make install. Loaded modules right now are:

i2c-i801                4724   0  (unused)
i2c-dev                 4772   0  (unused)
i2c-proc                7312   1 
i2c-core               13924   1  [i2c-i801 i2c-dev i2c-proc]

/proc/sys/dev/sensors is empty except for chips, which has no entries.

Jorge Luis Borges (1899-1986) said, "Violence is the last sanctuary of the weak."

#1 lore raw
Quoted 22 lines

Regarding #1385:

---
It is completely different from ticket #1267.

Segfaults are often caused by old versions of libsensors being present on your system. Please look in both /usr/lib and /usr/local/lib for libsensor* and keep only the more recent version. Run "ldconfig" after that.

Another possibility is that you have different versions of i2c, lm_sensors modules and lm_sensors userspace tools mixed. Please check that too. How did you install the whole thing?

Follow up on the list ([email protected]), reference your ticket number.
---

There is only 1 version of libsensors around, this is 2.8.0, both i2c and lm_sensors where run from standard sources with ./configure; make; make install. Loaded modules right now are:

Quoted 6 lines
i2c-i801                4724   0  (unused)
i2c-dev                 4772   0  (unused)
i2c-proc                7312   1 
i2c-core               13924   1  [i2c-i801 i2c-dev i2c-proc]

/proc/sys/dev/sensors is empty except for chips, which has no entries.

(Please note that I don't remember the original ticket and can't access it right now.)

This directory being empty is normal since you don't have any chip driver loaded. "i2c-i801" is your bus driver. It allows accessing the chips but doesn't do anything from the user's point of view.

As for the segmentation fault, I know we already encountered the problem and that it was caused by the modules and the library to be from different versions. You say it's not the case here. I'd like you to double check. "sensors -v" will give you the sensors version. "dmesg" right after loading the i2c modules will give you the modules versions. If they don't match, you know why sensors-detect crashes.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Frido Ferdinand

Hi Jean,

Quoted 27 lines · Jean Delvare
Quoted 27 lines

Regarding #1385:

---
It is completely different from ticket #1267.

Segfaults are often caused by old versions of libsensors being present on your system. Please look in both /usr/lib and /usr/local/lib for libsensor* and keep only the more recent version. Run "ldconfig" after that.

Another possibility is that you have different versions of i2c, lm_sensors modules and lm_sensors userspace tools mixed. Please check that too. How did you install the whole thing?

Follow up on the list ([email protected]), reference your ticket number.
---

There is only 1 version of libsensors around, this is 2.8.0, both i2c and lm_sensors where run from standard sources with ./configure; make; make install. Loaded modules right now are:

i2c-i801                4724   0  (unused)
i2c-dev                 4772   0  (unused)
i2c-proc                7312   1 
i2c-core               13924   1  [i2c-i801 i2c-dev i2c-proc]
Quoted 8 lines
Quoted 1 line

/proc/sys/dev/sensors is empty except for chips, which has no entries.

(Please note that I don't remember the original ticket and can't access it right now.)

This directory being empty is normal since you don't have any chip driver loaded. "i2c-i801" is your bus driver. It allows accessing the chips but doesn't do anything from the user's point of view.

Thanks for pointing that out, I wasn't aware of that.

Quoted 6 lines

As for the segmentation fault, I know we already encountered the problem and that it was caused by the modules and the library to be from different versions. You say it's not the case here. I'd like you to double check. "sensors -v" will give you the sensors version. "dmesg" right after loading the i2c modules will give you the modules versions. If they don't match, you know why sensors-detect crashes.

dmesg:

i2c-core.o: driver unregistered: i2c-dev dummy driver i2c-core.o: adapter unregistered:
i2c-proc.o version 2.6.1 (20010825) i2c-dev.o: i2c /dev entries driver module i2c-core.o: driver i2c-dev dummy driver registered. i2c-i801 version 2.8.0 (20030714)
i2c-dev.o: Registered '' as minor 0 i2c-core.o: adapter registered as adapter 0.

Unable to handle kernel paging request at virtual address 0004002c
 printing eip:

sensors -v

sensors version 2.8.0

Does version problems also include kernel / version mismatch ? I use 2.4.21, but I recompiled it a few times after i installed lm_sensors. Offtopic: what new Intel P4 board does have good support for lm_sensors ? (For entry level server use)

Regards,

-- Frido Ferdinand

#3 lore raw
In reply to Frido Ferdinand
Quoted 9 lines
Quoted 8 lines

As for the segmentation fault, I know we already encountered the problem and that it was caused by the modules and the library to be from different versions. You say it's not the case here. I'd like you to double check. "sensors -v" will give you the sensors version. "dmesg" right after loading the i2c modules will give you the modules versions. If they don't match, you know why sensors-detect crashes.

Quoted 5 lines

dmesg:

i2c-proc.o version 2.6.1 (20010825)
(...)
i2c-i801 version 2.8.0 (20030714)

Bingo! Two modules with different versions. The i2c-proc module obviously comes from your kernel while i2c-i801 was installed from our packages.

Quoted 3 lines

Does version problems also include kernel / version mismatch ? I use 2.4.21, but I recompiled it a few times after i installed lm_sensors.

That's the problem. Recompiling (and reinstalling) overwrote our modules with the kernel ones. Reinstall our i2c package again and the trouble should be gone.

Quoted 2 lines

Offtopic: what new Intel P4 board does have good support for lm_sensors ? (For entry level server use)

That I can't say, sorry.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/