[rrd-users] "rrdtool graph" and RRDs::graph coredumps
Thomas Parmelan
tom at proxad.net
Tue Mar 28 18:33:54 MEST 2000
Hello,
I am using rrdtool to graph a CDEF which is the sum of > 100
datasources. When doing this, both "rrdtool graph" and "RRDs::graph"
get a segmentation fault.
Here is a sample backtrace from rrdtool :
(gdb) bt
#0 0x400f7f7a in realloc () from /lib/libc.so.6
#1 0x400f7f03 in realloc () from /lib/libc.so.6
#2 0x4001e791 in data_calc () from /usr/lib/librrd.so.0
#3 0x40021d1d in graph_paint () from /usr/lib/librrd.so.0
#4 0x40023c73 in rrd_graph () from /usr/lib/librrd.so.0
#5 0x804914f in rrd_set_error ()
#6 0x8048d43 in rrd_set_error ()
#7 0x400c0a42 in __libc_start_main () from /lib/libc.so.6
Here is a sample backtrace from Perl / RRDs::graph :
(gdb) bt
#0 0x400deb59 in free () from /lib/libc.so.6
#1 0x400df401 in realloc () from /lib/libc.so.6
#2 0x400def03 in realloc () from /lib/libc.so.6
#3 0x401a19c1 in data_calc () from /usr/lib/perl5/5.005/i386-linux/auto/RRDs/RRDs.so
#4 0x401a4f4d in graph_paint () from /usr/lib/perl5/5.005/i386-linux/auto/RRDs/RRDs.so
#5 0x401a6ea3 in rrd_graph () from /usr/lib/perl5/5.005/i386-linux/auto/RRDs/RRDs.so
#6 0x4019d54c in XS_RRDs_graph () from /usr/lib/perl5/5.005/i386-linux/auto/RRDs/RRDs.so
#7 0x808a10b in Perl_pp_entersub ()
#8 0x80b5e50 in Perl_runops_standard ()
#9 0x80593d5 in perl_run ()
#10 0x805779d in main ()
#11 0x400a7a42 in __libc_start_main () from /lib/libc.so.6
I am using a Debian GNU/Linux "woody" system. Tried with the "official"
rrdtool-1.0.7-3 Debian package and a locally made rrdtool-1.0.13 Debian
package, the result is the same. Perl version is 5.005_03 (official
Debian package).
I suspect the problem comes from the fact the DEF list and the CDEF
definition and therefore the arguments passed to rrdtool or the rrdtool
Perl module is quite huge, but didn't expect that to fail with a
coredump !
Here's a sample test script (line breaks inserted for better
readability) :
rrdtool graph /my/path/to/zt0.test.png \
"--start" "end-1days" \
"--title" "ZT2 ZU (day)" \
"--vertical-label" "Appels" \
"DEF:caa28=/my/path/to/caa28.rrd:ds0:AVERAGE" \
[about 100 other similar DEF lines]
"CDEF:zt=caa28,UN,0,caa28,IF,caa29,UN,0,caa29,IF,[about 100 other
similar datasources],+,+,+,[add all the ~ 100 datasources],+" \
"AREA:zt:#00FF00:Appels sur la ZT"
(each .rrd contains 1 DS representing a number of calls, and I want to
summ them all)
Any ideas how to fix this problem ?
--
tom at proxad.net -- Linux : the Penguin is FREE ! -- tom at ankh.fr.EU.org
Usenet Canal Historique Le SPAM, il ne passera pas par moi!
--
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