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.
According to the GNU C Library Reference Manual,
MALLOC_CHECK_ is used to check for and guard against bugs in the use of
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.