[rrd-users] rrdtool seg fault using GPRINT

Salatiel Filho salatiel.filho at gmail.com
Wed Oct 17 16:18:06 CEST 2007

On 10/17/07, Alex van den Bogaerdt <alex at ergens.op.het.net> wrote:
> On Wed, Oct 17, 2007 at 12:02:24AM -0300, Salatiel Filho wrote:
> > Hi guys , i am trying to use rrdtool but everytime i try to use some GPRINT
> > function i get segmentation fault. This limits a lot the use of rrdtool.
> > Could anyone lead me to a solution. I had de debian etch binary 1.2.15 for
> > arm , and now i have 1.2.23 compiled by myself. Both segfault.
> The script you show is much to complicated for debugging purposes.
Sorry. Now i have one simpler.

usr/bin/rrdtool graph /tmp/a.png \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="LSPRO - Fan Speed" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="FAN - RPM" \
--slope-mode \
DEF:a="/usr/share/cacti-0.8.6j/rra/lspro_fan_27.rrd":fan:AVERAGE \
GPRINT:a:AVERAGE:"RPM\:%8.2lf %s"

It still seg faults :/
As a said every time i try to use GPRINT it seg faults.

> Remove elements from your script until the problem doesn't show itself,
> or until you end up without results.  Start by using only one of the
> DSes, for instance only "a".
> Maybe the problem disappears if you use less memory; then we may need
> to hunt down some code problem.
> Another thing to try: in the trouble tickets I notice a report claiming
> segfaults when LANG=C.  Changing this to anything else (LANG=banana)
> would fix the problem.  Unfortunately this bug was solved as "worksforme",
> probably because its submitter didn't respond anymore.
# locale

> Try printing less information, such as only "%8.2lf", or only "Current",
> and so on. Does this make a difference?  Try changing the options to printf.
> And so on.
No. :/

> --
> Alex van den Bogaerdt
> http://www.vandenbogaerdt.nl/rrdtool/
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


"O maior prazer do inteligente é bancar o  idiota
   diante de um  idiota que banca o inteligente".

More information about the rrd-users mailing list