[rrd-developers] RRD 1.1.x in CVS is segfaulting

Ian Holsman rrd.developers at holsman.net
Fri Nov 7 10:46:17 MET 2003


for some reason adding a ':' into the label or comment field of the 
graph will cause a segfault. by removing the ':' it doesn't segfault 
anymore..


the perl (5.8.2) program in question is:
#!/opt/pma-perl/bin/perl
use strict;
use RRDs;

my @files;
my @graphs;
my @theargs;

@files = ("DEF:d0=ctxtDs.rrd:datum:AVERAGE");
#@theargs=("-l 0","--start","now - 49 
hours","-h","100","-w","588","-t","Context 
switches/Interrupts","-v","rate/s");


@graphs=("LINE2:d0#0000ff:Context switches", "COMMENT:Last Updated Fri 
Nov  7 01 10:00 2003(PST)"
);

RRDs::graph "/tmp/crash.png",  "-a", "PNG",
     @files,
     @graphs;


the back trace is:
(gdb) bt
#0  0x42075a29 in free () from /lib/i686/libc.so.6
#1  0x400f7271 in rrd_freemem (mem=0x8b204781) at rrd_open.c:190
#2  0x400e99da in XS_RRDs_graph () from 
/opt/pma-perl/lib/site_perl/5.8.2/i686-linux-thread-multi/auto/RRDs/RRDs.so
#3  0x080b3f87 in Perl_pp_entersub ()
#4  0x080ae8e4 in Perl_runops_standard ()
#5  0x08060ec2 in S_run_body ()
#6  0x08060cba in perl_run ()
#7  0x0805e215 in main ()
#8  0x420158f7 in __libc_start_main () from /lib/i686/libc.so.6


Regards
ian

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



More information about the rrd-developers mailing list