Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94508 - rrdtool-1.2.8 - rrd_create_r segfault
Summary: rrdtool-1.2.8 - rrd_create_r segfault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-05-30 08:14 UTC by TAKAHASHI, Hideaki
Modified: 2016-03-14 19:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
This patch will fixed rrdtool-1.2.8/src/rrd_create.c (patch,754 bytes, patch)
2005-05-30 08:16 UTC, TAKAHASHI, Hideaki
Details | Diff
minimal sample code (test.c,259 bytes, text/x-csrc)
2005-05-30 16:30 UTC, TAKAHASHI, Hideaki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TAKAHASHI, Hideaki 2005-05-30 08:14:32 UTC
rrd_create.c contained in rrdtool-1.2.8 does not work(only amd64?).

The problem is wrong type parameter(dummychar1, dummychar2) given to sscanf in
function rrd_create_r.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 TAKAHASHI, Hideaki 2005-05-30 08:16:46 UTC
Created attachment 60195 [details, diff]
This patch will fixed rrdtool-1.2.8/src/rrd_create.c
Comment 2 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2005-05-30 09:12:48 UTC
Can someone from amd64 test please and confirm this?
Comment 3 TAKAHASHI, Hideaki 2005-05-30 16:30:50 UTC
Created attachment 60222 [details]
minimal sample code

To test.
% gcc zzz.c -l rrd
% ./a.out /tmp/z.rrd --step 300 DS:in0:GAUGE:1500:-25:25 \
RRA:AVERAGE:0.5:1:1200 RRA:MIN:0.5:12:2400 \
RRA:MAX:0.5:12:2400 RRA:AVERAGE:0.5:12:2400

and, next failes too.

% rrdtool create --step 300 DS:in0:GAUGE:1500:-25:25 \
RRA:AVERAGE:0.5:1:1200 RRA:MIN:0.5:12:2400 \
RRA:MAX:0.5:12:2400 RRA:AVERAGE:0.5:12:2400
Comment 4 TAKAHASHI, Hideaki 2005-05-30 16:35:26 UTC
> and, next failes too.
> % rrdtool create --step 300 DS:in0:GAUGE:1500:-25:25 \
> RRA:AVERAGE:0.5:1:1200 RRA:MIN:0.5:12:2400 \
> RRA:MAX:0.5:12:2400 RRA:AVERAGE:0.5:12:2400

oops. It needs target filename.
% rrdtool create /tmp/test.rrd --step ....

I found rrdtools-1.2.9 fixed this problem.
Comment 5 Daniel Webert 2005-06-03 15:54:22 UTC
can we close this one? a tcl issue was fixed 18-may-05 says changelog and there
is no prob w/ 1.2.9
Comment 6 TAKAHASHI, Hideaki 2005-06-06 05:42:47 UTC
ok. rrdtool-1.2.9 seems good.
Comment 7 Marcelo Goes (RETIRED) gentoo-dev 2005-06-18 19:06:49 UTC
I took 1.2.8 out for a different bug, so it should be good for this one too.
I see the patch suggested by Takahashi is included in 1.2.10, so I think we are
done with this issue.

Thanks for reporting.