[rrd-users] Re: Segfaulting

Allen Wooden awooden at harboreasthost.com
Wed Nov 8 19:55:22 MET 2006


Hello Simon,

Wednesday, November 8, 2006, 1:54:15 AM, you wrote:

> Erik wrote:
>>I've got some 8000+ rrdfiles in a dir and i am trying to create a 
>>graph containing the sum from a selecton of about 1700 rrdfiles.
>>The first problem i ran into is the ARG_MAX limit, by renaming 
>>variables i've gotten around that.
>>The problem now is that RRDtool segfaults, is there any other way to 
>>create an aggregate graph for my files?
>>
>>*** glibc detected *** free(): invalid pointer: 0x080ef008 ***

> With 1700 files my guess would be a memory limitation. I have a graph 
> that does 510 values (in and out by IP for a class C subnet) and it 
> can take well over 1G of ram to process everything.

> Does your script crash immediately, or after a while ? What happens 
> to it's memory useage ?

I've been beating my head against the wall with a segfault when
running my script against recently created rrdfiles. The same script
will run just fine against a rrd file that is over a year old but
dumps when run against an rrd file that was created recently.

This is on Solaris 8, rrdtool 1.2.15, perl 5.8.3

mdb core.perl.11823.lm1.1001.10.1163011252
Loading modules: [ ]
> $C
ffbed9a0 libc.so.1`_malloc_unlocked+0x164(900, 403c5797, ff23c008, 900, 415db0, 0)
ffbeda00 libc.so.1`malloc+0x20(900, 12c, 431850, 1c40, 22304, ff0f3d04)
ffbeda60 librrd.so.2`data_calc+0x2e8(ffbedc48, 3c66e8, 1c40, 9, 20, 4260)
ffbedaf0 librrd.so.2`graph_paint+0x60(ffffffff, ffbef914, ffbedc48, 43fcf0, 6700, ffbedc48)
ffbedbe8 librrd.so.2`rrd_graph+0xbc(39, 413ca0, ffbef914, ffbef910, ffbef90c, ff23f014)
ffbef8a0 RRDs.so`XS_RRDs_graph+0x160(1c231c, 1372d8, 0, 4, 40000, 11ce20)
ffbef940 Perl_pp_entersub+0x55c(11a000, 11cc00, 0, 1371f8, 137274, 4000)
ffbef9c0 Perl_runops_standard+0x30(11cc00, 0, ffbefb0c, 122e18, 11c800, 3f3fb8)
ffbefa30 S_run_body+0x144(1, 0, 11c5d4, 1a, ffbeffb4, 11cf8c)
ffbefaa0 perl_run+0x8c(11d098, fffffffc, 3, ffbefc44, 1, 2)
ffbefb70 main+0x98(3, ffbefc44, ffbefc54, 11c3e8, 0, 0)
ffbefbe0 _start+0x5c(0, 0, 0, 0, 0, 0)

gdb --core=core.perl.11823.lm1.1001.10.1163011252
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8".
Core was generated by `perl bandwidth.pl who=pktr_wc_catapult'.
Program terminated with signal 10, Bus error.
#0  0xff1c1e58 in ?? ()
(gdb) bt
#0  0xff1c1e58 in ?? ()
#1  0xff1c1ce0 in ?? ()
#2  0xff0f3d30 in ?? ()

 







-- 
Best regards,
 Allen                            mailto:awooden at harboreasthost.com


--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list