corrupted double-linked
Ian Lance Taylor
iant@google.com
Thu Sep 27 04:44:00 GMT 2012
On Wed, Sep 26, 2012 at 6:14 PM, GHui <ugiwgh@gmail.com> wrote:
> I had coding a program like the following.
> #include <stdio.h>
> int main(int argc,char **argv)
> {
> int *a=(int*)malloc(sizeof(int));
> free(a);
> free(a);
> return 0;
> }
> The program will get error "double free or corruption (fasttop)".
On some systems, with some libraries, yes.
> I have another question. I have got an error message "corrupted double-linked". What code can result in this? And its killed signal.
http://en.wikipedia.org/wiki/Memory_corruption
Ian
More information about the Gcc-help
mailing list