> 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@kassandra /usr/local/src/nagios-3.0rc1/cgi]$ export REMOTE_USER=linge
> 0 - [nagios@kassandra /usr/local/src/nagios-3.0rc1/cgi]$ export REQUEST_METHOD=GET
> 0 - [nagios@kassandra /usr/local/src/nagios-3.0rc1/cgi]$ export QUERY_STRING="type=2&host=wrong_host&service=wrong_service"
>
>
> 1 - [nagios@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
>
>
>
> [... stripped content ...]
>
>
>
>
> Segmentation fault
> 139 - [nagios@kassandra /usr/local/src/nagios-3.0rc1/cgi]$
>
> The gdb returns the following Infos:
>
> [.... stripped content ..]
>
> 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
>
Thanks Joerg! Patch will be in CVS shortly...
Ethan Galstad
Nagios Developer
___
Email: [email protected]
Web: www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]