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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk9eOKsACgkQC3+MBN1Mb4jKJgCgjO2sXR3nCHAGyXp66PrOJFqX b4kAn3eihJiRnZYiP5Nrb4ev3Htu1Ttk =KAMW -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120312175555.GE75778>
