Some errors with SIGSEGV
matthias.flittner at nethinks.com
matthias.flittner at nethinks.com
Fri Mar 9 11:10:03 CET 2007
If I'm running Nagios 3.0a1 it crashes always after a few seconds.
In the log I only found:
Mar 8 15:35:18 nagios: Nagios 3.0a1 starting... (PID=24492)
Mar 8 15:35:18 nagios: LOG VERSION: 2.0
Mar 8 15:35:18 nagios: Finished daemonizing... (New PID=24493)
Mar 8 15:35:28 nagios: HOST ALERT: localhost;UP;SOFT;2;PING OK - Packet
loss = 0%, RTA = 0.05 ms
Here the last signs of life captured by strace:
rename("/usr/local/nagios/var/nagios.tmpNdmpn0",
"/usr/local/nagios/var/status.dat") = 0
gettimeofday({1173359616, 173629}, NULL) = 0
time([1173359616]) = 1173359616
gettimeofday({1173359616, 173998}, NULL) = 0
time([1173359616]) = 1173359616
gettimeofday({1173359616, 174363}, NULL) = 0
gettimeofday({1173359616, 174552}, NULL) = 0
time([1173359616]) = 1173359616
gettimeofday({1173359616, 174968}, NULL) = 0
time([1173359616]) = 1173359616
time([1173359616]) = 1173359616
gettimeofday({1173359616, 175746}, NULL) = 0
umask(077) = 02
gettimeofday({1173359616, 176092}, NULL) = 0
getpid() = 3459
open("/tmp/nagiosYBuC2d", O_RDWR|O_CREAT|O_EXCL, 0600) = 7
fcntl64(7, F_GETFL) = 0x2 (flags O_RDWR)
fstat64(7, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7fcf000
_llseek(7, 0, [0], SEEK_CUR) = 0
umask(02) = 077
gettimeofday({1173359616, 177807}, NULL) = 0
time([1173359616]) = 1173359616
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7e610c8) = 3467
--- SIGCHLD (Child exited) @ 0 (0) ---
close(7) = 0
munmap(0xb7fcf000, 4096) = 0
waitpid(3467, NULL, 0) = 3467
time([1173359616]) = 1173359616
time(NULL) = 1173359616
gettimeofday({1173359616, 183489}, NULL) = 0
gettimeofday({1173359616, 183686}, NULL) = 0
nanosleep({0, 250000000}, 0) = ? ERESTART_RESTARTBLOCK (To be
restarted)
+++ killed by SIGSEGV +++
This error captured bei gdb
nagios1:/usr/local/nagios/bin# gdb nagios
GNU gdb 6.3-debian
Copyright 2004 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 "i386-linux"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".
(gdb) r /usr/local/nagios/etc/nagios.cfg
Starting program: /usr/local/nagios/bin/nagios
/usr/local/nagios/etc/nagios.cfg
[Thread debugging using libthread_db enabled]
[New Thread -1209560960 (LWP 931)]
Nagios 3.0a1
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 03-06-2007
License: GPL
Nagios 3.0a1 starting... (PID=931)
[New Thread -1209775184 (LWP 934)]
[New Thread -1218163792 (LWP 935)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218163792 (LWP 935)]
0xb7eed215 in mallopt () from /lib/tls/libc.so.6
(gdb) bt
#0 0xb7eed215 in mallopt () from /lib/tls/libc.so.6
#1 0xb7eebf02 in realloc () from /lib/tls/libc.so.6
#2 0x0807785e in dbuf_strcat (db=0x80c6680,
buf=0xb76448c0
"1=1\n2=localhost\n3=\n4=0\n5=1\n6=1\n7=/tmp/nagiosUJ95U0\n8=nan\n9=1173431091.188930\n10=1173431095.208425\n11=0\n12=1\n13=0\n\n")
at utils.c:4924
#3 0x08077d70 in check_result_worker_thread (arg=0x0) at utils.c:5373
#4 0xb7fb6b63 in start_thread () from /lib/tls/libpthread.so.0
#5 0xb7f5218a in clone () from /lib/tls/libc.so.6
This errors all happened on a Debian Sarge 32Bit Version with the Kernel
2.6.20.1
Thanks in advance,
FliTTi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070309/015921e4/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list