memprof problem found



On Wed, 26 Oct 2005, Allin Cottrell wrote:

I think I've tracked down where the hang is occurring, using memprof with glibc 2.3.5 on Linux 2.6.13.4 (though I don't undestand _why_ it's occurring).

Apologies for replying to myself, but here's the solution. Glibc versions up to 2.3.3 implemented backtrace() without using malloc(), but from 2.3.4 onward backtrace calls malloc indirectly, which screws memprof. See

http://sources.redhat.com/bugzilla/show_bug.cgi?id=956

A workaround is to undef HAVE_BACKTRACE in memprof's config.h.

Allin Cottrell



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]