[rrd-users] rrdtool seg fault using GPRINT
Salatiel Filho
salatiel.filho at gmail.com
Wed Oct 17 05:02:24 CEST 2007
Hi guys , i am trying to use rrdtool but everytime i try to use some GPRINT
function i get segmentation fault. This limits a lot the use of rrdtool.
Could anyone lead me to a solution. I had de debian etch binary 1.2.15 for
arm , and now i have 1.2.23 compiled by myself. Both segfault.
# uname -a
Linux LS-GL7D6 2.6.12.6-arm1 #77 Tue Dec 5 22:23:46 CST 2006 armv5tejl
GNU/Linux
# rrdtool -v
RRDtool 1.2.23 Copyright 1997-2007 by Tobias Oetiker <tobi at oetiker.ch>
Compiled Oct 16 2007 23:04:34
# /usr/bin/rrdtool graph /tmp/a.png --imgformat=PNG --start=-86400
--end=-300 --title="LSPRO - Load Average" --rigid --base=1000 --height=120
--width=500 --alt-autoscale-max --lower-limit=0 --units-exponent=0
--vertical-label="processes in the run queue" --slope-mode
DEF:a="/usr/share/cacti-0.8.6j/rra/lspro_load_1min_12.rrd":load_1min:AVERAGE
DEF:b="/usr/share/cacti-0.8.6j/rra/lspro_load_5min_14.rrd":load_5min:AVERAGE
DEF:c="/usr/share/cacti-0.8.6j/rra/lspro_load_15min_13.rrd":load_15min:AVERAGE
CDEF:cdefg=TIME,1192584729,GT,a,a,UN,0,a,IF,IF,TIME,1192584729,GT,b,b,UN,0,b,IF,IF,TIME,1192584729,GT,c,c,UN,0,c,IF,IF,+,+
AREA:a#EACC00:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n"
AREA:b#EA8F00:"5 Minute Average":STACK GPRINT:b:LAST:" Current\:%8.2lf\n"
AREA:c#FF0000:"15 Minute Average":STACK GPRINT:c:LAST:"Current\:%8.2lf\n"
LINE1:cdefg#000000:"Total"
Segmentation fault
# strace /usr/bin/rrdtool graph /tmp/a.png --imgformat=PNG --start=-86400
--end=-300 --title="LSPRO - Load Average" --rigid --base=1000 --height=120
--width=500 --alt-autoscale-max --lower-limit=0 --units-exponent=0
--vertical-label="processes in the run queue" --slope-mode
DEF:a="/usr/share/cacti-0.8.6j/rra/lspro_load_1min_12.rrd":load_1min:AVERAGE
DEF:b="/usr/share/cacti-0.8.6j/rra/lspro_load_5min_14.rrd":load_5min:AVERAGE
DEF:c="/usr/share/cacti-0.8.6j/rra/lspro_load_15min_13.rrd":load_15min:AVERAGE
CDEF:cdefg=TIME,1192584729,GT,a,a,UN,0,a,IF,IF,TIME,1192584729,GT,b,b,UN,0,b,IF,IF,TIME,1192584729,GT,c,c,UN,0,c,IF,IF,+,+
AREA:a#EACC00:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n"
AREA:b#EA8F00:"5 Minute Average":STACK GPRINT:b:LAST:" Current\:%8.2lf\n"
AREA:c#FF0000:"15 Minute Average":STACK GPRINT:c:LAST:"Current\:%8.2lf\n"
LINE1:cdefg#000000:"Total"
execve("/usr/bin/rrdtool", ["/usr/bin/rrdtool", "graph", "/tmp/a.png",
"--imgformat=PNG", "--start=-86400", "--end=-300", "--title=LSPRO - Load
Average", "--rigid", "--base=1000", "--height=120", "--width=500",
"--alt-autoscale-max", "--lower-limit=0", "--units-exponent=0",
"--vertical-label=processes in th"..., "--slope-mode", ...], [/* 23 vars
*/]) = 0
uname({sys="Linux", node="LS-GL7D6", ...}) = 0
brk(0) = 0x11000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40015000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=20010, ...}) = 0
mmap2(NULL, 20010, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/usr/lib/librrd.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0hV\0\0004"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=578967, ...}) = 0
mmap2(NULL, 311844, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x4001e000
mprotect(0x4005d000, 53796, PROT_NONE) = 0
mmap2(0x40065000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3f) = 0x40065000
mmap2(0x40069000, 4644, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40069000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libpng12.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\0045\0\000"..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=127124, ...}) = 0
mmap2(NULL, 158800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x4006b000
mprotect(0x4008a000, 31824, PROT_NONE) = 0
mmap2(0x40091000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e) = 0x40091000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libz.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\254\26\0"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=84988, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40092000
mmap2(NULL, 116668, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x40093000
mprotect(0x400a8000, 30652, PROT_NONE) = 0
mmap2(0x400af000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0x400af000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\3042\0\000"..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=78836, ...}) = 0
mmap2(NULL, 110572, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x402a6000
mprotect(0x402b9000, 32748, PROT_NONE) = 0
mmap2(0x402c0000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0x402c0000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x402c1000
mprotect(0x40233000, 8192, PROT_READ) = 0
mprotect(0x40123000, 4096, PROT_READ) = 0
mprotect(0x4001c000, 4096, PROT_READ) = 0
munmap(0x40016000, 20010) = 0
brk(0) = 0x11000
brk(0x32000) = 0x32000
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=276, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=276, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40016000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0"..., 4096) =
276
close(3) = 0
munmap(0x40016000, 4096) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1449376, ...}) = 0
mmap2(NULL, 1449376, PROT_READ, MAP_PRIVATE, 3, 0) = 0x402c2000
close(3) = 0
time(NULL) = 1192589982
time(NULL) = 1192589982
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=276, ...}) = 0
time(NULL) = 1192589982
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=276, ...}) = 0
time(NULL) = 1192589982
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=276, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=276, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=276, ...}) = 0
open("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf", O_RDONLY) =
3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=258332, ...}) = 0
mmap2(NULL, 258332, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40424000
close(3) = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=21584, ...}) = 0
mmap2(NULL, 21584, PROT_READ, MAP_SHARED, 3, 0) = 0x40464000
close(3) = 0
munmap(0x40424000, 258332) = 0
open("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf", O_RDONLY) =
3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=258332, ...}) = 0
mmap2(NULL, 258332, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40424000
close(3) = 0
munmap(0x40424000, 258332) = 0
open("/usr/share/cacti-0.8.6j/rra/lspro_load_1min_12.rrd", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=47840, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40424000
read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096)
= 4096
_llseek(3, 0, [4096], SEEK_CUR) = 0
_llseek(3, 4096, [4096], SEEK_SET) = 0
read(3, "4\24\324?\36;\225\3718\326\345?\365JY\206\336\2\347?\27"..., 4096)
= 4096
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096)
= 4096
close(3) = 0
munmap(0x40424000, 4096) = 0
open("/usr/share/cacti-0.8.6j/rra/lspro_load_5min_14.rrd", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=47840, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40424000
read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096)
= 4096
_llseek(3, 0, [4096], SEEK_CUR) = 0
_llseek(3, 4096, [4096], SEEK_SET) = 0
read(3, "1-\307?\17R\335I0*\321?}a2U\0\336\326?Y\27\267\321d\205"..., 4096)
= 4096
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096)
= 4096
close(3) = 0
munmap(0x40424000, 4096) = 0
open("/usr/share/cacti-0.8.6j/rra/lspro_load_15min_13.rrd", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=47840, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40424000
read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096)
= 4096
_llseek(3, 0, [4096], SEEK_CUR) = 0
_llseek(3, 4096, [4096], SEEK_SET) = 0
read(3, "\267\33\307?\215\224@]~\214\311?x\v$(&S\315?\246\275\301"..., 4096)
= 4096
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096)
= 4096
close(3) = 0
munmap(0x40424000, 4096) = 0
mmap2(NULL, 114532352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4046a000
time(NULL) = 1192589982
+++ killed by SIGSEGV +++
any help will be really appreciated .
Thanks in advance.
--
[]'s
Salatiel
"O maior prazer do inteligente é bancar o idiota
diante de um idiota que banca o inteligente".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20071017/2f7a76c6/attachment-0001.html
More information about the rrd-users
mailing list