|
From: Per v. Z.
|
I'm trying to debug a program called tvtime, to find what I suspect to=20
be a hard-to-find heap corruption bug. (The bug "disappears" if i add a=20
call to puts). After searching around a bit for some suitable programs=20
to debug these kinds of problems, i found Valgrind.
I have never used a tool like this before. I initially tried to run=20
electric-fence, but it used so much memory that it ran out of memory on=20
my computer. Hearing that the addrcheck skin to valgrind is a=20
light-weight checker light enough to run an entire KDE session under=20
made it seem to be exactly what I wanted. I'm running valgrind, as=20
packaged with Debian/unstable (valgrind-20031012).
When running tvtime under Valgrind, I get an error message about=20
OVERLAPPING EXE SEGMENTS (full error message text below.) The same error=20
message occurs with --skin=3Dmemcheck.
I have read the FAQ on the web page, and not found any problem similar=20
to this. I also ran a Google search for "OVERLAPPING EXE SEGMENTS" which=20
turned up exactly 0 refults.
How should I proceed?
pvz@tanya:~/src/tvtime-0.9.11/src$ valgrind -v --skin=3Daddrcheck ./tvtim=
e
=3D=3D8726=3D=3D Addrcheck, a fine-grained address checker for x86-linux.
=3D=3D8726=3D=3D Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward.
=3D=3D8726=3D=3D Using valgrind-20031012, a program supervision framework=
for=20
x86-linux.
=3D=3D8726=3D=3D Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward.
=3D=3D8726=3D=3D Command line:
=3D=3D8726=3D=3D ./tvtime
=3D=3D8726=3D=3D Startup, with flags:
=3D=3D8726=3D=3D --suppressions=3D/usr/lib/valgrind/default.supp
=3D=3D8726=3D=3D -v
=3D=3D8726=3D=3D Reading syms from /home/pvz/src/tvtime-0.9.11/src/tvtime
=3D=3D8726=3D=3D Reading syms from /lib/ld-2.3.2.so
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /usr/lib/valgrind/vgskin_addrcheck.so
=3D=3D8726=3D=3D Reading syms from /usr/lib/valgrind/valgrind.so
=3D=3D8726=3D=3D Reading syms from /usr/lib/libSDL-1.2.so.0.0.6
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /usr/lib/libfreetype.so.6.3.4
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /usr/lib/libpng12.so.0.1.2.5
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /usr/X11R6/lib/libSM.so.6.0
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /usr/X11R6/lib/libICE.so.6.3
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /usr/X11R6/lib/libX11.so.6.2
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /usr/X11R6/lib/libXext.so.6.4
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /usr/X11R6/lib/libXtst.so.6.1
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /usr/lib/libxml2.so.2.5.11
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /usr/lib/libz.so.1.1.4
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /lib/libdl-2.3.2.so
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /lib/libm-2.3.2.so
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading syms from /usr/lib/valgrind/libpthread.so
=3D=3D8726=3D=3D Reading syms from /lib/libc-2.3.2.so
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
=3D=3D8726=3D=3D Reading suppressions file: /usr/lib/valgrind/default.sup=
p
=3D=3D8726=3D=3D Estimated CPU clock rate is 1203 MHz
=3D=3D8726=3D=3D REPLACING libc(__errno_location) with libpthread(__errno=
_location)
=3D=3D8726=3D=3D REPLACING libc(__h_errno_location) with=20
libpthread(__h_errno_location)
=3D=3D8726=3D=3D REPLACING libc(__res_state) with libpthread(__res_state)
=3D=3D8726=3D=3D
=3D=3D8726=3D=3D TRANSLATE: 0x405A5FC0 redirected to 0x4056B14E
K=F6r tvtime 0.9.11.
=3D=3D8726=3D=3D Reading syms from /usr/lib/gconv/ISO8859-1.so
=3D=3D8726=3D=3D object doesn't have a symbol table
=3D=3D8726=3D=3D object doesn't have any debug info
rtctimer: Cannot set periodic interval: =C5tkomst nekas
Kunde inte f=E5 en uppl=F6sning p=E5 1024 Hz fr=E5n din RTC-enhet. Ti=
llg=E5ng
till h=F6g uppl=F6sning =E4r n=F6dv=E4ndigt f=F6r mjuk videouppspelni=
ng. K=F6r
tvtime som root, s=E4tt tvtime som SUID-root, eller =E4ndra den maxim=
ala
till=E5tna RTC-uppl=F6sningen f=F6r anv=E4ndarprocesser genom att k=F6=
ra
f=F6ljande kommando som root:
sysctl -w dev.rtc.max-user-freq=3D1024
Se v=E5r hj=E4lpsida: http://tvtime.net/ f=F6r mer information.
L=E4ser inst=E4llningar fr=E5n /usr/local/etc/tvtime/tvtime.xml
L=E4ser inst=E4llningar fr=E5n /home/pvz/.tvtime/tvtime.xml
OVERLAPPING EXE SEGMENTS
new: start 0x10000000, size 4096
old: start 0x10000000, size 131072
valgrind: vg_memory.c:94 (add_exe_segment_to_list): Assertion `!=20
overlap' failed.
sched status:
Thread 1: status =3D Runnable, associated_mx =3D 0x0, associated_cv =3D 0=
x0
=3D=3D8726=3D=3D at 0x4066482D: mmap (in /lib/libc-2.3.2.so)
Note: see also the FAQ.txt in the source distribution.
It contains workarounds to several common problems.
If that doesn't help, please report this bug to: js...@ac...
In the bug report, send all the above text, the valgrind
version, and what Linux distro you are using. Thanks.
pvz@tanya:~/src/tvtime-0.9.11/src$
|