Saturday, May 24, 2014

glibc detected - double free or corruption (fasttop)

I've been bashing my head against the wall trying to solve this error for days now!

*** glibc detected *** double free or corruption (fasttop): 0x0000002aa63dca00 ***

I've finally found the answer. I set the MALLOC_CHECK_ environment variable to 0 in my startup script to resolve the issue.

MALLOC_CHECK_=0

According to the GNU C Library Reference Manual, MALLOC_CHECK_ is used to check for and guard against bugs in the use of malloc, realloc and free. If MALLOC_CHECK_ is set to 0, any detected heap corruption is silently ignored; if set to 1, a diagnostic is printed on stderr; if set to 2, abort is called immediately.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.