[rrd-users] Segfaults in 1.3.1-4ubuntu2 and 1.4.4

Anders Kvist anders at kvistmail.dk
Sun Nov 7 00:26:12 CET 2010


I have been looking a bit more into this and found that it were the 
number of rows combined with steps in RRA line.

If I'm using step=10 the limit is 715829 and if step=60 the limit is 
119304 - that makes sense as 10*715829 ~ 60*119304. But why this limit? 
A known limit on 32bit hardware? It's a vmware server guest if that can 
have anything to do with it..

/Anders


On 2010-11-06 12:45, Anders Kvist wrote:
>  Hey
>
> I just installed rrdtool on my server but it segfaults when I'm trying 
> to draw a graph (works fine with update, info and such). The server 
> runs Ubuntu Karmic (32bit) and I have tried both with the package 
> (1.3.1-4ubuntu2) and the latest source (1.4.4). I tried the same 
> commands on my workstation running Ubuntu Maverick (64bit) and here it 
> work as expected...anyone got an idea? Is it me who is doing something 
> wrong or is it a bug in rrdtool that have lived for many releases?
>
> rrdtool create kwh.rrd \
> DS:value:COUNTER:3600:0:1024 \
> RRA:MIN:0:60:2628000 \
> RRA:MAX:0:60:2628000 \
> RRA:AVERAGE:0:60:2628000
>
> rrdtool graph test.png \
>     --imgformat=PNG \
>     --start -1hour \
>     --title="kWh" \
>     \
>     DEF:value="kwh.rrd":value:AVERAGE \
>     LINE2:value#000000:"Value"
>
> Here is a backtrace from the packaged version:
> Program received signal SIGSEGV, Segmentation fault.
> 0xb7e8b056 in memcpy () from /lib/tls/i686/cmov/libc.so.6
> (gdb) bt
> #0  0xb7e8b056 in memcpy () from /lib/tls/i686/cmov/libc.so.6
> #1  0x00000008 in ?? ()
> #2  0xb7fc1f83 in ?? () from /usr/lib/librrd.so.4
> #3  0xb7fb6f40 in ?? () from /usr/lib/librrd.so.4
> #4  0xb7fb74a1 in ?? () from /usr/lib/librrd.so.4
> #5  0xb7fb910a in rrd_graph_v () from /usr/lib/librrd.so.4
> #6  0xb7fb9326 in rrd_graph () from /usr/lib/librrd.so.4
> #7  0x0804ac44 in ?? ()
> #8  0x0804b709 in ?? ()
> #9  0xb7e2cb56 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
> #10 0x08049261 in ?? ()
>
> And here is a backtrace from 1.4.4:
> Program received signal SIGSEGV, Segmentation fault.
> 0xb7b90056 in memcpy () from /lib/tls/i686/cmov/libc.so.6
> (gdb) bt
> #0  0xb7b90056 in memcpy () from /lib/tls/i686/cmov/libc.so.6
> #1  0xfd6aae80 in ?? ()
> #2  0xb7fc56eb in rrd_fetch_fn (filename=0x805d910 "kwh.rrd", 
> cf_idx=CF_AVERAGE, start=0x805df34, end=0x805df38, step=0xbfffc31c, 
> ds_cnt=0x8094000,
>     ds_namv=0x805df54, data=0x805df58) at rrd_fetch.c:450
> #3  0xb7fb925e in data_fetch (im=0xbfffc4ac) at rrd_graph.c:879
> #4  0xb7fb97b5 in graph_paint (im=0xbfffc4ac) at rrd_graph.c:3251
> #5  0xb7fbb422 in rrd_graph_v (argc=8, argv=0xbffff798) at 
> rrd_graph.c:3961
> #6  0xb7fbb606 in rrd_graph (argc=8, argv=0xbffff798, 
> prdata=0xbffff5e4, xsize=0xbffff5e0, ysize=0xbffff5dc, stream=0x0, 
> ymin=0xbffff5d0, ymax=0xbffff5c8)
>     at rrd_graph.c:3842
> #7  0x0804ac84 in HandleInputLine (argc=9, argv=0xbffff794, 
> out=0xb7c5c560) at rrd_tool.c:792
> #8  0x0804b6a7 in main (argc=134751704, argv=0xbffff794) at 
> rrd_tool.c:513
>



More information about the rrd-users mailing list