Double free() in libc or gdb ?

jb jb.1234abcd at gmail.com
Tue Mar 13 14:18:57 UTC 2012


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
   







More information about the freebsd-current mailing list