|
From: Kunal C. <ku...@de...> - 2004-01-17 15:12:07
|
Hello members
Greetings ...
I am new to valgrind and using a simple GUI application developed in
Kylix C++ with valgrind
(a form with a button on it) and it is not working.
Running valgrind with --leak-check=yes --workaround-gcc296-bugs=yes
exists with
following errors (attached).
I am using Debian with kernal 2.4.20.
kunal@akshar:/tmp$ valgrind --leak-check=yes
--workaround-gcc296-bugs=yes ./Prjtest -ns
==11959== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==11959== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward.
==11959== Using valgrind-20031012, a program supervision framework for
x86-linux.
==11959== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward.
==11959== Estimated CPU clock rate is 801 MHz
==11959== For more details, rerun with: -v
==11959==
Memcheck: mc_main.c:392 (set_address_range_perms): Assertion
`vgSkin_cheap_sanity_check()' failed.
sched status:
Thread 1: status = Runnable, associated_mx = 0x0, associated_cv = 0x0
==11959== at 0x40B3992D: mmap (in /lib/libc-2.3.2.so)
==11959== by 0x809F225: (within /tmp/Prjtest)
==11959== by 0x40A7AE1E: __libc_start_main (in /lib/libc-2.3.2.so)
==11959== by 0x8050EC4: _start (in /tmp/Prjtest)
This application depends on following libraries.
ldd out put is like this,
libborqt-6.9.0-qt2.3.so =>
/usr/local/kylix3/bin/libborqt-6.9.0-qt2.3.so (0x40020000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40750000)
libdl.so.2 => /lib/libdl.so.2 (0x4080b000)
libpthread.so.0 => /lib/libpthread.so.0 (0x4080e000)
libc.so.6 => /lib/libc.so.6 (0x4085e000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4098d000)
libm.so.6 => /lib/libm.so.6 (0x4099a000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x409bc000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x409c4000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x409d9000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
I have read full FAQ given with source but din find any solution
and really wanted to use valgrind to make my application better.
Any pointes and suggestions will be great help.
Thanks in advance.
Regards
Kunal.
|
|
From: Jeremy F. <je...@go...> - 2004-01-17 17:11:20
|
On Sat, 2004-01-17 at 07:14, Kunal Chavan wrote: > Hello members > > Greetings ... > > I am new to valgrind and using a simple GUI application developed in > Kylix C++ with valgrind > (a form with a button on it) and it is not working. > Running valgrind with --leak-check=yes --workaround-gcc296-bugs=yes > exists with > following errors (attached). > > I am using Debian with kernal 2.4.20. > > kunal@akshar:/tmp$ valgrind --leak-check=yes > --workaround-gcc296-bugs=yes ./Prjtest -ns I'm guessing the problem is that /usr/local/kylix3/bin/libborqt-6.9.0-qt2.3.so is trying to mmap something in at or near address 0. I don't think there's really an easy fix other than upgrade Valgrind; unfortunately, I think the only real fix is in CVS head, and not any released version. J |