Some errors with SIGSEGV

Andreas Ericsson ae at op5.se
Thu Mar 29 09:17:10 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:
> 

Well, since NPTL has been discontinued, widely regarded as a mistake with
a too complex implementation, I think it would be a good idea to just
recommend people not to use it.

> 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).
> 

Yup. I've seen the same happen for some other applications. It never became much
of an issue for those, as they had a pretty big warning in loads of places with
this solution pasted all over the place.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
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