Double free() in libc or gdb ?

Alexandre Martins alexandre.martins at netasq.com
Tue Mar 13 15:03:14 UTC 2012


Dear,

On Tuesday 13 March 2012 15:18:31 jb wrote:
> Alexandre Martins <alexandre.martins <at> netasq.com> writes:
> > ...
> > first.c:
> > ...
> > second.c
> > ...
> > main.c
> > ...
> > 
> >         while(42)
> 
> How do you exit that loop ?

It's just a sample. There is no exit here, you have to kill the process.

> 
> > ...
> > 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 ?

Yes, you're right. "toto.c" is the "main.c" file.

> 
> jb
> 
> 
> 
> 
> 
> 
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"


To Konstantin Belousov :

The GDB v7.3 solved the assert. but is still memleak.

Regards
-- 
Alexandre Martins
NETASQ -- We secure IT



More information about the freebsd-current mailing list