Re: Double free() in libc or gdb ?

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Tue, 13 Mar 2012 20:44:43 +0100
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?
Received on Tue Mar 13 2012 - 18:44:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:25 UTC