Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2012 17:50:33 +0100
From:      Alexandre Martins <alexandre.martins@netasq.com>
To:        freebsd-current@freebsd.org
Subject:   Double free() in libc or gdb ?
Message-ID:  <201203121750.36937.alexandre.martins@netasq.com>

next in thread | raw e-mail | index | archive | help
--nextPart4136842.SocrAYyRgt
Content-Type: multipart/mixed;
  boundary="Boundary-01=_aliXPnKyhLuiC9U"
Content-Transfer-Encoding: 7bit


--Boundary-01=_aliXPnKyhLuiC9U
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=20
assertion :

Assertion failed: ((run->regs_mask[elm] & (1U << bit)) =3D=3D 0), function=
=20
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

=2D-=20
Alexandre Martins
NETASQ -- We secure IT


--Boundary-01=_aliXPnKyhLuiC9U--

--nextPart4136842.SocrAYyRgt--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203121750.36937.alexandre.martins>