[Nagios-devel] CGI segfault
Posted: Mon Jul 31, 2006 2:36 am
Hi all,
I sent this mail to the -users list about a week ago, and in retrospect
it's probably more of a developer question.
I have just compiled up v2.5 on Suse Linux Enterprise Server 9.3, and
installed Nagios with almost complete success. The only problem is the CGI
files that are failing to run. They segfault with the following data from
strace. selinux is disabled on this machine, and I've been running the
commands with the following...
REQUEST_METHOD=GET ./status.cgi
The output is all good HTML, until this point...
write(1, "
) = 93
stat64("/usr/local/nagios/share/ssi/common-header.ssi", 0xbfffe28c) = -1
ENOENT (No such file or directory)
stat64("/usr/local/nagios/share/ssi/status-header.ssi", 0xbfffe28c) = -1
ENOENT (No such file or directory)
open("/usr/local/nagios/etc/cgi.cfg", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=16996, ...}) = 0
mmap2(NULL, 16996, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4001f000
open("/usr/local/nagios/etc/nagios.cfg", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=21573, ...}) = 0
mmap2(NULL, 21573, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40143000
munmap(0x40143000, 21573) = 0
close(5) = 0
munmap(0x4001f000, 16996) = 0
close(4) = 0
open("/usr/local/nagios/var/comment.log", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0664, st_size=238, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x4001f000
read(4, "################################"..., 4096) = 238
read(4, "", 4096) = 0
close(4) = 0
munmap(0x4001f000, 4096) = 0
open("/usr/local/nagios/etc/cgi.cfg", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=16996, ...}) = 0
mmap2(NULL, 16996, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4001f000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
sles9:/usr/local/nagios/sbin #
My debugging skills aren't the best, but hopefully this is the relevant
information. Let me know if any more info is required.
Any advice would be greatly appreciated
Kyle
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
I sent this mail to the -users list about a week ago, and in retrospect
it's probably more of a developer question.
I have just compiled up v2.5 on Suse Linux Enterprise Server 9.3, and
installed Nagios with almost complete success. The only problem is the CGI
files that are failing to run. They segfault with the following data from
strace. selinux is disabled on this machine, and I've been running the
commands with the following...
REQUEST_METHOD=GET ./status.cgi
The output is all good HTML, until this point...
write(1, "
) = 93
stat64("/usr/local/nagios/share/ssi/common-header.ssi", 0xbfffe28c) = -1
ENOENT (No such file or directory)
stat64("/usr/local/nagios/share/ssi/status-header.ssi", 0xbfffe28c) = -1
ENOENT (No such file or directory)
open("/usr/local/nagios/etc/cgi.cfg", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=16996, ...}) = 0
mmap2(NULL, 16996, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4001f000
open("/usr/local/nagios/etc/nagios.cfg", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=21573, ...}) = 0
mmap2(NULL, 21573, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40143000
munmap(0x40143000, 21573) = 0
close(5) = 0
munmap(0x4001f000, 16996) = 0
close(4) = 0
open("/usr/local/nagios/var/comment.log", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0664, st_size=238, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x4001f000
read(4, "################################"..., 4096) = 238
read(4, "", 4096) = 0
close(4) = 0
munmap(0x4001f000, 4096) = 0
open("/usr/local/nagios/etc/cgi.cfg", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=16996, ...}) = 0
mmap2(NULL, 16996, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4001f000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
sles9:/usr/local/nagios/sbin #
My debugging skills aren't the best, but hopefully this is the relevant
information. Let me know if any more info is required.
Any advice would be greatly appreciated
Kyle
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]