Some errors with SIGSEGV
Ethan Galstad
nagios at nagios.org
Thu Mar 29 19:12:13 CEST 2007
Herbert Straub wrote:
> Quoting matthias.flittner at nethinks.com:
>
>> Hello developers,
>> Hendrik supposed me to build the nagios source without the option '-O2'. I
>> have done this, but nothing changed. The SIGSEGV also happens in Version
>> 3.0a2 without the '-O2' option.
>> Output from gdb:
>> #0 0xb7e43e84 in mallopt () from /lib/tls/libc.so.6
>> #1 0xb7e42dcb in free () from /lib/tls/libc.so.6
>> #2 0x080774ac in my_free ()
>> #3 0x08073d4f in clear_volatile_macros ()
>> #4 0x0806c92c in log_host_event ()
>> #5 0x080706a8 in handle_host_state ()
>> #6 0x0805bfa8 in process_host_check_result_3x ()
>> #7 0x0805bc42 in handle_async_host_check_result_3x ()
>> #8 0x08057533 in reap_check_results ()
>> #9 0x0806ac7d in handle_timed_event ()
>> #10 0x0806aaea in event_execution_loop ()
>> #11 0x080554f1 in main ()
>
>
> I think this is a problem with glibc6 version (2.3.2.ds1-22sa) in
> debian sarge and the NPTL. I confirm the situation on a Debian Sarge
> machine. I got no errors with the following workaround:
>
> export LD_ASSUME_KERNEL=2.4.15
> /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
>
> The /debian/FAQ from glibc6 contains the following section:
> The application should continue to run for now, but when the warning message
> is printed use of the NPTL threading library, and other new kernel-2.6
> features, it's worth trying to set environment variable LD_ASSUME_KERNEL=2.4.1
> (switch to LinuxThreads instead of NPTL).
>
> Debian using glibc-2.3 Ubuntu 2.4, RHEL5 glib-2.5. Perhaps this could
> be a reason? See the debian changelog of glibc6:
> http://packages.debian.org/changelogs/pool/main/g/glibc/glibc_2.5-0exp6/changelog
>
> Best regards
> Herbert Straub
>
This could be a bug in glibc6 or NPTL, but it could also be a problem
with the thread code in Nagios. Perhaps in the signal handling or
thread startup or state information? I'm not sure where the problem
might lie, or where to go for pointers on finding the source of the
problem. Any threading gurus care to lend a hand?
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
More information about the Developers
mailing list