Double free() in libc or gdb ?
Konstantin Belousov
kostikbel at gmail.com
Mon Mar 12 17:56:03 UTC 2012
On Mon, Mar 12, 2012 at 05:50:33PM +0100, Alexandre Martins wrote:
> 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 ?
There is no attachment. Put the source somewhere on web.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20120312/bf62aa8a/attachment.pgp
More information about the freebsd-current
mailing list