[rrd-users] Re: rrdcgi segfault

Tobias Oetiker oetiker at ee.ethz.ch
Wed Apr 19 21:46:16 MEST 2000

Today you sent me mail regarding [rrd-users] rrdcgi segfault:

*> Hi,
*> i run into a problem with rrdcgi giving no output with some parameters.
*> I tracked it down to an segfault when feeding special parameters to this
*> cgi-sript.
*> I can reproduce this on two mashines using rrdcgi coming with rrdtool-
*> 1.0.17.
*> Here is the cgi:
*> #!/usr/bin/rrdcgi
*> <HTML>
*> <HEAD><TITLE>Tux statistics</TITLE></HEAD>
*> </BODY>
*> </HTML>
*> and here the parameter to feed on standard input:
*> DS1=c_h_errors
*> I am not able to generate an script for it, because in the script the
*> rrdcgi is happily working :-(
*> I grabbed the environment with which the webserver calls the cgi and
*> delivered it to the cgi, but no segfault.

first there is a braket missing


second you might want to run this from within ddd which is great
for finding the place in the code where the segfault occurs

if I trie it here (with the brace added)

I get:

oetiker.ee> ./cgitest.cgi
(offline mode: enter name=value pairs on standard input)
Content-Type: text/html
Content-Length: 136

<HEAD><TITLE>Tux statistics</TITLE></HEAD>
[ERROR: can't make a graph without contents]


*> The segfault happens on both mashines (debian potato and woody) when
*> the cgi is called from bash 2.04.0(1)-release.
*> Any ideas or something for me to test?
*> Thanks

 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users

More information about the rrd-users mailing list