[rrd-users] rrdtool seg fault using GPRINT
ariel mastracchio
ari197516 at yahoo.com
Wed Oct 17 13:44:23 CEST 2007
Hi,
I have segmentation fault too with rrdcgi
(rrdgraph) when the .rrd file is created, but empty.
(rrdtools 1.2.15, ibm aix 5.2)
hugs
--- Salatiel Filho <salatiel.filho at gmail.com> wrote:
> 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,
=== message truncated ===>
_______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the rrd-users
mailing list