Double free() in libc or gdb ?

From: Alexandre Martins <alexandre.martins_at_netasq.com>
Date: Mon, 12 Mar 2012 17:50:33 +0100
Dear all,

I'm currently having some trouble with the dynamic loader.

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.

But when i run the same binary without GDB, no assert.

I'm very confused. Can you help me to debug that ?

Best regards

-- 
Alexandre Martins
NETASQ -- We secure IT
Received on Mon Mar 12 2012 - 15:50:58 UTC

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