[rrd-developers] Seg fault with r1094
Matthew Chambers
matthew.chambers at vanderbilt.edu
Fri Jun 1 18:03:40 CEST 2007
> I had a short glance at the alleged segfault and cannot reproduce it
> with a pristine checkout built with -O0 -g3 -ggdb3 on the PPC box and
> running that 32bit binary on the PPC64 box.
>
> If this turns out to be a problem at higher optimization-levels, i
> suggest you talk to the redhat guys about this, fwiw. I've been bitten
> by redhat compilers miscompiling for loops on a so called advanced
> server lately even on i386, so the possibility that redhat's ppc
> compiler does stuff differently than one would expect is something i
> would not exactly be surprised about..
Bernhard,
I am thoroughly confused now. I think the shared libraries are conspiring
against me.
On the PPC box:
After running: make clean distclean
I've been running: ./configure --prefix=/frogstar/usr/ppc; make; make
install
This is of course on the trunk source. And it appears to work and install
things to the right places. The file dates in /frogstar/usr/ppc/bin and
/frogstar/usr/ppc/lib get updated to the compile time:
$ find /frogstar/usr/ppc/bin -name "*rrd*" | xargs ls -l
55175 Jun 1 10:46 /frogstar/usr/ppc/bin/rrdcgi
14180 Jun 1 10:46 /frogstar/usr/ppc/bin/rrdtool
157083 Jun 1 10:46 /frogstar/usr/ppc/bin/rrdupdate
$ find /frogstar/usr/ppc/lib -name "*rrd*" | xargs ls -l
889996 Jun 1 10:46 /frogstar/usr/ppc/lib/librrd.a
832 Jun 1 10:46 /frogstar/usr/ppc/lib/librrd.la
16 Jun 1 10:46 /frogstar/usr/ppc/lib/librrd.so -> librrd.so.2.0.11
16 Jun 1 10:46 /frogstar/usr/ppc/lib/librrd.so.2 -> librrd.so.2.0.11
640946 May 29 16:19 /frogstar/usr/ppc/lib/librrd.so.2.0.10
649101 Jun 1 10:46 /frogstar/usr/ppc/lib/librrd.so.2.0.11
892026 Jun 1 10:46 /frogstar/usr/ppc/lib/librrd_th.a
863 Jun 1 10:46 /frogstar/usr/ppc/lib/librrd_th.la
19 Jun 1 10:46 /frogstar/usr/ppc/lib/librrd_th.so ->
librrd_th.so.2.0.11
19 Jun 1 10:46 /frogstar/usr/ppc/lib/librrd_th.so.2 ->
librrd_th.so.2.0.11
650481 Jun 1 10:46 /frogstar/usr/ppc/lib/librrd_th.so.2.0.11
642350 May 29 16:19 /frogstar/usr/ppc/lib/librrd_th.so.2.0.8
On the PPC64 box:
I have an RPM install of 1.2.23 in my path:
$ which rrdtool
/usr/bin/rrdtool
When I manually run the absolute path to the trunk version:
$ /frogstar/usr/ppc/bin/rrdtool
RRDtool 1.2.99907052400 Copyright 1997-2007 by Tobias Oetiker
<tobi at oetiker.ch>
Compiled Jun 1 2007 10:44:15
When I run the version you built:
$ /home/aldot/rrdtool-ppc32
RRDtool 1.2.99907052400 Copyright 1997-2007 by Tobias Oetiker
<tobi at oetiker.ch>
Compiled Jun 1 2007 02:19:57
When I run your version with an RRD info:
$ /home/aldot/rrdtool-ppc32 info
/var/lib/ganglia/rrds/__SummaryInfo__/cpu_user.rrd
filename = "/var/lib/ganglia/rrds/__SummaryInfo__/cpu_user.rrd"
rrd_version = "0003"
step = 15
last_update = 1180713507
...
I.e. it works fine.
When I run my version with an RRD info:
/frogstar/usr/ppc/bin/rrdtool info
/var/lib/ganglia/rrds/__SummaryInfo__/cpu_user.rrd
Segmentation fault
I.e. it's broken. There's something wrong here with libraries I suppose,
but I don't what (or how to fix it properly).
-Matt
More information about the rrd-developers
mailing list