Nagios stop hangs in FUTEX_WAIT

Ethan Galstad nagios at nagios.org
Thu Mar 1 19:07:09 CET 2007


Herbert Straub wrote:
> Ethan Galstad wrote:
>> Strange.  I haven't heard reports of this happening before and I've 
>> never encountered this myself.  I run FC4 on my development box, but its 
>> a 32-bit machine and it looks like you've got 64-bit hw.  Correct?  I'll 
>> try installing FC6 this weekend and see if I can replicate it.
>>
>> Has this always happened for you, or was there a recent update or some 
>> kind that caused this?  Also, how much time passed between using the 
>> init script to stop Nagios and the error message appearing?
>>
>>   
> Today i upgrade the installed (and patched) version Nagios 2.6 to Nagios
> 2.7 using the normal RPM packages (yum update nagios) and start Nagios.
> I try to stop the nagios process after three minutes with
> /etc/init.d/nagios stop and see:
> 
[snip]
> 
> Next rpm -ivh RPMS/x86_64/nagios-2.7-2hs1.x86_64.rpm and
> /etc/init.d/nagios start. After 3 minutes the stop command. I try this
> five times and there was no error stopping the process. The SRC rpm
> contains the original nagios-2.7.tar.gz - i compare the md5sum:
> d664d2785cdca3c5c8a3e84c033e8e6e. I'm testing this on a 64 bit machine
> with Fedora Core 6 and 2.6.19-1.2895.fc6xen. I know, that this problem
> situation also happens on a 32bit-SMP Fedora Core 4 machine without xen
> kernel.
> 
> I could be wrong, but is it possible a problem to call syslog() in a
> signal hander? Look at the following articles:
> 
> Very old, but this hits the same situation:
> http://sourceware.org/ml/libc-hacker/2004-06/msg00046.html
> 
> Newer and possible the same situation
> http://www-gatago.com/comp/mail/imap/27579981.html
> 
> Regards
> Herbert Straub
> 

I just moved the logging functions out of sighandler() to avoid this 
potential problem.  Patches will be made to the Nagios 3 CVS code first, 
for people to test out a bit before I apply it to Nagios 2.



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