Re: [Nagios-devel] 3.0b6 crashes with SIGSEGV

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] 3.0b6 crashes with SIGSEGV

Post by Guest »


>
> Can you run the unstripped nagios binary under gdb and do a backtrace
> when it segfaults? That will help track down the source of the segfault.
>
>
> cd /base
> gdb --args ./nagios /usr/local/nagios/etc/nagios.cfg
> r
>
> When it segfaults, do a backtrace...
>
> bt
>
> and send the output.
>

Confirmed. With the actual cvs code I got a Segfault.

It seems that it is a segfaulting fork, cause gdb doesn't break the run,
it is still running until a

Here's the bt:

###
Nagios 3.0b6 starting... (PID=24645)
Local time is Tue Nov 06 19:49:48 CET 2007
[New Thread -1211335776 (LWP 24648)]
Caught SIGSEGV, shutting down...





bt

Program received signal SIGINT, Interrupt.
[Switching to Thread -1211103568 (LWP 24645)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7ec0376 in ?? () from /lib/libpthread.so.0
#2 0x0806d8ed in event_execution_loop () at events.c:1124
#3 0x08055e2e in main (argc=Cannot access memory at address 0x0
) at nagios.c:793

(gdb) kill
Kill the program being debugged? (y or n) y
(gdb) q

###

Interesting thing: The SIGSEGV is mentioned in the nagios.log:

[1194375179] Caught SIGSEGV, shutting down...
[1194375179] Caught SIGSEGV, shutting down...
[1194375179] Caught SIGSEGV, shutting down...
[1194375179] Caught SIGSEGV, shutting down...
[1194375179] Caught SIGSEGV, shutting down...
[1194375179] Caught SIGSEGV, shutting down...
[1194375179] Caught SIGSEGV, shutting down...

Regards
Hendrik





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked