Hi! > I'm trying to use librrd from a C main program. Execution fails sometimes when calling to rrd_graph(). The output of the debugger "Valgrind" is: > > ==31745== Invalid read of size 2 > ==31745== at 0x40CEBA3: getenv (in /lib/tls/libc-2.3.6.so) > ==31745== by 0x4125690: (within /lib/tls/libc-2.3.6.so) > ==31745== by 0x412635D: tzset (in /lib/tls/libc-2.3.6.so) > ==31745== by 0x402FD19: rrd_graph_init (rrd_graph.c:2875) > ==31745== by 0x40355AC: rrd_graph (rrd_graph.c:2801) > ==31745== by 0x8049B6C: main (in/home/sole/proyecto/erlang/lib/rrdtool_app-1.0/priv/ExtProg) > ==31745== Address 0x4115006B is not stack'd, malloc'd or (recently) free'd > ==31745== > ==31745== Process terminating with default action of signal 11 (SIGSEGV) > > Could you help me to solve this problem? Sure. But could you sent us the output of a _debugger_ instead of a memory checker? Does the program crash with SIGSEGV if you run it outside of valgrind? Compile your program with debug options. Set your coresize to unlimited, run your program - it caught a SIGSEGV so a core dump will be generated. Run gdb core and send the output of backtrace and backtrace full This makes debugging easier. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 71-75 mail: a.maus@science-computing.de 72070 Tuebingen, Germany tel.: +49 7071 9457 456 www.science-computing.de -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi