|
From: Eyal L. <ey...@ey...> - 2005-01-20 02:07:10
|
Jeremy Fitzhardinge wrote: > On Thu, 2005-01-20 at 11:32 +1100, Eyal Lebedinsky wrote: > >>For vg I do a different build than normal. I build with '-O0' and nothing >>else (just some extra warn requests): >> -W -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Wredundant-decls -ansi -D_XOPEN_SOURCE=1 -D_GNU_SOURCE=1 -O0 -fno-inline -g > > > No, I mean when building Valgrind itself. I do ./autogen.sh || exit 1 ./configure || exit 1 make || exit 1 make install || exit 1 If the defaults are unsuitable then I would have a bad build. Here is a snippet of a build: if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../coregrind -I../coregrind -I../coregrind/x86 \ -I../coregrind/linux -I../coregrind/x86-linux -I../include -I../include \ -I../include/x86 -I../include/linux -I../include/x86-linux \ -DVG_LIBDIR="\"/usr/local/lib/valgrind"\" -I./demangle -DKICKSTART_BASE=0xb0000000 \ -DVG_PLATFORM="\"x86-linux"\" -Winline -Wall -Wshadow -O -g -mpreferred-stack-boundary=2 \ -DELFSZ=32 -MT stage2-vg_dummy_profile.o -MD -MP -MF ".deps/stage2-vg_dummy_profile.Tpo" \ -c -o stage2-vg_dummy_profile.o `test -f 'vg_dummy_profile.c' || echo './'`vg_dummy_profile.c then mv -f ".deps/stage2-vg_dummy_profile.Tpo" ".deps/stage2-vg_dummy_profile.Po" else rm -f ".deps/stage2-vg_dummy_profile.Tpo" exit 1 fi I will repeat - this was not a problem until recently. I am rather sure the stable 2.2.0 gives good backtraces. > J I would like to offer another observation. I just created a simple program in an attempt to demonstrate the laconic report problem. Instead, it crashed (sig 11) on a return. After repeating it a few times, I noticed that my big test is hanging again. I killed it and deleted the semaphore it hold (somehow it is never released after a crash). The tiny test program now works (no sig 11). Is it possible that vg uses some semaphore that all instances share and it gets into trouble after a while? My test suit always fails after a number of tests finish successfully, and every program thereafter gets sig 11. Every single valgrind run. If I kill everything (and remove [ipcrm -s] my own semaphore that my tests use) then I can continue with the tests (well, at least for a while). -- Eyal Lebedinsky (ey...@ey...) <http://samba.org/eyal/> If attaching .zip rename to .dat |