Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2012 14:18:31 +0000 (UTC)
From:      jb <jb.1234abcd@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Re: Double free() in libc or gdb ?
Message-ID:  <loom.20120313T150805-759@post.gmane.org>
References:  <201203121750.36937.alexandre.martins@netasq.com> <20120312175555.GE75778@deviant.kiev.zoral.com.ua> <201203131108.43815.alexandre.martins@netasq.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
   








Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?loom.20120313T150805-759>