Hi Brian,

The gdb trace shows that compiler optimizations are preventing debugging:
some variables having been optimized out, and therefore their printed value,
if any, is inconsistent.

In order to remove optimizations in the malloc() implementation, you need to
go into the source tree of gtk-gnutella, and edit the file: src/lib/Makefile.

Change the JCFLAGS line (#17 normally) to say "-O0" (that's minus-o-zero),
then go to src/lib, type:

        touch xmalloc.c

to force recompilation of malloc, then go back to src/ and type:

        make

Then run the created gtk-gnutella file as you did before.  This time we should
get more insight from gdb.

If the program fails at the same spot, I'll tell you which values to print
out, so please keep the gdb session open so that I can probe variables and
try to figure out what is happening!

If the program does not fail with optimizations removed, we have a subtle bug,
which will be even harder to spot.  But let's see first.

Please make sure you ONLY recompile xmalloc.c without optimizations, so as to
change the runtime behaviour of the program as little as possible (keeping other
files optimized).

Thanks for your help,
Raphael


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to