[rrd-users] Re: rrdgraph segfaults on some databases

Steve Wray stevew at catalyst.net.nz
Mon Nov 1 03:51:19 MET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 01 November 2004 14:16, Steve Wray wrote:
> On Monday 01 November 2004 13:13, Steve Wray wrote:
> > Hi there,
> > I am wondering if this is just a glitch in the rrd databases
> > involved, but I am finding that rrdtool graph is segfaulting on
> > some of my longer running rrd databases.
> >
> > I can generate graphs with a start time of up to 7 weeks ago,
> > but any earlier and rrdtool graph segfaults. I started accumulating
> > data about 10 weeks ago.
>
[snip]

Following up *again* with some more debug info.

I'm totally new to gdb so this was an interesting exercise
:)

I grabbed the latest source, and compiled rrdtool.

Ran rrdtool under gdb and traced the segfault to rrd_fetch.c apparently 
around line 310.

I uncommented the #define DEBUG at the top of rrd_fetch.c, compiled and 
ran again.

I get this;

start 1092006000 end 1099269000 step 9000 rows  808
rra_start 3216956296, rra_end 1099260000, start_off -236105, end_off -1
First Seek: rra_base 416604 rra_pointer 241920
pre fetch -236105 --        nan
pre fetch -236104 --        nan
pre fetch -236103 --        nan
pre fetch -236102 --        nan
pre fetch -236101 --        nan
[snip -- lots of the 'same']
pre fetch -220299 --        nan
pre fetch -220298 --        nan
pre fetch -220297 --        nan
pre fetch -220296 --        nan
pre fetch -220295 --
[and there it segfaults]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBhaSsmVx2hyhuTucRAhEmAJ0Ujqg8xlBiHbcp/q1i9buxDenZvQCgqdo3
o1FuL1NQNp9ovTH4XmbqJw4=
=ghFl
-----END PGP SIGNATURE-----

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list