Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2012 19:55:55 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Alexandre Martins <alexandre.martins@netasq.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Double free() in libc or gdb ?
Message-ID:  <20120312175555.GE75778@deviant.kiev.zoral.com.ua>
In-Reply-To: <201203121750.36937.alexandre.martins@netasq.com>
References:  <201203121750.36937.alexandre.martins@netasq.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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