corrupted double-linked

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)".
I have another question. I have got an error message "corrupted double-linked". What code can result in this? And its killed signal. 
Any help will be appreciated.

Thanks,
GHui



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux