[rrd-users] Segfault on rrdtool restore...

Alex van den Bogaerdt alex at ergens.op.het.net
Wed Feb 20 12:04:43 CET 2008


On Wed, Feb 20, 2008 at 09:31:58AM +0100, Terje Bless wrote:

> I'm trying to add a datasource to an RRD file by dumping, editing the
> XML, and restoring, but I'm getting a segfault on 'rrdtool restore' of
> the modified XML file. Any suggestions on how to debug this? I'm sure
> my input is bad somehow, but my visual inspection doesn't shed any
> light.
> 
> Specifically I'm trying to add a COMPUTE datasource by manually
> applying the equivalent modifications of the contrib/rrdaddsource
> script (which doesn't support COMPUTE datasources). Any particular
> caveats in this regard?
> 
> Also, ISTR having run into rrdtool restore segfaulting before (and
> giving up). Is it perhaps reasonable to infer that 'rrdtool restore'
> could use more robust input handling (possibly just by bailing with a
> descriptive error message on bad input)?

First things first:

Does it work when you do not make any change on the XML file?

-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/



More information about the rrd-users mailing list