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.<br><br># uname -a<br>Linux LS-GL7D6 2.6.12.6-arm1 #77 Tue Dec 5 22:23:46 CST 2006 armv5tejl GNU/Linux<br><br><br># rrdtool -v<br>RRDtool 1.2.23 Copyright 1997-2007 by Tobias Oetiker <
<a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a>><br> Compiled Oct 16 2007 23:04:34<br><br><br><br clear="all"># /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"
<br>Segmentation fault<br><br># 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"
<br>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
<br>uname({sys="Linux", node="LS-GL7D6", ...}) = 0<br>brk(0) = 0x11000<br>access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
<br>access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)<br>open("/etc/ld.so.cache", O_RDONLY) = 3<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=20010, ...}) = 0<br>mmap2(NULL, 20010, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
<br>close(3) = 0<br>access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)<br>open("/usr/lib/librrd.so.2", O_RDONLY) = 3<br>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
<br>fstat64(3, {st_mode=S_IFREG|0755, st_size=578967, ...}) = 0<br>mmap2(NULL, 311844, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4001e000<br>mprotect(0x4005d000, 53796, PROT_NONE) = 0<br>mmap2(0x40065000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3f) = 0x40065000
<br>mmap2(0x40069000, 4644, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40069000<br>close(3) = 0<br>access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
<br>open("/usr/lib/libpng12.so.0", O_RDONLY) = 3<br>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<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=127124, ...}) = 0<br>mmap2(NULL, 158800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4006b000
<br>mprotect(0x4008a000, 31824, PROT_NONE) = 0<br>mmap2(0x40091000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e) = 0x40091000<br>close(3) = 0<br>access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
<br>open("/usr/lib/libz.so.1", O_RDONLY) = 3<br>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<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=84988, ...}) = 0<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40092000
<br>mmap2(NULL, 116668, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40093000<br>mprotect(0x400a8000, 30652, PROT_NONE) = 0<br>mmap2(0x400af000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0x400af000
<br>close(3) = 0<br>access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)<br>open("/lib/libm.so.6", O_RDONLY) = 3<br>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
<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=78836, ...}) = 0<br>mmap2(NULL, 110572, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x402a6000<br>mprotect(0x402b9000, 32748, PROT_NONE) = 0<br>mmap2(0x402c0000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0x402c0000
<br>close(3) = 0<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402c1000<br>mprotect(0x40233000, 8192, PROT_READ) = 0<br>mprotect(0x40123000, 4096, PROT_READ) = 0
<br>mprotect(0x4001c000, 4096, PROT_READ) = 0<br>munmap(0x40016000, 20010) = 0<br>brk(0) = 0x11000<br>brk(0x32000) = 0x32000<br>open("/etc/localtime", O_RDONLY) = 3
<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=276, ...}) = 0<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=276, ...}) = 0<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000<br>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
<br>close(3) = 0<br>munmap(0x40016000, 4096) = 0<br>open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=1449376, ...}) = 0
<br>mmap2(NULL, 1449376, PROT_READ, MAP_PRIVATE, 3, 0) = 0x402c2000<br>close(3) = 0<br>time(NULL) = 1192589982<br>time(NULL) = 1192589982
<br>stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=276, ...}) = 0<br>time(NULL) = 1192589982<br>stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=276, ...}) = 0
<br>time(NULL) = 1192589982<br>stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=276, ...}) = 0<br>stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=276, ...}) = 0
<br>stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=276, ...}) = 0<br>open("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf", O_RDONLY) = 3<br>fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=258332, ...}) = 0<br>mmap2(NULL, 258332, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40424000<br>close(3) = 0<br>open("/usr/lib/gconv/gconv-modules.cache
", O_RDONLY) = 3<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=21584, ...}) = 0<br>mmap2(NULL, 21584, PROT_READ, MAP_SHARED, 3, 0) = 0x40464000<br>close(3) = 0<br>munmap(0x40424000, 258332) = 0
<br>open("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf", O_RDONLY) = 3<br>fcntl64(3, F_SETFD, FD_CLOEXEC) = 0<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=258332, ...}) = 0<br>mmap2(NULL, 258332, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40424000
<br>close(3) = 0<br>munmap(0x40424000, 258332) = 0<br>open("/usr/share/cacti-0.8.6j/rra/lspro_load_1min_12.rrd", O_RDONLY) = 3<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=47840, ...}) = 0
<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40424000<br>read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096) = 4096<br>_llseek(3, 0, [4096], SEEK_CUR) = 0
<br>_llseek(3, 4096, [4096], SEEK_SET) = 0<br>read(3, "4\24\324?\36;\225\3718\326\345?\365JY\206\336\2\347?\27"..., 4096) = 4096<br>_llseek(3, 0, [0], SEEK_SET) = 0<br>read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096) = 4096
<br>close(3) = 0<br>munmap(0x40424000, 4096) = 0<br>open("/usr/share/cacti-0.8.6j/rra/lspro_load_5min_14.rrd", O_RDONLY) = 3<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=47840, ...}) = 0
<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40424000<br>read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096) = 4096<br>_llseek(3, 0, [4096], SEEK_CUR) = 0
<br>_llseek(3, 4096, [4096], SEEK_SET) = 0<br>read(3, "1-\307?\17R\335I0*\321?}a2U\0\336\326?Y\27\267\321d\205"..., 4096) = 4096<br>_llseek(3, 0, [0], SEEK_SET) = 0<br>read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096) = 4096
<br>close(3) = 0<br>munmap(0x40424000, 4096) = 0<br>open("/usr/share/cacti-0.8.6j/rra/lspro_load_15min_13.rrd", O_RDONLY) = 3<br>fstat64(3, {st_mode=S_IFREG|0644, st_size=47840, ...}) = 0
<br>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40424000<br>read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096) = 4096<br>_llseek(3, 0, [4096], SEEK_CUR) = 0
<br>_llseek(3, 4096, [4096], SEEK_SET) = 0<br>read(3, "\267\33\307?\215\224@]~\214\311?x\v$(&S\315?\246\275\301"..., 4096) = 4096<br>_llseek(3, 0, [0], SEEK_SET) = 0<br>read(3, "RRD\0000003\0\0\0\0C+\37[/%\300\307\1\0\0\0\10\0\0\0,\1"..., 4096) = 4096
<br>close(3) = 0<br>munmap(0x40424000, 4096) = 0<br>mmap2(NULL, 114532352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4046a000<br>time(NULL) = 1192589982
<br>+++ killed by SIGSEGV +++<br><br><br>any help will be really appreciated .<br>Thanks in advance.<br><br>-- <br>[]'s<br>Salatiel<br><br>"O maior prazer do inteligente é bancar o idiota <br> diante de um idiota que banca o inteligente".