[Nagiosplug-devel] Flight 1.4.8, ready for boarding

Thomas Guyot-Sionnest dermoth at aei.ca
Mon Apr 2 07:43:26 CEST 2007


More details below...

On 02/04/07 01:15 AM, Thomas Guyot-Sionnest wrote:
> Yup, but this one might be one... Since in only happened once for a
> dozen runs at least I guess it's time to learn using core files ;)
> 
> [...]

Unfortunately I don't have this core file, but I just got some more (2
different ones). When I run check_ntp in verbose mode I see very erratic
behavior from run to run.

This one seems to be the new memcpy code (Holger):

Core was generated by `plugins/check_ntp -H time.fu-berlin.de -j 2 -k 3'.
Program terminated with signal 11, Segmentation fault.
#0  0x00002b6e50790ae4 in memcpy () from /lib/libc.so.6
(gdb) bt
#0  0x00002b6e50790ae4 in memcpy () from /lib/libc.so.6
#1  0x0000000000401c19 in jitter_request (host=<value optimized out>,
status=0x7fff5a856c18) at check_ntp.c:546
#2  0x0000000000402df6 in main (argc=<value optimized out>, argv=<value
optimized out>) at check_ntp.c:750


This one is on a free operation at check_ntp.c:621:

$ plugins/check_ntp -H time.fu-berlin.de -j 2 -k 3
warning: unable to read server jitter response.
warning: unable to read server jitter response.
warning: unable to read server jitter response.
warning: unable to read server jitter response.
warning: unable to read server jitter response.
warning: unable to read server jitter response.
warning: unable to read server jitter response.
warning: unable to read server jitter response.
*** glibc detected *** plugins/check_ntp: double free or corruption
(!prev): 0x0000000000508270 ***
======= Backtrace: =========
/lib/libc.so.6[0x2af332d59733]
/lib/libc.so.6(__libc_free+0x84)[0x2af332d598b4]
plugins/check_ntp[0x401f3c]
plugins/check_ntp[0x402df6]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2af332d080c4]
plugins/check_ntp[0x401339]
======= Memory map: ========
00400000-00407000 r-xp 00000000 08:02 1696134
 /home/dermoth/DEV/src/nagios-plugins/nagiosplug/plugins/check_ntp
00506000-00507000 rw-p 00006000 08:02 1696134
 /home/dermoth/DEV/src/nagios-plugins/nagiosplug/plugins/check_ntp
00507000-00528000 rw-p 00507000 00:00 0
 [heap]
2af332821000-2af33283d000 r-xp 00000000 08:02 21045
 /lib/ld-2.4.so
2af33283d000-2af332841000 rw-p 2af33283d000 00:00 0
2af33293c000-2af33293e000 rw-p 0001b000 08:02 21045
 /lib/ld-2.4.so
2af33293e000-2af332951000 r-xp 00000000 08:02 34268
 /lib/libnsl-2.4.so
2af332951000-2af332a51000 ---p 00013000 08:02 34268
 /lib/libnsl-2.4.so
2af332a51000-2af332a53000 rw-p 00013000 08:02 34268
 /lib/libnsl-2.4.so
2af332a53000-2af332a55000 rw-p 2af332a53000 00:00 0
2af332a55000-2af332a66000 r-xp 00000000 08:02 111584
 /lib/libresolv-2.4.so
2af332a66000-2af332b66000 ---p 00011000 08:02 111584
 /lib/libresolv-2.4.so
2af332b66000-2af332b68000 rw-p 00011000 08:02 111584
 /lib/libresolv-2.4.so
2af332b68000-2af332b6a000 rw-p 2af332b68000 00:00 0
2af332b6a000-2af332bea000 r-xp 00000000 08:02 30271
 /lib/libm-2.4.so
2af332bea000-2af332ce9000 ---p 00080000 08:02 30271
 /lib/libm-2.4.so
2af332ce9000-2af332ceb000 rw-p 0007f000 08:02 30271
 /lib/libm-2.4.so
2af332ceb000-2af332e21000 r-xp 00000000 08:02 21053
 /lib/libc-2.4.so
2af332e21000-2af332f21000 ---p 00136000 08:02 21053
 /lib/libc-2.4.so
2af332f21000-2af332f24000 r--p 00136000 08:02 21053
 /lib/libc-2.4.so
2af332f24000-2af332f26000 rw-p 00139000 08:02 21053
 /lib/libc-2.4.so
2af332f26000-2af332f2d000 rw-p 2af332f26000 00:00 0
2af332f2d000-2af332f37000 r-xp 00000000 08:02 81267
 /lib/libnss_files-2.4.so
2af332f37000-2af333036000 ---p 0000a000 08:02 81267
 /lib/libnss_files-2.4.so
2af333036000-2af333038000 rw-p 00009000 08:02 81267
 /lib/libnss_files-2.4.so
2af333038000-2af33303c000 r-xp 00000000 08:02 81258
 /lib/libnss_dns-2.4.so
2af33303c000-2af33313c000 ---p 00004000 08:02 81258
 /lib/libnss_dns-2.4.so
2af33313c000-2af33313e000 rw-p 00004000 08:02 81258
 /lib/libnss_dns-2.4.so
2af333200000-2af333221000 rw-p 2af333200000 00:00 0
2af333221000-2af333300000 ---p 2af333221000 00:00 0
2af333300000-2af33330d000 r-xp 00000000 08:02 5424
 /lib/libgcc_s.so.1
2af33330d000-2af33340c000 ---p 0000d000 08:02 5424
 /lib/libgcc_s.so.1
2af33340c000-2af33340d000 rw-p 0000c000 08:02 5424
 /lib/libgcc_s.so.1
7fff78273000-7fff78289000 rw-p 7fff78273000 00:00 0
 [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0
 [vdso]
Aborted (core dumped)

Core was generated by `plugins/check_ntp -H time.fu-berlin.de -j 2 -k 3'.
Program terminated with signal 6, Aborted.
#0  0x00002af332d1b47b in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00002af332d1b47b in raise () from /lib/libc.so.6
#1  0x00002af332d1cda0 in abort () from /lib/libc.so.6
#2  0x00002af332d5253b in __fsetlocking () from /lib/libc.so.6
#3  0x00002af332d59733 in mallopt () from /lib/libc.so.6
#4  0x00002af332d598b4 in free () from /lib/libc.so.6
#5  0x0000000000401f3c in jitter_request (host=<value optimized out>,
status=0x7fff78285648) at check_ntp.c:621
#6  0x0000000000402df6 in main (argc=<value optimized out>, argv=<value
optimized out>) at check_ntp.c:750

Thomas




More information about the Devel mailing list