[Nagiosplug-devel] [ nagiosplug-Bugs-684574 ] check_dns Segmentation fault Debian
SourceForge.net
noreply at sourceforge.net
Sun Mar 16 15:43:15 CET 2003
Bugs item #684574, was opened at 2003-02-11 05:20
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=684574&group_id=29880
Category: None
Group: None
>Status: Closed
Resolution: Works For Me
Priority: 5
Submitted By: Eduardo Diaz (ediaz)
Assigned to: Jeremy T. Bouse (undrgrid)
Summary: check_dns Segmentation fault Debian
Initial Comment:
this is the trace,
is a debian woodie 3.0 and 2.4.20
kernel
ervidor1:/programas/nagios/src/nagios-plugins-
1.3.0-beta2/plugins# strace ./check_dns -H
localhost
execve("./check_dns", ["./check_dns", "-H",
"localhost"], [/* 13 vars */]) = 0
uname({sys="Linux",
node="servidor1", ...}) = 0
brk(0) =
0x804ccc8
open("/etc/ld.so.preload", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/etc/ld.so.cache",
O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644,
st_size=34789, ...}) = 0
old_mmap(NULL, 34789,
PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)
= 0
open("/lib/libutil.so.1", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\16"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0644,
st_size=7600, ...}) = 0
old_mmap(NULL, 10568,
PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x4001d000
mprotect(0x4001f000, 2376, PROT_NONE) =
0
old_mmap(0x4001f000, 4096,
PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x1000) = 0x4001f000
close(3) =
0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\222"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755,
st_size=1153784, ...}) = 0
old_mmap(NULL, 1166560,
PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x40020000
mprotect(0x40133000, 40160, PROT_NONE)
= 0
old_mmap(0x40133000, 24576,
PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x113000) = 0x40133000
old_mmap(0x40139000, 15584,
PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =
0x40139000
close(3) = 0
old_mmap(NULL, 4096,
PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4013d000
munmap(0x40014000, 34789) =
0
rt_sigaction(SIGALRM, {0x804a678, [ALRM],
SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
--- SIGSEGV
(Segmentation fault) ---
+++ killed by SIGSEGV
+++
servidor1:/programas/nagios/src/nagios-plugins-1.3.0-
beta2/plugins#
----------------------------------------------------------------------
>Comment By: Jeremy T. Bouse (undrgrid)
Date: 2003-03-16 15:55
Message:
Logged In: YES
user_id=10485
Closing this report as it has not been able to be reproduced
in the current code base. If it can later be reproduced we
can re-open and re-visit this issue...
----------------------------------------------------------------------
Comment By: Jeremy T. Bouse (undrgrid)
Date: 2003-02-13 06:39
Message:
Logged In: YES
user_id=10485
Can not see it duplicated from CVS code
undrgrid at usf-cf-sparc-linux-1:~/nagiosplug/plugins$ uname -a
Linux usf-cf-sparc-linux-1 2.4.18 #2 Thu Apr 11 14:37:17 EDT
2002 sparc64 unknown
undrgrid at usf-cf-sparc-linux-1:~/nagiosplug/plugins$
./check_dns -V
check_dns (nagios-plugins 1.3.0-beta2) 1.7
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may
redistribute
copies of the plugins under the terms of the GNU General
Public License.
For more information about these matters, see the file named
COPYING.
undrgrid at usf-cf-sparc-linux-1:~/nagiosplug/plugins$
./check_dns -H localhost
DNS ok - 0 seconds response time, Address(es) is/are 127.0.0.1
undrgrid at usf-cf-sparc-linux-1:~/nagiosplug/plugins$ strace
./check_dns -H localhost
execve("./check_dns", ["./check_dns", "-H", "localhost"],
[/* 14 vars */]) = 0
uname({sys="Linux", node="usf-cf-sparc-linux-1", ...}) = 0
brk(0) = 0x25330
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=31562, ...}) = 0
mmap(NULL, 31562, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7001c000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\1\365"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1304548, ...}) = 0
mmap(NULL, 1315216, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0)
= 0x7002c000
mprotect(0x70154000, 102800, PROT_NONE) = 0
mmap(0x7015c000, 57344, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 3, 0x130000) = 0x7015c000
mmap(0x7016a000, 12688, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7016a000
close(3) = 0
munmap(0x7001c000, 31562) = 0
rt_sigaction(SIGALRM, {0x12af0, [ALRM], SA_RESTART},
{SIG_DFL}, 0x7005ef5c, 8) = 0
getpagesize() = 0x2000
brk(0) = 0x25330
brk(0x253a8) = 0x253a8
brk(0x26000) = 0x26000
alarm(10) = 0
time([1045146549]) = 1045146549
getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
brk(0x28000) = 0x28000
pipe([3, 4]) = 3
pipe([5, 6]) = 5
fork() = 7402
close(4) = 0
nfssvc(0x3) = 0
fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7001a000
_llseek(0x3, 0, 0, 0xeffff570, 0x1) = -1 ESPIPE (Illegal
seek)
close(6) = 0
nfssvc(0x5) = 0
fstat64(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7001c000
_llseek(0x5, 0, 0, 0xeffff668, 0x1) = -1 ESPIPE (Illegal
seek)
read(3, 0x7001a000, 8192) = ? ERESTARTSYS (To
be restarted)
--- SIGCHLD (Child exited) ---
read(3, "Server:\t\t10.9.1.10\nAddress:\t10.9"..., 8192) = 97
read(5, "", 8192) = 0
close(5) = 0
munmap(0x7001c000, 8192) = 0
close(3) = 0
munmap(0x7001a000, 8192) = 0
wait4(7402, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL)
= 7402
time([1045146549]) = 1045146549
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0),
...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7001a000
write(1, "DNS ok - 0 seconds response time"..., 63DNS ok - 0
seconds response time, Address(es) is/are 127.0.0.1
) = 63
munmap(0x7001a000, 8192) = 0
exit(0) = ?
----------------------------------------------------------------------
Comment By: Jeremy T. Bouse (undrgrid)
Date: 2003-02-11 10:45
Message:
Logged In: YES
user_id=10485
I'm checking on this as well as I have both Debian 2.2 and
3.0 available in my home environment for testing... I don't
believe I've seen this with the current CVS version in my
testing thus far but I'll go back and look again...
----------------------------------------------------------------------
Comment By: Subhendu Ghosh (sghosh)
Date: 2003-02-11 06:36
Message:
Logged In: YES
user_id=46572
Have you tried the CVS version - a few changes were made
recently.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=684574&group_id=29880
More information about the Devel
mailing list