[rrd-developers] where should i report a constant segmentation fault problemwhen using GPRINT ?
Salatiel Filho
salatiel.filho at gmail.com
Sun Dec 2 17:13:48 CET 2007
On Dec 2, 2007 10:24 AM, Alex van den Bogaerdt <alex at ergens.op.het.net> wrote:
> On Sun, Dec 02, 2007 at 09:36:57AM -0300, Salatiel Filho wrote:
> > where should i report a constant segmentation fault problemwhen using GPRINT ?
>
> You can do here.
>
> Create an example, as simple as possible, which demonstrates the problem.
>
> Make sure to use the latest RRDtool version (and show that you do).
>
> Don't forget to include details about your environment.
>
> --
> Alex van den Bogaerdt
> http://www.vandenbogaerdt.nl/rrdtool/
>
> _______________________________________________
> rrd-developers mailing list
> rrd-developers at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
>
Thanks , for the reply , here is the example. I just compiled the
latest version. But i had the problem with the debian packages too.
The system is an ARM running debian 4.0
# uname -a
Linux LS-GL7D6 2.6.12.6-arm1 #77 Tue Dec 5 22:23:46 CST 2006 armv5tejl GNU/Linux
# rrdtool graph fan.png DEF:fan=fan.rrd:output:AVERAGE GPRINT:fan:AVERAGE:%lf
Segmentation fault
# rrdtool
RRDtool 1.2.26 Copyright 1997-2007 by Tobias Oetiker <tobi at oetiker.ch>
Compiled Dec 2 2007 11:46:44
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport
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
Dmesg shows this after the segmentation fault.
# dmesg
Process rrdtool (pid: 12064, stack limit = 0xc76001a0)
Stack: (0xc7601fb0 to 0xc7602000)
1fa0: 00000000 000131b8 00032000 00011a70
1fc0: 00003dc9 00000000 00011a70 bee059ec 00001c54 0000074c 4006c3f0 00da72ec
1fe0: 4006c53c bee05884 40033220 400331fc 20000010 ffffffff 00000000 00000000
Backtrace: no frame pointer
Code: e3a04000 e3a05102 e880003c eafffd28 (e5961000)
<1>Unable to handle kernel paging request at virtual address 00032000
pgd = c6e88000
[00032000] *pgd=071a4031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#16]
Modules linked in:
CPU: 0
PC is at CPDT_load_double+0x0/0x44
LR is at fpundefinstr+0x0/0x20
pc : [<c004f7fc>] lr : [<c0024d60>] Not tainted
sp : c6cb3fb0 ip : 4006c53c fp : 00000000
r10: c6cb2064 r9 : c0024dc0 r8 : 00000100
r7 : 00032000 r6 : 00032000 r5 : 00020000 r4 : ed92c100
r3 : 20000010 r2 : 400331fc r1 : 00000005 r0 : c6cb20a4
Flags: nzcv IRQs on FIQs on Mode SVC_32 Segment user
Control: A005317F Table: 06E88000 DAC: 00000015
Process rrdtool (pid: 12240, stack limit = 0xc6cb21a0)
Stack: (0xc6cb3fb0 to 0xc6cb4000)
3fa0: 00000000 000131b8 00032000 00011a70
3fc0: 00003dc9 00000000 00011a70 befafeec 00001c54 0000074c 4006c3f0 00da72ec
3fe0: 4006c53c befafd84 40033220 400331fc 20000010 ffffffff 00000000 00000014
Backtrace: no frame pointer
Code: e3a04000 e3a05102 e880003c eafffd28 (e5961000)
Maybe a strace can help.
# strace rrdtool graph fan.png DEF:fan=fan.rrd:output:AVERAGE
GPRINT:fan:AVERAGE:%lf
execve("/usr/bin/rrdtool", ["rrdtool", "graph", "fan.png",
"DEF:fan=fan.rrd:output:AVERAGE", "GPRINT:fan:AVERAGE:%lf"], [/* 20
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=25798, ...}) = 0
mmap2(NULL, 25798, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000
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\0\354V\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=274768, ...}) = 0
mmap2(NULL, 311948, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x40025000
mprotect(0x40065000, 49804, PROT_NONE) = 0
mmap2(0x4006c000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3f) = 0x4006c000
mmap2(0x40070000, 4748, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40070000
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) = 0x40072000
mprotect(0x40091000, 31824, PROT_NONE) = 0
mmap2(0x40098000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e) = 0x40098000
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) = 0x40099000
mmap2(NULL, 116668, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x4009a000
mprotect(0x400af000, 30652, PROT_NONE) = 0
mmap2(0x400b6000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0x400b6000
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=444224, ...}) = 0
mmap2(NULL, 475460, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x400b7000
mprotect(0x40123000, 33092, PROT_NONE) = 0
mmap2(0x4012a000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6b) = 0x4012a000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libc.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\0HO\1\0004"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1091216, ...}) = 0
mmap2(NULL, 1128068, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x4012c000
mprotect(0x40233000, 50820, PROT_NONE) = 0
mmap2(0x4023a000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x106) = 0x4023a000
mmap2(0x4023d000, 9860, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4023d000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libfreetype.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\24j\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=414512, ...}) = 0
mmap2(NULL, 446192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x40240000
mprotect(0x402a3000, 40688, PROT_NONE) = 0
mmap2(0x402aa000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x62) = 0x402aa000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libart_lgpl_2.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\0@%\0\0004"..., 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) = 0x402ad000
mprotect(0x402c0000, 32748, PROT_NONE) = 0
mmap2(0x402c7000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0x402c7000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x402c8000
mprotect(0x4023a000, 8192, PROT_READ) = 0
mprotect(0x4012a000, 4096, PROT_READ) = 0
mprotect(0x4001c000, 4096, PROT_READ) = 0
munmap(0x4001e000, 25798) = 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) = 0x4001e000
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(0x4001e000, 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) = 0x402c9000
close(3) = 0
time(NULL) = 1196611876
time(NULL) = 1196611876
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
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=276, ...}) = 0
open("fan.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) = 0x4042b000
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, "3\225\234 at 3333\0\230\234@\0\0\0\0\314\"\234@\315\314\314"...,
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(0x4042b000, 4096) = 0
time(NULL) = 1196611876
+++ killed by SIGSEGV +++
Process 12314 detached
Any other info i can provide ?
--
[]'s
Salatiel
"O maior prazer do inteligente é bancar o idiota
diante de um idiota que banca o inteligente".
More information about the rrd-developers
mailing list