Hi Sergio, On Mon, 10 Nov 2008 19:20:05 +0100, Sergio Gutierrez Verde wrote: > I have a problem using a function of lm-sensors 2.10.7. > > In the next extract of code I try to get the CPU TEMP of a > certain chip. But when 'sensors_get_feature' is called, > there is a problem, a Segmentation fault. > I also try to use the most part of the code of lm-sensors > 2.10.7 (like main.c, chips.c and so on), but the problem persists. > The chip and the sensors are the right. If I can allow myself a side comment, writing code for libsensors 2.x today is a bit odd. The libsensors 3.x API is perfectly stable by now and it is much better than 2.x so you should really use 3.x for new applications. > Could anyone find the wrong in my code? Did you try building it with -Wall -W? In many cases it is sufficient to point you to the problematic code. -- Jean Delvare