[rrd-developers] rrdtool: update crash
Tobias Oetiker
tobi at oetiker.ch
Tue Jun 10 11:35:14 CEST 2008
Hi Sebastian,
thanks ... added
tobi
Today Sebastian Harl wrote:
> tags 428780 + patch
> retitle 428780 rrdtool create: Missing command line verification.
> thanks
>
> Hi Justin,
>
> On Wed, Jun 13, 2007 at 10:09:25PM -0400, Justin Pryzby wrote:
> > $ rrdtool create --start 1080000000 foo.rrd DS:bar:GAUGE:1:U:U RRA:AVERAGE:0:1:0
>
> Sometimes, it's the small things: You've specified a row count of 0 in
> the RRA definition (that's the zero at the end of the RRA definition),
> that is, you're telling RRDtool to keep 0 values in that RRA.
>
> > $ rrdtool update ./foo.rrd N:1 0:0
> > Segmentation fault
>
> Obviously, rrdtool does not handle the case that the row count is zero
> (FWIW that does not make any sense anyway). In the current SVN version
> of the upcoming 1.3 release, rrdcreate segfaults in that case because of
> an division by zero. The same seems to apply to rrdupdate in 1.2.
>
> If you specify a row count greater than zero everything works fine.
>
> Anyway, software should not segfault because of invalid input. Attached
> is a patch against the current SVN trunk which will cause rrdcreate to
> bail out with an error message when specifying a row count less than or
> equal to zero. Tobi, could you please apply that to trunk?
>
> I'm not sure, if 1.3 is going to make it into Lenny, so I will backport
> that fix to 1.2 and upload a new version to unstable soon.
>
> Cheers,
> Sebastian
>
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902
More information about the rrd-developers
mailing list