[rrd-developers] core-dump freebsd 8.2 and rrdtool 1.4.7

Erik de Mare erik at oezie.org
Thu May 24 17:17:33 CEST 2012


Dear List,

when I run the following command I get a coredump.

./graph2.sh: line 14: 41874 Segmentation fault: 11  (core dumped) 
/opt/rrdtool-1.4.7/bin/rrdtool graph medewerkers2.png --lower-limit 0 
--imgformat PNG --start 20120317 --end now --width 400 --height 400 
DEF:amsterdamu=Amsterdam.rrd:users:AVERAGE 
DEF:amsterdami=Amsterdam.rrd:industry:AVERAGE 
DEF:amsterdamb=Amsterdam.rrd:business:AVERAGE 
DEF:amsterdams=Amsterdam.rrd:staf:AVERAGE 
AREA:amsterdams#008000:"Amsterdam" AREA:amsterdami#00FF00::STACK 
AREA:amsterdamb#77FF77::STACK GPRINT:amsterdamu:LAST:"%3.0lf" 
GPRINT:amsterdami:LAST:"%3.0lf" GPRINT:amsterdamb:LAST:"%3.0lf" 
GPRINT:amsterdams:LAST:"%3.0lf\n"

rrdtool version:
~/Smoel]$ /opt/rrdtool-1.4.7/bin/rrdtool
RRDtool 1.4.7  Copyright 1997-2012 by Tobias Oetiker <tobi at oetiker.ch>
                Compiled May 24 2012 16:45:11

Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv,  dump, restore,
                 last, lastupdate, first, info, fetch, tune,
                 resize, xport, flushcached

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages


gdb backtrace:
#0  0x280b765f in rrd_read (rrd_file=0x28a75040, buf=0x28a7fde0, 
count=32) at rrd_open.c:670
670         buf = memcpy(buf, rrd_simple_file->file_start + 
rrd_file->pos, _cnt);
[New Thread 28a01140 (LWP 100258)]
(gdb) backtrace
#0  0x280b765f in rrd_read (rrd_file=0x28a75040, buf=0x28a7fde0, 
count=32) at rrd_open.c:670
#1  0x2809f3b5 in rrd_fetch_fn (filename=0x28aa0110 "Amsterdam.rrd", 
cf_idx=CF_AVERAGE, start=0x28aa0734, end=0x28aa0738, step=0xbfbfc188, 
ds_cnt=0x28aa074c, ds_namv=0x28aa0754, data=0x28aa0758) at 
rrd_fetch.c:448
#2  0x280ac68f in data_fetch (im=0xbfbfc398) at rrd_graph.c:891
#3  0x280ac87b in graph_paint (im=0xbfbfc398) at rrd_graph.c:3281
#4  0x280ae7ea in rrd_graph_v (argc=25, argv=0xbfbfea54) at 
rrd_graph.c:4003
#5  0x280aea06 in rrd_graph (argc=25, argv=0xbfbfea54, 
prdata=0xbfbfe91c, xsize=0xbfbfe918, ysize=0xbfbfe914, stream=0x0, 
ymin=0xbfbfe908, ymax=0xbfbfe900) at rrd_graph.c:3883
#6  0x0804aab1 in HandleInputLine (argc=26, argv=0xbfbfea50, 
out=0x289577b0) at rrd_tool.c:870
#7  0x0804b2fb in main (argc=26, argv=0xbfbfea50) at rrd_tool.c:521


when I change start to  --start 20120517 it works.

create command.
rrdtool create Amsterdam.rrd --step 3600 DS:users:GAUGE:7200:0:99999 
DS:industry:GAUGE:7200:0:99999 DS:business:GAUGE:7200:0:99999 
DS:staf:GAUGE:7200:0:99999 RRA:AVERAGE:0.5:1:1000 RRA:MIN:0.5:168:5000 
RRA:MAX:0.5:168:5000 RRA:AVERAGE:0.5:168:5000

Thanks in advance,

Erik




More information about the rrd-developers mailing list