intermittent CGI failure

·:iNot:· inotkaa at gmail.com
Tue Sep 16 14:26:49 CEST 2008


>
> Date: Mon, 15 Sep 2008 12:29:55 -0400 (EDT)
> From: nagios at donsbox.com
> Subject: [Nagios-users] intermittent CGI failure
> To: nagios-users at lists.sourceforge.net
> Message-ID:
>        <b53b1fb899386775dbf845218f6f2b64.squirrel at www.donsbox.com>
> Content-Type: text/plain;charset=iso-8859-1
>
> Installed 3.0.3 from source on OpenBSD 4.3 (sparc64).  Everything works,
> but every so often the CGI's will fail.
>
> e.g. If I refresh, say, status.cgi?host=all 10 times in a row, it'll fail
> at least once or twice.
>
> I can reproduce using both Apache and nginx.
>
> Here's Apache error log snippet: "Premature end of script headers:
> /var/www/nagios/cgi-bin/status.cgi"
>
> Here's nginx error log snippet: "upstream closed prematurely FastCGI
> stdout while reading response header from upstream"
>
> Familiar issue to anyone?  Next steps to debug?
>
> I cannot reproduce by running, manually from command shell:
> export REQUEST_METHOD=GET
> ./status.cgi
>
> I think, i've got the same problem. When this error appeared in apache logs
i saw this

*** glibc detected *** ./status.cgi: free(): invalid pointer: 0x082b0f48 ***
======= Backtrace: =========
/lib/libc.so.6[0x62d38c]
/lib/libc.so.6(__libc_free+0x6b)[0x62d88f]
./status.cgi[0x806dd96]
./status.cgi[0x80548f1]
./status.cgi[0x80490d9]
/lib/libc.so.6(__libc_start_main+0xb3)[0x5e2dfb]
./status.cgi[0x8048fc1]
======= Memory map: ========
00323000-0032b000 r-xp 00000000 08:02 524290
/lib/libgcc_s-3.2.3-20040701.so.1
0032b000-0032c000 rw-p 00007000 08:02 524290
/lib/libgcc_s-3.2.3-20040701.so.1
005ce000-006e5000 r-xp 00000000 08:02 524300     /lib/libc-2.3.5.so
006e5000-006e7000 r--p 00117000 08:02 524300     /lib/libc-2.3.5.so
006e7000-006e9000 rw-p 00119000 08:02 524300     /lib/libc-2.3.5.so
006e9000-006eb000 rw-p 00000000 00:00 0
008b0000-008c8000 r-xp 00000000 08:02 524412     /lib/ld-2.3.5.so
008c8000-008c9000 r--p 00018000 08:02 524412     /lib/ld-2.3.5.so
008c9000-008ca000 rw-p 00019000 08:02 524412     /lib/ld-2.3.5.so
08048000-0807d000 r-xp 00000000 08:02 30162979
/usr/local/nagios/sbin/status.cgi
0807d000-0807e000 rw-p 00035000 08:02 30162979
/usr/local/nagios/sbin/status.cgi
0807e000-08081000 rw-p 00000000 00:00 0
0820e000-084c3000 rw-p 00000000 00:00 0
b7100000-b7121000 rw-p 00088000 00:00 0
b7121000-b7200000 ---p 000a9000 00:00 0
b7284000-b75e9000 r--p 00000000 08:02
1327896    /usr/local/nagios/var/status.dat
b75e9000-b75eb000 rw-p 00000000 00:00 0
bfff9000-c0000000 rw-p ffffb000 00:00 0
Aborted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080916/8c517249/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list