[rrd-users] Re: rrdcgi bug ?

Tobias Oetiker oetiker at ee.ethz.ch
Sun Oct 24 00:07:33 MEST 1999


Oct 7 you sent me mail regarding [rrd-users] rrdcgi bug ?:

*> Tobi,
*> 
*> using <RRD::PRINT 1> seems to fail. See posts of Steve Rader and me
*> on rrd-users.
*> 
*> Steve, are you able to confirm the version?

I think I found the problem ...

drawprint should look like this 


char* drawprint(long argc, char **args){
  if (argc==1 && calcpr){
    long i=0;
    while (calcpr[i] != NULL) i++; /*determine number lines in calcpr*/
    if (atol(args[0])<i-1)
      return stralloc(calcpr[atol(args[0])+1]);    
  }
  return stralloc("[ERROR: RRD::PRINT argument error]");
}


note the first return ...

let me know if this helps ...

cheers
tobi
*> 
*> Steve Rader wrote:
*> > Fwiw, I get no output and errno 139:
*> > 
*> This is SIGSEGV alright.
*> 
*> >  bash% echo | ./test.cgi
*> >  (offline mode: enter name=value pairs on standard input)
*> >  bash% echo $?
*> >  139
*> > 
*> I do get output + segv
*> 
*> Tried this using several versions, it seems to be introduced
*> in version 1.0.1 ?!?
*> 

-- 
 ______    __   _
/_  __/_  / /  (_) 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

--
* To unsubscribe from the rrd-users mailing list, send a message with the
  subject: unsubscribe to rrd-users-request at list.ee.ethz.ch



More information about the rrd-users mailing list