On 2004-11-08 at 17:47:49, David Olsen wrote: > I reset optind and opterr to zero. Pass it a few arguments, it works the first > time, then it just garbles up the arguments. I've tried a handful of ways to > pass it the argv array. Here is the most recent shot, but I've tried all types > of methods of malloc() and calloc() and different free/unfree/memset > combinations to get it to act right. Everything points to the same result. The > second time around, the argv array gets corrupted, and unusable. > > Here's the latest round of calling: > http://lude.net/grapher.c Latest as of this AM. I'm able to get the program to produce a few graphs, then eventually it dies. Random locations. Same error. Here's the latest code: http://lude.net/grapher-new.c Here's what it always crashes at: Program received signal SIGSEGV, Segmentation fault. 0xb7fb15b6 in data_proc (im=0xbfffcf20) at rrd_graph.c:1043 1043 if (im->gdes[vidx].gf == GF_VDEF) { Valgrind is telling me it's trying to access memory that was either not malloc'd or already free'd. I'm not familiar enough with the rrd source to see where that might happen. I would appreciate anyone's offerings for advice. -d -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:rrd-developers-request@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-developers-request@list.ee.ethz.ch?subject=help Archive http://www.ee.ethz.ch/~slist/rrd-developers WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi