Ticket #2317 (closed defect: worksforme)

Opened 5 years ago

Last modified 5 years ago

sensors exits with segfault

Reported by: ticket Owned by: khali
Priority: minor Milestone:
Component: sensors Version: 3.0.1
Keywords: sensors slackware segfault Cc:

Description

Hello!

I'm setting up a small new server. I've installed system with some programs and the "sensors" was working well, but when I tried to run "sensors" again after some time, I get only "Segmentation fault".

So I tried about 3 versions of kernel, reverted update of libc and reinstalled binary version of lm_sensors. Today, I've tested compilation of latest lm_sensors, but this doesn't help.

I don't know what informations I should provide, so I'm attaching strace... If you want something more, leave me a message what do you need.

Strace made from 2.6.24.4, lm_sensors 3.0.1 with default sensors.conf.

System: Slackware-12.0 Kernels: 2.6.23, 2.6.23.12, 2.6.24.4 lm_sensors: 2.10.3, 2.10.6, 3.0.1

Motherboard: Gigabyte P35-DS3R (ICH9) chips/sensors: coretemp, it87 (IT8718F)

(oh, and sorry for bad spelling)

Attachments

sensors.strace.txt Download (16.0 KB) - added by ticket 5 years ago.

Change History

Changed 5 years ago by ticket

Changed 5 years ago by khali

  • owner changed from somebody to khali
  • status changed from new to assigned

I don't remember this problem being ever reported.

The crash seems to be related to gconv (usually from package glibc-locale). Did you update glibc-locale recently?

The kernel version probably doesn't matter at all. Does "LANG=C sensors" crash as well?

Can you please build lm-sensors with DEBUG=1 (uncomment the line in the Makefile), allow core dumps to be written (ulimit -c unlimited) and run sensors again? Hopefully it will give you a core file, which you can give to gdb to have a backtrace.

You could also try running sensors through valgrind, if there's an invalid memory access of any kind it should spot it.

Changed 5 years ago by ticket

I've tried running sensors with LANG=C, and it worked good... So I downgraded glibc-locale, but it still crashes.

I will try debug in next few days...

Changed 5 years ago by khali

This could be the gconv cache being out-of-sync with the actual gconv files. Try regenerating it (with iconvconfig) and see if it fixes the problem. The gconv cache is generally at /usr/lib/gconv/gconv-modules* (/usr/lib64/gconv/gconv-modules* if 64-bit distro).

That being said, I'd expect many other applications to crash then, not just sensors.

What is your locale normally set to? Please attach the output of "locale". Maybe I can reproduce your problem if I use the same locale settings.

Changed 5 years ago by ticket

After complete reinstall of glibc I've tried distro sensors (2.10.3) and it worked well. Today I've tried 3.0.1 and everything is working with locales en_US or to cs_CZ. So I can't reproduce the error again, so it looks like the error was maybe in gconv cache...

Reported problems was with locale (LANG+LC_ALL) en_US and cs_CZ.

Changed 5 years ago by khali

  • status changed from assigned to closed
  • resolution set to worksforme

OK, thanks for the update. For now I will conclude that the problem was external to sensors so there's nothing to fix on our side.

Note: See TracTickets for help on using tickets.