Segfault: I'm still dying here

David Schlecht dschlecht at doit.nv.gov
Mon Nov 20 20:46:41 CET 2006


Hi list

First, let me apologize for posting this same issue so many times, but I really, really need to get it resolved and I'm really really hoping someone can take a few minutes and help me out.

Nagios frequently segfaults when processing EXTERNAL commands. The cmd.cgi would hang, but research found that it was because Nagios had given up the other end of the nagios.cmd named pipe. Nagios has crashed and cmd.cgi hangs.

This has been happening for years, now with every version of Nagios, on any of numerous machines (32-bit, 64-bit, mainframe...) on different flavors of Linux including SUSe8, SLES9, and RH.

Doing a stack trace on the comatose Nagios v2.5 process, I get the following backtrace:
============
Detaching after fork from child process 19947.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208391264 (LWP 5431)]
0x0806c951 in hashfunc2 (name1=0x2 <Address 0x2 out of bounds>,
    name2=0x80f <Address 0x80f out of bounds>, hashslots=1024) at utils.c:4285
4285                    for(i=0;i<strlen(name1);i++)
(gdb)
(gdb) bt
#0  0x0806c951 in hashfunc2 (name1=0x2 <Address 0x2 out of bounds>,    name2=0x80f <Address 0x80f out of bounds>, hashslots=1024) at utils.c:4285
#1  0x080768a1 in find_service (host_name=0x2 <Address 0x2 out of bounds>,    svc_desc=dwarf2_read_address: Corrupted DWARF expression.) at ../common/objects.c:5016
#2  0x0808ef4b in handle_scheduled_downtime (temp_downtime=0x9f21c00) at ../common/downtime.c:311
#3  0x08063454 in handle_timed_event (event=0x9fa2728) at events.c:1289
#4  0x08063a9d in event_execution_loop () at events.c:964
#5  0x0805394d in main (argc=3, argv=0xbff3f274) at nagios.c:710
(gdb)


==========
Please help!



- David Schlecht (dschl)

-----------------------
The mailing list archive is found here:
http://www.nagiosexchange.org/nagios-users.34.0.html
				

-------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list