[rrd-developers] rrdtool: *** glibc detected *** free(): invalid pointer: 0x08056450 ***

Joachim Weller JoachimWeller at web.de
Thu Jul 17 08:59:12 CEST 2008


Hi,

on Wed, 16 Jul 2008 02:44:03 -0700, Andreas Maus wrote:
> I don't actually know whats causing the error but you can
> try to set the environment variable MALLOC_CHECK_ to 0
> before calling rrdtool. (Note the extra _ at the end of the
> variable name.)
I did this, but the only difference is, that sections "======= Backtrace: ========="
and "======= Memory map: ========" are not listed then, but only the "memory acess error" at the end.

____________________________________________________ 
export MALLOC_CHECK_=1 ;./create-SolvisData_png.sh
malloc: using debugging hooks
malloc: using debugging hooks
malloc: using debugging hooks
malloc: using debugging hooks
./create-SolvisData_png.sh: line 117: 21460 Speicherzugriffsfehler
____________________________________________________ 

the error output without MALLOC_CHECK_ is:
____________________________________________________ 
unset MALLOC_CHECK_ ;./create-SolvisData_png.sh
*** glibc detected *** rrdtool: free(): invalid pointer: 0x08051a50 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6[0xb7dae564]
/lib/i686/cmov/libc.so.6(cfree+0x96)[0xb7db0766]
/usr/lib/librrd.so.2(rrd_free+0x24)[0xb7f1f294]
/usr/lib/librrd.so.2(rrd_fetch_fn+0x4d3)[0xb7f02303]
/usr/lib/librrd.so.2(data_fetch+0x238)[0xb7f099c8]
/usr/lib/librrd.so.2(graph_paint+0x44)[0xb7f09e44]
/usr/lib/librrd.so.2(rrd_graph+0xcd)[0xb7f0c02d]
/usr/lib/librrd.so.2(HandleInputLine+0x10b9)[0xb7f1ac89]
/usr/lib/librrd.so.2(main+0x92)[0xb7f1ae62]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb7d56456]
rrdtool(main+0x35)[0x8048411]
======= Memory map: ========
08048000-08049000 r-xp 00000000 08:04 280272     /usr/bin/rrdtool
08049000-0804a000 rw-p 00000000 08:04 280272     /usr/bin/rrdtool
0804a000-0808c000 rw-p 0804a000 00:00 0          [heap]
b7800000-b7821000 rw-p b7800000 00:00 0 
b7821000-b7900000 ---p b7821000 00:00 0 
b7982000-b7989000 r--s 00000000 08:04 278831     /usr/lib/gconv/gconv-modules.cache
b798a000-b7996000 r-xp 00000000 08:04 1474621    /lib/libgcc_s.so.1
b7996000-b7997000 rw-p 0000b000 08:04 1474621    /lib/libgcc_s.so.1
b7997000-b7998000 rw-p b7997000 00:00 0 
b7998000-b7a7a000 r--p 00477000 08:04 344410     /usr/lib/locale/locale-archive
b7a7a000-b7ab9000 r--p 00357000 08:04 344410     /usr/lib/locale/locale-archive
b7ab9000-b7cb9000 r--p 00000000 08:04 344410     /usr/lib/locale/locale-archive
b7cb9000-b7cba000 rw-p b7cb9000 00:00 0 
b7cba000-b7ccf000 r-xp 00000000 08:04 279021     /usr/lib/libart_lgpl_2.so.2.3.20
b7ccf000-b7cd0000 rw-p 00014000 08:04 279021     /usr/lib/libart_lgpl_2.so.2.3.20
b7cd0000-b7cd1000 rw-p b7cd0000 00:00 0 
b7cd1000-b7d3c000 r-xp 00000000 08:04 282800     /usr/lib/libfreetype.so.6.3.16
b7d3c000-b7d40000 rw-p 0006a000 08:04 282800     /usr/lib/libfreetype.so.6.3.16
b7d40000-b7e95000 r-xp 00000000 08:04 1474939    /lib/i686/cmov/libc-2.7.so
b7e95000-b7e96000 r--p 00155000 08:04 1474939    /lib/i686/cmov/libc-2.7.so
b7e96000-b7e98000 rw-p 00156000 08:04 1474939    /lib/i686/cmov/libc-2.7.so
b7e98000-b7e9b000 rw-p b7e98000 00:00 0 
b7e9b000-b7ebf000 r-xp 00000000 08:04 1474945    /lib/i686/cmov/libm-2.7.so
b7ebf000-b7ec1000 rw-p 00023000 08:04 1474945    /lib/i686/cmov/libm-2.7.so
b7ec1000-b7ed5000 r-xp 00000000 08:04 280287     /usr/lib/libz.so.1.2.3.3
b7ed5000-b7ed6000 rw-p 00013000 08:04 280287     /usr/lib/libz.so.1.2.3.3
b7ed6000-b7ef8000 r-xp 00000000 08:04 283172     /usr/lib/libpng12.so.0.15.0
b7ef8000-b7ef9000 rw-p 00021000 08:04 283172     /usr/lib/libpng12.so.0.15.0
b7ef9000-b7f3a000 r-xp 00000000 08:04 280267     /usr/lib/librrd.so.2.0.13
b7f3a000-b7f3f000 rw-p 00040000 08:04 280267     /usr/lib/librrd.so.2.0.13
b7f3f000-b7f41000 rw-p b7f3f000 00:00 0 
b7f54000-b7f55000 rw-p b7f54000 00:00 0 
b7f55000-b7f56000 r-xp b7f55000 00:00 0          [vdso]
b7f56000-b7f70000 r-xp 00000000 08:04 1474886    /lib/ld-2.7.so
b7f70000-b7f72000 rw-p 0001a000 08:04 1474886    /lib/ld-2.7.so
bfa94000-bfaaa000 rw-p bffea000 00:00 0          [stac
./create-SolvisData_png.sh: line 117: 21466 Speicherzu
____________________________________________________ 
(note, the output is truncated vertically because my xterm got screwed up somehow. If of interest, I can give full oputput, when back home again)

> Which version of Sidux are you using? Where did your rrdtool
> come from ? (Package or compiled by yourself?).
sidux 2007-04 - kde-full - (200711210243) with some dist-upgrades, but not at the actual sidux relesase.
rrdtool was installed as normal sidux/debian package (here listed the 64bit version on the non crashing system):

Package: rrdtool
Priority: optional
Section: utils
Installed-Size: 1212
Maintainer: Debian RRDtool Team <rrdtool at ml.snow-crash.org>
Architecture: amd64
Source: rrdtool (1.2.27-2)
Version: 1.2.27-2+b1
Depends: libc6 (>= 2.7-1), libpng12-0 (>= 1.2.13-4), librrd2 (>= 1.2.15), zlib1g (>= 1:1.1.4)
Suggests: librrds-perl
Filename: pool/main/r/rrdtool/rrdtool_1.2.27-2+b1_amd64.deb
Size: 571724
MD5sum: 1de422539173cc7505516b4bb0a1776c

What else can I do to investigate further ?

regards, Joachim



More information about the rrd-developers mailing list