Ticket #120 (closed defect: worksforme)

Opened 4 years ago

Last modified 4 years ago

rrdgraph segmentation fault when using VDEFs

Reported by: human Owned by: oetiker
Priority: major Milestone:
Component: rrd_graph Version: 1.2.23
Keywords: VDEF segmentation fault Cc:

Description

rrdtool graph /var/www/temps/data/day.png \

--imgformat PNG \ -c CANVAS#FFFFFF \ -t "24 h Temperature [°C]" \ -v "°C" \ -h 350 -w 175 \ -e -5minute \ --lazy \ -u 40 \ -l 0 \ -r \ -E \ DEF:Outside=/var/digitemp/temperature.rrd:out:AVERAGE \ DEF:Inside=/var/digitemp/temperature.rrd:in:AVERAGE \ VDEF:inl=Inside,LAST \ VDEF:outl=Outside,LAST \ COMMENT:"\n" \ LINE1:Inside#3333CC:"Inside\n" \ GPRINT:inl:"Latest\: %6.2lf°C\l" \ COMMENT:"\n" \ LINE1:Outside#FF0000:"Outside\n" \ GPRINT:outl:"Latest\: %6.2lf°C\l" \ COMMENT:"Insert Comment Here\\c" \ HRULE:0#000000

Segmentation fault. That's it. If I use the old version of GPRINT, which is something like GPRINT:Inside:MAX:"Max\: %6.2lf°C\t" etc. the script runs fine. RRDtool version 1.2.23 compiled from sources. Platform is Linksys NSLU2 with debian GNU/Linux with kernel 2.6.22. I do have, however, some problems regarding the pngs rrdtool creates. With the script above, creating one png takes 30 minutes and still in the graph at "max" is a VERY large number, at "min" same but negative, at "average" -inf and at "latest" 0 (the script above doesn't include but the LAST lines for clarity).

Change History

comment:1 Changed 4 years ago by oetiker

  • Status changed from new to closed
  • Resolution set to worksforme

hmmm this may be a compiler related issue, check the mailinglist archives.

Note: See TracTickets for help on using tickets.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.