[rrd-users] rrdtool[2489]: segfault while creating grafic

thd01 thomas.dohl at gmx.de
Tue Jul 6 09:11:31 CEST 2010


Hi Tobi,

sorry or the delay.
I've done some tests. I've upgradet my system to 10.4, but 
I get the same error. I've tried on an other maschine, there I get no
errors?!
That's what I don't understand!

just for information:
cat /proc/cpuinfo
processor       : 0
vendor_id       : CentaurHauls
cpu family      : 6
model           : 9
model name      : VIA Nehemiah
stepping        : 10
cpu MHz         : 800.162
cache size      : 64 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr cx8 apic mtrr pge cmov pat mmx fxsr
sse up rng rng_en ace ace_en
bogomips        : 1600.32
clflush size    : 32
cache_alignment : 32
address sizes   : 32 bits physical, 32 bits virtual
power management:


Now the output of valgrind :
==25339== Memcheck, a memory error detector
==25339== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==25339== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for
copyright info
==25339== Command: rrdtool graph test.png --start 1215003342 --end
1278075342 -l 0 -u 1 -w 600 -h 30 -r --title testhost\ /\ testservice
DEF:var1=testservice.rrd:1:MAX CDEF:x1=var1,0,1,LIMIT
CDEF:x2=var1,1.01,2,LIMIT CDEF:x3=var1,2.01,3
,LIMIT CDEF:x4=var1,3.01,4,LIMIT AREA:x1#00FF00 AREA:x2#FFFF00
AREA:x3#FF0000 AREA:x4#FF8800 GPRINT:var1:LAST:letzter\ Status\\:\ %3.0lf\
==25339== Parent PID: 25078
==25339==
==25339== Invalid write of size 8
==25339==    at 0x4050BD0: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045B0F: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045FD4: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047BFF: rrd_graph_v (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047DD5: rrd_graph (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x804AD23: ??? (in /usr/bin/rrdtool)
==25339==    by 0x804B7E8: ??? (in /usr/bin/rrdtool)
==25339==    by 0x43F5BD5: (below main) (libc-start.c:226)
==25339==  Address 0x4a1d780 is 0 bytes after a block of size 35,056 alloc'd
==25339==    at 0x4024F20: malloc (vg_replace_malloc.c:236)
==25339==    by 0x405099A: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045B0F: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045FD4: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047BFF: rrd_graph_v (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047DD5: rrd_graph (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x804AD23: ??? (in /usr/bin/rrdtool)
==25339==    by 0x804B7E8: ??? (in /usr/bin/rrdtool)
==25339==    by 0x43F5BD5: (below main) (libc-start.c:226)
==25339==
==25339== Invalid write of size 1
==25339==    at 0x4026964: memcpy (mc_replace_strmem.c:497)
==25339==    by 0x40572CE: rrd_read (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4050B92: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045B0F: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045FD4: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047BFF: rrd_graph_v (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047DD5: rrd_graph (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x804AD23: ??? (in /usr/bin/rrdtool)
==25339==    by 0x804B7E8: ??? (in /usr/bin/rrdtool)
==25339==    by 0x43F5BD5: (below main) (libc-start.c:226)
==25339==  Address 0x4ab8508 is not stack'd, malloc'd or (recently) free'd
==25339==
==25339== Invalid write of size 1
==25339==    at 0x402696C: memcpy (mc_replace_strmem.c:497)
==25339==    by 0x40572CE: rrd_read (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4050B92: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045B0F: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045FD4: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047BFF: rrd_graph_v (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047DD5: rrd_graph (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x804AD23: ??? (in /usr/bin/rrdtool)
==25339==    by 0x804B7E8: ??? (in /usr/bin/rrdtool)
==25339==    by 0x43F5BD5: (below main) (libc-start.c:226)
==25339==  Address 0x4ab8509 is not stack'd, malloc'd or (recently) free'd
==25339==
==25339== Invalid write of size 1
==25339==    at 0x4026975: memcpy (mc_replace_strmem.c:497)
==25339==    by 0x40572CE: rrd_read (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4050B92: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045B0F: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045FD4: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047BFF: rrd_graph_v (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047DD5: rrd_graph (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x804AD23: ??? (in /usr/bin/rrdtool)
==25339==    by 0x804B7E8: ??? (in /usr/bin/rrdtool)
==25339==    by 0x43F5BD5: (below main) (libc-start.c:226)
==25339==  Address 0x4ab850a is not stack'd, malloc'd or (recently) free'd
==25339==
==25339== Invalid write of size 1
==25339==    at 0x402697E: memcpy (mc_replace_strmem.c:497)
==25339==    by 0x40572CE: rrd_read (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4050B92: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045B0F: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045FD4: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047BFF: rrd_graph_v (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047DD5: rrd_graph (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x804AD23: ??? (in /usr/bin/rrdtool)
==25339==    by 0x804B7E8: ??? (in /usr/bin/rrdtool)
==25339==    by 0x43F5BD5: (below main) (libc-start.c:226)
==25339==  Address 0x4ab850b is not stack'd, malloc'd or (recently) free'd
==25339==

valgrind: m_mallocfree.c:225 (mk_plain_bszB): Assertion 'bszB != 0' failed.
valgrind: This is probably caused by your program erroneously writing past
the
end of a heap block and corrupting heap metadata.  If you fix any
invalid writes reported by Memcheck, this assertion failure will
probably go away.  Please try that before reporting this as a bug.

==25339==    at 0x380278E5: report_and_quit (m_libcassert.c:191)
==25339==    by 0x38027AB7: vgPlain_assert_fail (m_libcassert.c:265)
==25339==    by 0x380345FB: vgPlain_arena_malloc (m_mallocfree.c:225)
==25339==    by 0x38064867: vgPlain_cli_malloc (replacemalloc_core.c:86)
==25339==    by 0x38002F68: vgMemCheck_new_block (mc_malloc_wrappers.c:199)
==25339==    by 0x380033D6: vgMemCheck_malloc (mc_malloc_wrappers.c:236)
==25339==    by 0x3806715F: vgPlain_scheduler (scheduler.c:1384)
==25339==    by 0x38094154: run_a_thread_NORETURN (syswrap-linux.c:91)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==25339==    at 0x4024F20: malloc (vg_replace_malloc.c:236)
==25339==    by 0x4024FAA: realloc (vg_replace_malloc.c:525)
==25339==    by 0x40451B7: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4045FFA: ??? (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047BFF: rrd_graph_v (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x4047DD5: rrd_graph (in /usr/lib/librrd.so.4.0.7)
==25339==    by 0x804AD23: ??? (in /usr/bin/rrdtool)
==25339==    by 0x804B7E8: ??? (in /usr/bin/rrdtool)
==25339==    by 0x43F5BD5: (below main) (libc-start.c:226)


Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what OS and version you are using.  Thanks.


-- 
View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/rrdtool-2489-segfault-while-creating-grafic-tp5242528p5259141.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list