Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "fasttop" mean?

Tags:

c

perl

glibc

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?

like image 546
Flimm Avatar asked Jan 29 '14 17:01

Flimm


1 Answers

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.

like image 78
MvG Avatar answered Sep 20 '22 06:09

MvG