Hello guys!<div><br></div><div>We have problems with nagios classic web interface.</div><div><div>Often there is an error 500 when accessing status.cgi.</div><div><br></div><div><div>FreeBSD 8.2-RELEASE-p6 amd64</div><div>
nagios-3.3.1</div></div><div><br></div><div>In the server logs: <span style="background-color:rgb(250,250,250);color:rgb(51,51,51)">Premature end of script headers: status.cgi</span></div><div>In dmesg: pid PIDN (status.cgi), uid 80: exited on signal 11</div>
<div><br></div><div>gdb provides the following information:</div><div><br></div><div><br></div><div><div>Core was generated by `status.cgi'.</div><div>Program terminated with signal 11, Segmentation fault.</div><div>Reading symbols from /lib/libc.so.7...done.</div>
<div>Loaded symbols for /lib/libc.so.7</div><div>Reading symbols from /libexec/ld-elf.so.1...done.</div><div>Loaded symbols for /libexec/ld-elf.so.1</div><div>#0 mmap_fgets (temp_mmapfile=0x800a12820) at ../common/shared.c:181</div>
<div>181 ../common/shared.c: No such file or directory.</div><div> in ../common/shared.c</div><div>(gdb) bt</div><div>#0 mmap_fgets (temp_mmapfile=0x800a12820) at ../common/shared.c:181</div><div>Cannot access memory at address 0x7fffffffe608</div>
<div>(gdb) p *temp_mmapfile</div><div>$1 = {path = 0x800a12850 "/var/spool/nagios/rw/objects.cache", mode = 0, fd = 3, file_size = 16177628, current_position = 9226716,</div><div> current_line = 343025, mmap_buf = 0x800c00000}</div>
</div><div><br></div><div><br></div><div>The file objects.cache is updated quite frequently, because we often (10-20 times everyday) change config.</div><div>The file is located on the ramdisk. The size of the disk is much higher than the file size.</div>
<div><br></div><div>Is there any patch that prevents mapping of the objects.cache file in the memory?</div></div><div><br></div>