From owner-freebsd-current@FreeBSD.ORG Tue Mar 13 15:03:13 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C9F5D106566C for ; Tue, 13 Mar 2012 15:03:13 +0000 (UTC) (envelope-from alexandre.martins@netasq.com) Received: from work.netasq.com (mars.netasq.com [91.212.116.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3E5F28FC14 for ; Tue, 13 Mar 2012 15:03:12 +0000 (UTC) Received: from pc-alex.netasq.com (unknown [10.2.40.253]) by work.netasq.com (Postfix) with ESMTPS id F3D4F740012; Tue, 13 Mar 2012 16:01:39 +0100 (CET) From: Alexandre Martins Organization: NETASQ To: freebsd-current@freebsd.org Date: Tue, 13 Mar 2012 16:03:08 +0100 User-Agent: KMail/1.13.7 (FreeBSD/8.2-RELEASE; KDE/4.7.3; amd64; ; ) References: <201203121750.36937.alexandre.martins@netasq.com> <201203131108.43815.alexandre.martins@netasq.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2450732.H3uro372yC"; protocol="application/pkcs7-signature"; micalg=sha1 Content-Transfer-Encoding: 7bit Message-Id: <201203131603.11558.alexandre.martins@netasq.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Konstantin Belousov , jb Subject: Re: Double free() in libc or gdb ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2012 15:03:14 -0000 --nextPart2450732.H3uro372yC Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear, On Tuesday 13 March 2012 15:18:31 jb wrote: > Alexandre Martins netasq.com> writes: > > ... > > first.c: > > ... > > second.c > > ... > > main.c > > ... > >=20 > > while(42) >=20 > How do you exit that loop ? It's just a sample. There is no exit here, you have to kill the process. >=20 > > ... > > Compilation and execution : > >=20 > > 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=3D$PWD > > gdb ./test > > ... >=20 > 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. >=20 > jb >=20 >=20 >=20 >=20 >=20 >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" To Konstantin Belousov : The GDB v7.3 solved the assert. but is still memleak. Regards =2D-=20 Alexandre Martins NETASQ -- We secure IT --nextPart2450732.H3uro372yC--