Re: Double free() in libc or gdb ?

From: jb <jb.1234abcd_at_gmail.com>
Date: Tue, 13 Mar 2012 14:18:31 +0000 (UTC)
Alexandre Martins <alexandre.martins <at> netasq.com> writes:

> ... 
> first.c:
> ...
> second.c
> ...
> main.c
> ...
>         while(42)

How do you exit that loop ?

> ...
> Compilation and execution :
> 
> gcc -shared -O0 -g second.c -o second.so
> gcc -shared -O0 -g first.c -o libfirst.so
> gcc -O0 -g toto.c -lfirst -L. -o test
> export LD_LIBRARY_PATH=$PWD
> gdb ./test
> ...

What is your toto.c (source code) ?
What about your main.c in compilation ?

jb
   
Received on Tue Mar 13 2012 - 13:18:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:24 UTC