[Nagiosplug-devel] check_ntp_peer - buffer overflow

Terry td3201 at gmail.com
Tue Sep 1 16:21:43 CEST 2009


I can run check_ntp_peer -h and get a help page returned.  Please see
details below.  It does the same thing both for a linux ntp server and
a windows domain controller.  Let me know what else is needed.

[root at omajelut01 objects]# strace
/usr/lib64/nagios/plugins/check_ntp_peer -H omarootdc01.jel.lc -w 0.5
-c 1
execve("/usr/lib64/nagios/plugins/check_ntp_peer",
["/usr/lib64/nagios/plugins/check_"..., "-H", "omarootdc01.jel.lc",
"-w", "0.5", "-c", "1"], [/* 22 vars */]) = 0
brk(0)                                  = 0x1771000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b9711cd4000
uname({sys="Linux", node="omajelut01.jelecos.ms", ...}) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26948, ...}) = 0
mmap(NULL, 26948, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b9711cd5000
close(3)                                = 0
open("/lib64/libnsl.so.1", O_RDONLY)    = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240@\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=111480, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b9711cdc000
mmap(NULL, 2194096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x2b9711ed5000
mprotect(0x2b9711eea000, 2093056, PROT_NONE) = 0
mmap(0x2b97120e9000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x2b97120e9000
mmap(0x2b97120eb000, 6832, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2b97120eb000
close(3)                                = 0
open("/lib64/libresolv.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2402\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=89800, ...}) = 0
mmap(NULL, 2181864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x2b97120ed000
mprotect(0x2b97120fe000, 2097152, PROT_NONE) = 0
mmap(0x2b97122fe000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0x2b97122fe000
mmap(0x2b9712300000, 6888, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2b9712300000
close(3)                                = 0
open("/lib64/libm.so.6", O_RDONLY)      = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`>\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=611880, ...}) = 0
mmap(NULL, 2629848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x2b9712302000
mprotect(0x2b9712384000, 2093056, PROT_NONE) = 0
mmap(0x2b9712583000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x81000) = 0x2b9712583000
close(3)                                = 0
open("/lib64/libdl.so.2", O_RDONLY)     = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\16\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=20424, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b9712585000
mmap(NULL, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x2b9712586000
mprotect(0x2b9712588000, 2097152, PROT_NONE) = 0
mmap(0x2b9712788000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x2b9712788000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY)      = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\332\1\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1707512, ...}) = 0
mmap(NULL, 3494168, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x2b971278a000
mprotect(0x2b97128d6000, 2097152, PROT_NONE) = 0
mmap(0x2b9712ad6000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14c000) = 0x2b9712ad6000
mmap(0x2b9712adb000, 16664, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2b9712adb000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b9712ae0000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b9712ae1000
arch_prctl(ARCH_SET_FS, 0x2b9712ae0af0) = 0
mprotect(0x2b9712ad6000, 16384, PROT_READ) = 0
mprotect(0x2b9712788000, 4096, PROT_READ) = 0
mprotect(0x2b9712583000, 4096, PROT_READ) = 0
mprotect(0x2b97122fe000, 4096, PROT_READ) = 0
mprotect(0x2b97120e9000, 4096, PROT_READ) = 0
mprotect(0x2b9711ed3000, 4096, PROT_READ) = 0
munmap(0x2b9711cd5000, 26948)           = 0
brk(0)                                  = 0x1771000
brk(0x1792000)                          = 0x1792000
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=56458944, ...}) = 0
mmap(NULL, 56458944, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b9712ae2000
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1
ENOENT (No such file or directory)
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1
ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1710, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b97160ba000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1710
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b97160ba000, 4096)            = 0
getpid()                                = 16386
open("/etc/resolv.conf", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=82, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b97160ba000
read(3, "nameserver 10.98.1.244\nnameserve"..., 4096) = 82
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b97160ba000, 4096)            = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26948, ...}) = 0
mmap(NULL, 26948, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b97160ba000
close(3)                                = 0
open("/lib64/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\37\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=53880, ...}) = 0
mmap(NULL, 2139432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x2b97160c1000
mprotect(0x2b97160cb000, 2093056, PROT_NONE) = 0
mmap(0x2b97162ca000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x2b97162ca000
close(3)                                = 0
mprotect(0x2b97162ca000, 4096, PROT_READ) = 0
munmap(0x2b97160ba000, 26948)           = 0
open("/etc/hosts", O_RDONLY)            = 3
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=135, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b97160ba000
read(3, "::1\t\tlocalhost6.localdomain6 loc"..., 4096) = 135
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b97160ba000, 4096)            = 0
open("/etc/hosts", O_RDONLY)            = 3
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=135, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b97160ba000
read(3, "::1\t\tlocalhost6.localdomain6 loc"..., 4096) = 135
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b97160ba000, 4096)            = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26948, ...}) = 0
mmap(NULL, 26948, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b97160ba000
close(3)                                = 0
open("/lib64/libnss_dns.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\17\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=23736, ...}) = 0
mmap(NULL, 2113792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x2b97162cc000
mprotect(0x2b97162d0000, 2093056, PROT_NONE) = 0
mmap(0x2b97164cf000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x2b97164cf000
close(3)                                = 0
mprotect(0x2b97164cf000, 4096, PROT_READ) = 0
munmap(0x2b97160ba000, 26948)           = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, 28) = 0
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\375\213\1\0\0\1\0\0\0\0\0\0\vomarootdc01\3jel\2lc\0"...,
36, MSG_NOSIGNAL, NULL, 0) = 36
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [83])                = 0
recvfrom(3, "\375\213\201\200\0\1\0\0\0\1\0\0\vomarootdc01\3jel\2lc\0"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, [16]) = 83
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, 28) = 0
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\36<\1\0\0\1\0\0\0\0\0\0\vomarootdc01\3jel\2lc\3"..., 43,
MSG_NOSIGNAL, NULL, 0) = 43
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [102])               = 0
recvfrom(3, "\36<\201\203\0\1\0\0\0\1\0\0\vomarootdc01\3jel\2lc\3"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, [16]) = 102
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, 28) = 0
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\3367\1\0\0\1\0\0\0\0\0\0\vomarootdc01\3jel\2lc\3"..., 47,
MSG_NOSIGNAL, NULL, 0) = 47
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [115])               = 0
recvfrom(3, "\3367\205\203\0\1\0\0\0\1\0\0\vomarootdc01\3jel\2lc\3"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, [16]) = 115
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, 28) = 0
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "f\\\1\0\0\1\0\0\0\0\0\0\vomarootdc01\3jel\2lc\7"..., 47,
MSG_NOSIGNAL, NULL, 0) = 47
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [125])               = 0
recvfrom(3, "f\\\201\203\0\1\0\0\0\1\0\0\vomarootdc01\3jel\2lc\7"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, [16]) = 125
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, 28) = 0
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "!T\1\0\0\1\0\0\0\0\0\0\vomarootdc01\3jel\2lc\0"..., 36,
MSG_NOSIGNAL, NULL, 0) = 36
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [52])                = 0
recvfrom(3, "!T\205\200\0\1\0\1\0\0\0\0\vomarootdc01\3jel\2lc\0"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, [16]) = 52
close(3)                                = 0
rt_sigaction(SIGALRM, {0x403580, [ALRM], SA_RESTORER|SA_RESTART,
0x2b97127ba280}, {SIG_DFL, [], 0}, 8) = 0
alarm(10)                               = 0
open("/etc/hosts", O_RDONLY)            = 3
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=135, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b97160ba000
read(3, "::1\t\tlocalhost6.localdomain6 loc"..., 4096) = 135
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b97160ba000, 4096)            = 0
open("/etc/hosts", O_RDONLY)            = 3
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=135, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2b97160ba000
read(3, "::1\t\tlocalhost6.localdomain6 loc"..., 4096) = 135
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b97160ba000, 4096)            = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, 28) = 0
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\3117\1\0\0\1\0\0\0\0\0\0\vomarootdc01\3jel\2lc\0"..., 36,
MSG_NOSIGNAL, NULL, 0) = 36
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [83])                = 0
recvfrom(3, "\3117\201\200\0\1\0\0\0\1\0\0\vomarootdc01\3jel\2lc\0"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, [16]) = 83
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, 28) = 0
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\274Q\1\0\0\1\0\0\0\0\0\0\vomarootdc01\3jel\2lc\3"..., 43,
MSG_NOSIGNAL, NULL, 0) = 43
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [102])               = 0
recvfrom(3, "\274Q\201\203\0\1\0\0\0\1\0\0\vomarootdc01\3jel\2lc\3"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, [16]) = 102
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, 28) = 0
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\36\216\1\0\0\1\0\0\0\0\0\0\vomarootdc01\3jel\2lc\3"...,
47, MSG_NOSIGNAL, NULL, 0) = 47
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [115])               = 0
recvfrom(3, "\36\216\205\203\0\1\0\0\0\1\0\0\vomarootdc01\3jel\2lc\3"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, [16]) = 115
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, 28) = 0
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\2574\1\0\0\1\0\0\0\0\0\0\vomarootdc01\3jel\2lc\7"..., 47,
MSG_NOSIGNAL, NULL, 0) = 47
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [125])               = 0
recvfrom(3, "\2574\201\203\0\1\0\0\0\1\0\0\vomarootdc01\3jel\2lc\7"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, [16]) = 125
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, 28) = 0
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "\252\227\1\0\0\1\0\0\0\0\0\0\vomarootdc01\3jel\2lc\0"...,
36, MSG_NOSIGNAL, NULL, 0) = 36
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [52])                = 0
recvfrom(3, "\252\227\201\200\0\1\0\1\0\0\0\0\vomarootdc01\3jel\2lc\0"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("10.98.1.244")}, [16]) = 52
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(123),
sin_addr=inet_addr("10.98.1.242")}, 16) = 0
write(3, "\26\1\0\1\0\0\0\0\0\0\0\0", 12) = 12
open("/dev/tty", O_RDWR|O_NOCTTY|O_NONBLOCK) = 4
writev(4, [{"*** buffer overflow detected ***"..., 34},
{"/usr/lib64/nagios/plugins/check_"..., 40}, {" terminated\n", 12}],
3*** buffer overflow detected ***:
/usr/lib64/nagios/plugins/check_ntp_peer terminated
) = 86
open("/etc/ld.so.cache", O_RDONLY)      = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=26948, ...}) = 0
mmap(NULL, 26948, PROT_READ, MAP_PRIVATE, 5, 0) = 0x2b97160ba000
close(5)                                = 0
open("/lib64/libgcc_s.so.1", O_RDONLY)  = 5
read(5, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\36\0\0\0\0\0\0"...,
832) = 832
fstat(5, {st_mode=S_IFREG|0755, st_size=56072, ...}) = 0
mmap(NULL, 2151784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5,
0) = 0x2b97164d1000
mprotect(0x2b97164de000, 2097152, PROT_NONE) = 0
mmap(0x2b97166de000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0xd000) = 0x2b97166de000
close(5)                                = 0
munmap(0x2b97160ba000, 26948)           = 0
write(4, "======= Backtrace: =========\n", 29======= Backtrace: =========
) = 29
writev(4, [{"/lib64/libc.so.6", 16}, {"(", 1}, {"__chk_fail", 10},
{"+0x", 3}, {"2f", 2}, {")", 1}, {"[0x", 3}, {"2b9712870c1f", 12},
{"]\n", 2}], 9/lib64/libc.so.6(__chk_fail+0x2f)[0x2b9712870c1f]
) = 50
writev(4, [{"/lib64/libc.so.6", 16}, {"(", 1}, {"__read_chk", 10},
{"+0x", 3}, {"28", 2}, {")", 1}, {"[0x", 3}, {"2b97128710e8", 12},
{"]\n", 2}], 9/lib64/libc.so.6(__read_chk+0x28)[0x2b97128710e8]
) = 50
writev(4, [{"/usr/lib64/nagios/plugins/check_"..., 40}, {"[0x", 3},
{"4021df", 6}, {"]\n", 2}],
4/usr/lib64/nagios/plugins/check_ntp_peer[0x4021df]
) = 51
writev(4, [{"/usr/lib64/nagios/plugins/check_"..., 40}, {"[0x", 3},
{"402b78", 6}, {"]\n", 2}],
4/usr/lib64/nagios/plugins/check_ntp_peer[0x402b78]
) = 51
writev(4, [{"/lib64/libc.so.6", 16}, {"(", 1}, {"__libc_start_main",
17}, {"+0x", 3}, {"f4", 2}, {")", 1}, {"[0x", 3}, {"2b97127a7974",
12}, {"]\n", 2}],
9/lib64/libc.so.6(__libc_start_main+0xf4)[0x2b97127a7974]
) = 57
writev(4, [{"/usr/lib64/nagios/plugins/check_"..., 40}, {"[0x", 3},
{"401339", 6}, {"]\n", 2}],
4/usr/lib64/nagios/plugins/check_ntp_peer[0x401339]
) = 51
write(4, "======= Memory map: ========\n", 29======= Memory map: ========
) = 29
open("/proc/self/maps", O_RDONLY)       = 5
read(5, "00400000-00407000 r-xp 00000000 "..., 1024) = 1024
write(4, "00400000-00407000 r-xp 00000000 "..., 102400400000-00407000
r-xp 00000000 fd:00 4063308
/usr/lib64/nagios/plugins/check_ntp_peer
00607000-00608000 rw-p 00007000 fd:00 4063308
  /usr/lib64/nagios/plugins/check_ntp_peer
01771000-01792000 rw-p 01771000 00:00 0                                  [heap]
2b9711cb8000-2b9711cd4000 r-xp 00000000 fd:00 11141389
  /lib64/ld-2.5.so
2b9711cd4000-2b9711cd5000 rw-p 2b9711cd4000 00:00 0
2b9711cdc000-2b9711cdd000 rw-p 2b9711cdc000 00:00 0
2b9711ed3000-2b9711ed4000 r--p 0001b000 fd:00 11141389
  /lib64/ld-2.5.so
2b9711ed4000-2b9711ed5000 rw-p 0001c000 fd:00 11141389
  /lib64/ld-2.5.so
2b9711ed5000-2b9711eea000 r-xp 00000000 fd:00 11141140
  /lib64/libnsl-2.5.so
2b9711eea000-2b97120e9000 ---p 00015000 fd:00 11141140
  /lib64/libnsl-2.5.so
2b97120e9000-2b97120ea000 r--p 00014000 fd:00 11141140
  /lib64/libnsl-2.5.so
2b97120ea000-2b97120eb000 rw-p 00015000 fd:00 11141140    ) = 1024
read(5, "               /lib64/libnsl-2.5"..., 1024) = 1024
write(4, "               /lib64/libnsl-2.5"..., 1024
/lib64/libnsl-2.5.so
2b97120eb000-2b97120ed000 rw-p 2b97120eb000 00:00 0
2b97120ed000-2b97120fe000 r-xp 00000000 fd:00 11141156
  /lib64/libresolv-2.5.so
2b97120fe000-2b97122fe000 ---p 00011000 fd:00 11141156
  /lib64/libresolv-2.5.so
2b97122fe000-2b97122ff000 r--p 00011000 fd:00 11141156
  /lib64/libresolv-2.5.so
2b97122ff000-2b9712300000 rw-p 00012000 fd:00 11141156
  /lib64/libresolv-2.5.so
2b9712300000-2b9712302000 rw-p 2b9712300000 00:00 0
2b9712302000-2b9712384000 r-xp 00000000 fd:00 11141138
  /lib64/libm-2.5.so
2b9712384000-2b9712583000 ---p 00082000 fd:00 11141138
  /lib64/libm-2.5.so
2b9712583000-2b9712584000 r--p 00081000 fd:00 11141138
  /lib64/libm-2.5.so
2b9712584000-2b9712585000 rw-p 00082000 fd:00 11141138
  /lib64/libm-2.5.so
2b9712585000-2b9712586000 rw-p 2b9712585000 00:00 0
2b9712586000-2b9712588000 r-xp 00000000 fd:00 11141136
  ) = 1024
read(5, "/lib64/libdl-2.5.so\n2b9712588000"..., 1024) = 1024
write(4, "/lib64/libdl-2.5.so\n2b9712588000"..., 1024/lib64/libdl-2.5.so
2b9712588000-2b9712788000 ---p 00002000 fd:00 11141136
  /lib64/libdl-2.5.so
2b9712788000-2b9712789000 r--p 00002000 fd:00 11141136
  /lib64/libdl-2.5.so
2b9712789000-2b971278a000 rw-p 00003000 fd:00 11141136
  /lib64/libdl-2.5.so
2b971278a000-2b97128d6000 r-xp 00000000 fd:00 11141130
  /lib64/libc-2.5.so
2b97128d6000-2b9712ad6000 ---p 0014c000 fd:00 11141130
  /lib64/libc-2.5.so
2b9712ad6000-2b9712ada000 r--p 0014c000 fd:00 11141130
  /lib64/libc-2.5.so
2b9712ada000-2b9712adb000 rw-p 00150000 fd:00 11141130
  /lib64/libc-2.5.so
2b9712adb000-2b9712ae2000 rw-p 2b9712adb000 00:00 0
2b9712ae2000-2b97160ba000 r--p 00000000 fd:00 3612183
  /usr/lib/locale/locale-archive
2b97160c1000-2b97160cb000 r-xp 00000000 fd:00 11141146
  /lib64/libnss_files-2.5.so
2b97160cb000-2b97162ca000 ---p 0000a000 fd:00 11141146
  /lib64/libnss_files-2.5.so
) = 1024
read(5, "2b97162ca000-2b97162cb000 r--p 0"..., 1024) = 1024
write(4, "2b97162ca000-2b97162cb000 r--p 0"...,
10242b97162ca000-2b97162cb000 r--p 00009000 fd:00 11141146
      /lib64/libnss_files-2.5.so
2b97162cb000-2b97162cc000 rw-p 0000a000 fd:00 11141146
  /lib64/libnss_files-2.5.so
2b97162cc000-2b97162d0000 r-xp 00000000 fd:00 11141144
  /lib64/libnss_dns-2.5.so
2b97162d0000-2b97164cf000 ---p 00004000 fd:00 11141144
  /lib64/libnss_dns-2.5.so
2b97164cf000-2b97164d0000 r--p 00003000 fd:00 11141144
  /lib64/libnss_dns-2.5.so
2b97164d0000-2b97164d1000 rw-p 00004000 fd:00 11141144
  /lib64/libnss_dns-2.5.so
2b97164d1000-2b97164de000 r-xp 00000000 fd:00 11141122
  /lib64/libgcc_s-4.1.2-20080825.so.1
2b97164de000-2b97166de000 ---p 0000d000 fd:00 11141122
  /lib64/libgcc_s-4.1.2-20080825.so.1
2b97166de000-2b97166df000 rw-p 0000d000 fd:00 11141122
  /lib64/libgcc_s-4.1.2-20080825.so.1
7fff24b4c000-7fff24b61000 rw-p 7ffffffea000 00:00 0                      [stack]
ffffffffff600000-fffffff) = 1024
read(5, "fffe00000 ---p 00000000 00:00 0 "..., 1024) = 56
write(4, "fffe00000 ---p 00000000 00:00 0 "..., 56fffe00000 ---p
00000000 00:00 0                  [vdso]
) = 56
read(5, "", 1024)                       = 0
close(5)                                = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(16386, 16386, SIGABRT)           = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
[root at omajelut01 objects]#




More information about the Devel mailing list