Re: corrupted double-linked

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

 



On Wed, Sep 26, 2012 at 6:14 PM, GHui <ugiwgh@xxxxxxxxx> 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


[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