Nagios 3.0rc1 extinfo.cgi Segmentation fault

Joerg Linge pitchfork at ederdrom.de
Fri Jan 4 21:54:39 CET 2008


Hi List,
calling extinfi.cgi with non existing Host or Service values via QUERY_STRING results in a segmentation fault

Now some debug infos ...

0 - [nagios at kassandra /usr/local/src/nagios-3.0rc1/cgi]$ export REMOTE_USER=linge
0 - [nagios at kassandra /usr/local/src/nagios-3.0rc1/cgi]$ export REQUEST_METHOD=GET
0 - [nagios at kassandra /usr/local/src/nagios-3.0rc1/cgi]$ export QUERY_STRING="type=2&host=wrong_host&service=wrong_service"


1 - [nagios at kassandra /usr/local/src/nagios-3.0rc1/cgi]$ ./extinfo.cgi
Cache-Control: no-store
Pragma: no-cache
Refresh: 90
Last-Modified: Fri, 04 Jan 2008 20:46:55 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-type: text/html

<html>
<head>
[... stripped content ...]
<td align=center valign=center width=33%>
</td>
<td align=right valign=bottom width=33%>
<TABLE BORDER='0'>
Segmentation fault
139 - [nagios at kassandra /usr/local/src/nagios-3.0rc1/cgi]$

The gdb returns the following Infos:

[.... stripped content ..]
<TABLE BORDER='0'>
Program received signal SIGSEGV, Segmentation fault.
0x08050005 in main () at extinfo.c:452
452                             if(temp_service->action_url!=NULL && strcmp(temp_service->action_url,"")){
(gdb)

So now its your turn ;-) 

Kind regards 
Jörg                                                                               

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list