From owner-freebsd-current@FreeBSD.ORG Wed Mar 14 08:42:06 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 15BA81065670; Wed, 14 Mar 2012 08:42:06 +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 4CF798FC0A; Wed, 14 Mar 2012 08:42:04 +0000 (UTC) Received: from pc-alex.netasq.com (unknown [10.2.40.253]) by work.netasq.com (Postfix) with ESMTPS id 081D974001C; Wed, 14 Mar 2012 09:40:31 +0100 (CET) From: Alexandre Martins Organization: NETASQ To: Dimitry Andric Date: Wed, 14 Mar 2012 09:42:00 +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> <4F5FA3AB.9000102@FreeBSD.org> In-Reply-To: <4F5FA3AB.9000102@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart15937267.aOW62MPspO"; protocol="application/pkcs7-signature"; micalg=sha1 Content-Transfer-Encoding: 7bit Message-Id: <201203140942.03646.alexandre.martins@netasq.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org 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: Wed, 14 Mar 2012 08:42:06 -0000 --nextPart15937267.aOW62MPspO Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Tuesday 13 March 2012 20:44:43 you wrote: > On 2012-03-13 11:08, Alexandre Martins wrote: > > On Monday 12 March 2012 18:55:55 Konstantin Belousov wrote: > >> On Mon, Mar 12, 2012 at 05:50:33PM +0100, Alexandre Martins wrote: > ... >=20 > >>> I have the libc compilled with "MALLOC_DEBUG" flag to detect double > >>> free. When i run this piece of code (attached file) thought GDB, i > >>> have this assertion : > >>>=20 > >>> Assertion failed: ((run->regs_mask[elm] & (1U << bit)) =3D=3D 0), fun= ction > >>> arena_run_reg_dalloc, file /usr/src/lib/libc/stdlib/malloc.c, line > >>> 2543. >=20 > I have committed a fix for this assertion (actually a double free) in > r232934. Can you please update to that revision, rebuild your gdb, and > try again? Dear, The problem have disapear with an update to gdb 7.3. Thank you for your help ! Regards =2D-=20 Alexandre Martins NETASQ -- We secure IT --nextPart15937267.aOW62MPspO--