Re: Double free() in libc or gdb ?

看板FB_current作者時間14年前 (2012/03/13 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/9 (看更多)
--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--
文章代碼(AID): #1FNZdVyj (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1FNZdVyj (FB_current)