Re: Double free() in libc or gdb ?
--aQ9bQ2P1cgctGzNX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Mon, Mar 12, 2012 at 05:50:33PM +0100, Alexandre Martins wrote:
> Dear all,
>=20
> I'm currently having some trouble with the dynamic loader.
>=20
> 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 :
>=20
> Assertion failed: ((run->regs_mask[elm] & (1U << bit)) =3D=3D 0), functio=
n=20
> arena_run_reg_dalloc, file /usr/src/lib/libc/stdlib/malloc.c, line 2543.
>=20
> But when i run the same binary without GDB, no assert.
>=20
> I'm very confused. Can you help me to debug that ?
There is no attachment. Put the source somewhere on web.
--aQ9bQ2P1cgctGzNX
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)
iEYEARECAAYFAk9eOKsACgkQC3+MBN1Mb4jKJgCgjO2sXR3nCHAGyXp66PrOJFqX
b4kAn3eihJiRnZYiP5Nrb4ev3Htu1Ttk
=KAMW
-----END PGP SIGNATURE-----
--aQ9bQ2P1cgctGzNX--
討論串 (同標題文章)
完整討論串 (本文為第 2 之 9 篇):