All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] a problem with lm-sensor 2.10.7.
Date: Tue, 11 Nov 2008 09:31:55 +0000	[thread overview]
Message-ID: <20081111103155.36b8a5bd@hyperion.delvare> (raw)
In-Reply-To: <BLU118-W44880F25FDEF937C07D991A21A0@phx.gbl>

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

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2008-11-11  9:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-10 18:20 [lm-sensors] a problem with lm-sensor 2.10.7 Sergio Gutierrez Verde
2008-11-10 18:38 ` Matt Roberds
2008-11-11  9:31 ` Jean Delvare [this message]
2008-11-11 10:22 ` Sergio Gutierrez Verde
  -- strict thread matches above, loose matches on Subject: below --
2008-11-11  7:56 Sergio Gutierrez Verde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081111103155.36b8a5bd@hyperion.delvare \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.