[Pkg-nagios-devel] Bug#714281: nagios-plugins-basic: check_nt: segfaults occasionally

Vaclav Ovsik vaclav.ovsik at i.cz
Thu Jun 27 14:03:01 UTC 2013


Package: nagios-plugins-basic
Version: 1.4.16-1
Severity: normal
File: /usr/lib/nagios/plugins/check_nt

Dear Maintainer,
I have 14 services with check_nt running in 2 minutes interval, that is
60 / 2 * 14 = 420 checks per hour.

nagios:~# fgrep segfault /var/log/syslog
Jun 27 06:46:47 nagios kernel: [243023.136051] check_nt[30237]: segfault at 0 ip 00007f23e92ba3a4 sp 00007fff7c4de780 error 4 in libc-2.13.so[7f23e927f000+180000]
Jun 27 08:08:48 nagios kernel: [247944.033468] check_nt[28987]: segfault at 0 ip 00007f1e15edfee2 sp 00007fffa62101a0 error 4 in libc-2.13.so[7f1e15ea8000+180000]
Jun 27 08:18:47 nagios kernel: [248543.086931] check_nt[14987]: segfault at 0 ip 00007fb32fe633a4 sp 00007fff93d7fed0 error 4 in libc-2.13.so[7fb32fe28000+180000]
Jun 27 10:06:47 nagios kernel: [255023.208052] check_nt[28406]: segfault at 0 ip 00007f775a6843a4 sp 00007fff4cc1c3d0 error 4 in libc-2.13.so[7f775a649000+180000]
Jun 27 11:36:48 nagios kernel: [ 1354.207205] check_nt[7304]: segfault at 0 ip 00007fd7041b4ee2 sp 00007fff9a9c7020 error 4 in libc-2.13.so[7fd70417d000+180000]
Jun 27 13:12:47 nagios kernel: [ 7113.068826] check_nt[32673]: segfault at 0 ip 00007ffc6c6943a4 sp 00007fff4a1a0c00 error 4 in libc-2.13.so[7ffc6c659000+180000]
Jun 27 15:02:47 nagios kernel: [13713.036054] check_nt[16278]: segfault at 0 ip 00007f5a367ad3a4 sp 00007fff850909d0 error 4 in libc-2.13.so[7f5a36772000+180000]

Yesterday:
	nagios:~# fgrep segfault /var/log/syslog-20130627 |wc -l
	15

15 / (24 * 420) = .001488

That is segfault is occurring about 0.15% only.

I enabled coredumps i nagios.cfg and set
	sysctl -w kernel.core_pattern=/tmp/core.%p

zito at nagios:~/check_nt$ gdb /usr/lib/nagios/plugins/check_nt core.16278 
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/nagios/plugins/check_nt...(no debugging symbols found)...done.
[New LWP 16278]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/lib/nagios/plugins/check_nt -H 192.168.71.23 -p 12489 -v MEMUSE -p 12489 -'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f5a367ad3a4 in *__GI_____strtod_l_internal (nptr=<optimized out>, endptr=<optimized out>, 
    group=<optimized out>, loc=0x7f5a36af65a0) at strtod_l.c:538
538	strtod_l.c: No such file or directory.
(gdb) 

(gdb) backtrace full
#0  0x00007f5a367ad3a4 in *__GI_____strtod_l_internal (nptr=<optimized out>, endptr=<optimized out>, 
    group=<optimized out>, loc=0x7f5a36af65a0) at strtod_l.c:538
        negative = 32602
        num = {0, 0, 0, 0, 0, 10696049115004928, 0 <repeats 14 times>}
        numsize = <optimized out>
        exponent = 0
        base = <optimized out>
        den = {3330471509296822577, 219885220151, 17179869184, 0, 0, 0, 0, 0, 0, 0, 0, 140025437766685, 
          4, 140025452237519, 140025459613424, 26687264576, 8, 996033, 16, 0}
        densize = <optimized out>
        retval = {0}
        bits = <optimized out>
        cp = 0x0
        tp = <optimized out>
        startp = <optimized out>
        expp = <optimized out>
        dig_no = <optimized out>
        int_no = <optimized out>
        lead_zero = <optimized out>
        c = <optimized out>
        decimal = 0x7f5a3755a720 <Address 0x7f5a3755a720 out of bounds>
        thousands = 0x0
        grouping = 0x0
        current = <optimized out>
        __PRETTY_FUNCTION__ = "____strtod_l_internal"
        lowc = <optimized out>
#1  0x00007f5a3756e629 in main ()
No symbol table info available.

Can I provide more useful info?
Thanks for your time and work.
Best regards
-- 
Zito


-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nagios-plugins-basic depends on:
ii  iputils-ping           3:20101006-1+b1
ii  libc6                  2.13-38
ii  libssl1.0.0            1.0.1e-2
ii  nagios-plugins-common  1.4.16-1
ii  procps                 1:3.3.3-3
ii  ucf                    3.0025+nmu3

nagios-plugins-basic recommends no packages.

Versions of packages nagios-plugins-basic suggests:
ii  nagios3  3.4.1-3

-- no debconf information



More information about the Pkg-nagios-devel mailing list