[rrd-users] VDEF hangs rrdtool
Dag Erlandsson
langarod2 at gmail.com
Wed Jun 27 18:12:01 CEST 2007
It looks like it was the optimizer. If turning it off it works OK.
Added some other printf and fond that the steps was wrong calculated.
The Diff is src->end - src->start (not calculated corrct)
Diff=4294880656
Step=240
DEBUG: start == 1182873600, end == 1182960240, 17895336 steps
I tested with some other expression to get it correct.
steps = ((long)src->end - (long)src->start) / src->step; Same result.
steps = src->end;
steps -= src->start;
steps /= src->step;
Also same result.
I was not able to find any expression that gives the correct result with
optimition.
Thanks for the help.
/Dag
2007/6/27, Alex van den Bogaerdt <alex at ergens.op.het.net>:
>
> On Tue, Jun 26, 2007 at 11:53:43PM +0200, Dag Erlandsson wrote:
> > It hangs with AVERAGE, MINIMUM and LAST also.
>
> Ack.
>
> > The strange thing is that if I enable the debug printf in the beginning
> of
> > vcalc_def() function, it prints out AND returns OK.
> > Then I tested to remove the debug printf again and now it hangs again.
>
> :-)
>
> Maybe a faulty optimizer? Try different optimizer settings when
> compiling.
>
> > So just now I'm in the situation when I add printfs to see what happens
> it
> > works, removes the dosn't work. It looks like I have to learn how to use
> > gdb. Can it be run on an ARM7 platform?
>
> Sorry, can't help here.
>
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20070627/96673dd0/attachment-0001.html
More information about the rrd-users
mailing list