What Does "Fasttop" Mean?

What Does "Fasttop" Mean?

I'm seeing this error:

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

The error is followed by a backtrace.

I know what glibc is, I know what Perl is, I know what double-freeing is, but what does fasttop mean?

1 Answer

Using the source:

Another simple check: make sure the top of the bin is not the record we are going to add (i.e., double free).

So this is one of several locations where double free situations are detected. It affects so-called fastbin chunks, which in turn depends on the size of the chunk you freed. In any case, the core of the statement is the “double free”, and the exact way this double free was diagnosed isn't of much importance to your application.

Also see the question *** glibc detected *** double free or corruption (fasttop): Answers there suggest using valgrind to locate the problem, which sounds reasonable, particularly if you can reproduce the issue reasonably well.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.