hobbitlaunch segfault / timewarp happend again

Alexander Keller hobbit at alexkeller.de
Fri Mar 7 11:06:27 CET 2008


Hi Henrik,

in january I reported a segfault with hobbitlaunch/timefunc.c. You quickly
provided a patch...

Now I'm having a new error - see core dump:

/opt/hobbit/client# gdb bin/hobbitlaunch core
GNU gdb 6.4-debian
Copyright 2005 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 "i486-linux-gnu"...Using host libthread_db
library "/lib/tls/i686/cmov/libthread_db.so.1".

Core was generated by `./bin/hobbitlaunch --config=./etc/clientlaunch.cfg
--log=./logs/clientlaunch.lo'.
Program terminated with signal 11, Segmentation fault.

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  errprintf (fmt=0x6b <Address 0x6b out of bounds>) at errormsg.c:42
42              time_t now = getcurrenttime(NULL);
(gdb) bt
#0  errprintf (fmt=0x6b <Address 0x6b out of bounds>) at errormsg.c:42
#1  0x0804f125 in getcurrenttime (retparm=0x0) at timefunc.c:73
#2  0x0804b9e0 in errprintf (fmt=0x6b <Address 0x6b out of bounds>) at
errormsg.c:42
#3  0x0804f125 in getcurrenttime (retparm=0x0) at timefunc.c:73
#4  0x0804b9e0 in errprintf (fmt=0x6b <Address 0x6b out of bounds>) at
errormsg.c:42
#5  0x0804f125 in getcurrenttime (retparm=0x0) at timefunc.c:73
#6  0x0804b9e0 in errprintf (fmt=0x6b <Address 0x6b out of bounds>) at
errormsg.c:42
#7  0x0804f125 in getcurrenttime (retparm=0x0) at timefunc.c:73
#8  0x0804b9e0 in errprintf (fmt=0x6b <Address 0x6b out of bounds>) at
errormsg.c:42
#9  0x0804f125 in getcurrenttime (retparm=0x0) at timefunc.c:73
#10 0x0804b9e0 in errprintf (fmt=0x6b <Address 0x6b out of bounds>) at
errormsg.c:42
[...]

I can reproduce the error with "ntpdate" using a misconfigured ntp server
(2 min in the past):

1. start hobbit client "runclient.sh start"
2. sync time with "ntpdate <misconfigured-time-server>"
3. get a core dump :-(


Regards,
 Alexander



More information about the Xymon mailing list