[Pkg-nagios-devel] Bug#623702: Bug#623702: nagios-plugins: check_host segfault on some sites
Max Kosmach
max at tcen.ru
Wed Apr 27 23:08:05 UTC 2011
28.04.2011 2:22, Jan Wagner пишет:
> Unfortunately I can't reproduce your problem. Running the command as root on
> sid works well. As www.google.ru seems to be geo-ip driven, that my not a good
> test-case. Could you please run check_host in verbose mode? Do you run it as
> root or as normal user?
>
> # /usr/lib/nagios/plugins/check_host -v -H www.google.ru
> ttl set to 64
> Setting alarm timeout to 10 seconds
> packets: 5, targets: 3
> target_interval: 0.000, pkt_interval 1000.000
> crit.rta: 1000.000
> max_completion_time: 31000.000
> max_completion_time: 31000000 timeout: 10
> Timout must be at lest 32
> crit = {1000000, 100%}, warn = {1000000, 100%}
> pkt_interval: 1000000 target_interval: 0 retry_interval: 0
> icmp_pkt_size: 64 timeout: 10
> handle_random_icmp(0xbfe91090, 0xbfe910c8)
> Packet is no response to a packet we sent
> 20.000 ms rtt from 74.125.79.99, outgoing ttl: 64, incoming ttl: 51, max:
> 20.000, min: 20.000
> OK - www.google.ru responds to ICMP. Packet 1, rta 20.000ms|pkt=1;;0;5
> rta=20.000;1000.000;1000.000;;
/usr/lib/nagios/plugins/check_host -v -H www.google.ru
ttl set to 64
Setting alarm timeout to 10 seconds
packets: 5, targets: 6
target_interval: 0.000, pkt_interval 1000.000
crit.rta: 1000.000
max_completion_time: 61000.000
max_completion_time: 61000000 timeout: 10
Timout must be at lest 62
crit = {1000000, 100%}, warn = {1000000, 100%}
pkt_interval: 1000000 target_interval: 0 retry_interval: 0
icmp_pkt_size: 64 timeout: 10
Segmentation fault
ldd /usr/lib/nagios/plugins/check_host
linux-gate.so.1 => (0xb7747000)
libnsl.so.1 => /lib/i686/cmov/libnsl.so.1 (0xb771a000)
libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xb7706000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb76ec000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb76e8000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb75a2000)
/lib/ld-linux.so.2 (0xb7748000)
nslookup www.google.ru
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
www.google.ru canonical name = www.google.com.
www.google.com canonical name = www.l.google.com.
Name: www.l.google.com
Address: 209.85.149.99
Name: www.l.google.com
Address: 209.85.149.103
Name: www.l.google.com
Address: 209.85.149.104
Name: www.l.google.com
Address: 209.85.149.105
Name: www.l.google.com
Address: 209.85.149.106
Name: www.l.google.com
Address: 209.85.149.147
> # dpkg -l | grep nagios-plugins
> ii nagios-plugins-basic 1.4.15-3+b1 Plugins for
> the nagios network monitoring and management system
dpkg -l | grep nagios-plugins
ii nagios-plugins 1.4.15-3
Plugins for the nagios network monitoring and management system
ii nagios-plugins-basic 1.4.15-3+b1
Plugins for the nagios network monitoring and management system
ii nagios-plugins-standard 1.4.15-3+b1
Plugins for the nagios network monitoring and management system
PS. if I try unstripped binary:
gdb check_host
(gdb) set args -H www.google.ru
(gdb) run
Starting program:
/opt2/proj/deb/nagios-plugins-1.4.15/plugins-root/check_host -H
www.google.ru
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x0804bb40 in run_checks (argc=3, argv=<value optimized out>) at
check_icmp.c:654
654 if(table[t]->flags & FLAG_LOST_CAUSE) {
(gdb) print table[t]->flags
Cannot access memory at address 0x7f
(gdb) bt
#0 0x0804bb40 in run_checks (argc=3, argv=<value optimized out>) at
check_icmp.c:654
#1 main (argc=3, argv=<value optimized out>) at check_icmp.c:633
More information about the Pkg-nagios-devel
mailing list