Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2012 20:44:43 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Alexandre Martins <alexandre.martins@netasq.com>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: Double free() in libc or gdb ?
Message-ID:  <4F5FA3AB.9000102@FreeBSD.org>
In-Reply-To: <201203131108.43815.alexandre.martins@netasq.com>
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
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:
...
>>> 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 :
>>>
>>> Assertion failed: ((run->regs_mask[elm] & (1U << bit)) == 0), function
>>> arena_run_reg_dalloc, file /usr/src/lib/libc/stdlib/malloc.c, line 2543.

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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F5FA3AB.9000102>