Ticket #120 (closed defect: worksforme)
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).



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