Re: [Nagios-devel] Nagios 3.0 RC2: Segmentation faults after
Posted: Thu Feb 14, 2008 1:53 am
This is a cryptographically signed message in MIME format.
--------------ms060807040009070607000907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi Christian,
Christian Schneemann schrieb:
> Hallo,
> our test Nagios dies after every restart with a segmentation fault since last
> week.
> I have tried to find the error with gdb. I hope someone can point me to my
> error.
>
>
> d139:/etc/nagios/objects/hosts #
> gdb --args /usr/sbin/nagios /etc/nagios/nagios.cfg
> GNU gdb 6.6
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "x86_64-suse-linux"...
> (no debugging symbols found)
Please try again with a modified makefile.
You need to 'enable' the CFLAGS used for valgrind in base/Makefile and
re-compile the binary.
After that try to run nagios against the binary in base/nagios or do a
make install-unstripped
That should include debug information to the binary and the gdb should
be more verbose.
> Using host libthread_db library "/lib64/libthread_db.so.1".
> (gdb) run
May be the gdb command: "set follow-fork-mode child" would be nice here
but I don't know exactly.
> Starting program: /usr/sbin/nagios /etc/nagios/nagios.cfg
> (no debugging symbols found)
>>>>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 47105982427648 (LWP 15658)]
> 0x000000000043b90a in process_check_result_queue ()
> (gdb) bt
> #0 0x000000000043b90a in process_check_result_queue ()
> #1 0x000000000041c536 in reap_check_results ()
> #2 0x0000000000429119 in handle_timed_event ()
> #3 0x0000000000429701 in event_execution_loop ()
> #4 0x00000000004120fe in main ()
hm... check_result_queue...
Do you have any old checkresult files in the spool directory which could
cause the problem?
Kind Regards
Hendrik
--------------ms060807040009070607000907
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIA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ICCQCm2uXMgNJKLDAN
BgkqhkiG9w0BAQUFADBPMQswCQYDVQQGEwJERTEMMAoGA1UECBMDTlJXMRwwGgYDVQQKExNC
YWVja2VyIElUIFNlcnZpY2VzMRQwEgYDVQQDEwtpbnRlcm5hbCBDQTAeFw0wNzA4MDgxMzEx
MThaFw0wODA4MDcxMzExMThaMHsxCzAJBgNVBAYTAkRFMQwwCgYDVQQIEwNOUlcxHDAaBgNV
BAoTE0JhZWNrZXIgSVQgU2VydmljZXMxGDAWBgNVBAMTD0hlbmRyaWsgQmFlY2tlcjEmMCQG
CSqGSIb3DQEJARYXYW5kdXJpbkBwcm9jZXNzLXplcm8uZGUwgZ8wDQYJKoZIhvcNAQEBBQAD
gY0AMIGJAoGBAJ9MdGOUbOUVjqr6sVAmSmwM4pl4RCpOhRkLcZsxqS01xSdtsk60O9zKTNIM
23A05WTECJwQL9jtdf2yjEpRrdBlwXGnU+muYZX7L64RrdjqCRRdNqUlaM1YBRFTGKLSEjBf
iF3B5SI6U19Gs4JdVH/Tnq9F/VmL7wPTBPT6HQfHAgMBAAGjgY8wgYwwCQYDVR0TBAIwADAR
BglghkgBhvhCAQEEBAMCBaAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wgR2
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
--------------ms060807040009070607000907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi Christian,
Christian Schneemann schrieb:
> Hallo,
> our test Nagios dies after every restart with a segmentation fault since last
> week.
> I have tried to find the error with gdb. I hope someone can point me to my
> error.
>
>
> d139:/etc/nagios/objects/hosts #
> gdb --args /usr/sbin/nagios /etc/nagios/nagios.cfg
> GNU gdb 6.6
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "x86_64-suse-linux"...
> (no debugging symbols found)
Please try again with a modified makefile.
You need to 'enable' the CFLAGS used for valgrind in base/Makefile and
re-compile the binary.
After that try to run nagios against the binary in base/nagios or do a
make install-unstripped
That should include debug information to the binary and the gdb should
be more verbose.
> Using host libthread_db library "/lib64/libthread_db.so.1".
> (gdb) run
May be the gdb command: "set follow-fork-mode child" would be nice here
but I don't know exactly.
> Starting program: /usr/sbin/nagios /etc/nagios/nagios.cfg
> (no debugging symbols found)
>>>>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 47105982427648 (LWP 15658)]
> 0x000000000043b90a in process_check_result_queue ()
> (gdb) bt
> #0 0x000000000043b90a in process_check_result_queue ()
> #1 0x000000000041c536 in reap_check_results ()
> #2 0x0000000000429119 in handle_timed_event ()
> #3 0x0000000000429701 in event_execution_loop ()
> #4 0x00000000004120fe in main ()
hm... check_result_queue...
Do you have any old checkresult files in the spool directory which could
cause the problem?
Kind Regards
Hendrik
--------------ms060807040009070607000907
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFuDCC
AtgwggJBoAMCAQICCQCm2uXMgNJKLDANBgkqhkiG9w0BAQUFADBPMQswCQYDVQQGEwJERTEM
MAoGA1UECBMDTlJXMRwwGgYDVQQKExNCYWVja2VyIElUIFNlcnZpY2VzMRQwEgYDVQQDEwtp
bnRlcm5hbCBDQTAeFw0wNzA4MDgxMzExMThaFw0wODA4MDcxMzExMThaMHsxCzAJBgNVBAYT
AkRFMQwwCgYDVQQIEwNOUlcxHDAaBgNVBAoTE0JhZWNrZXIgSVQgU2VydmljZXMxGDAWBgNV
BAMTD0hlbmRyaWsgQmFlY2tlcjEmMCQGCSqGSIb3DQEJARYXYW5kdXJpbkBwcm9jZXNzLXpl
cm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LcZsxqS01xSdtsk60O9zKTNIM
23A05WTECJwQL9jtdf2yjEpRrdBlwXGnU+muYZX7L64RrdjqCRRdNqUlaM1YBRFTGKLSEjBf
iF3B5SI6U19Gs4JdVH/Tnq9F/VmL7wPTBPT6HQfHAgMBAAGjgY8wgYwwCQYDVR0TBAIwADAR
BglghkgBhvhCAQEEBAMCBaAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wgR2
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]