Created
September 10, 2016 09:40
-
-
Save zoffixznet/cf1ca3e208fbfc0b6c444f141ffa5333 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zoffix@VirtualBox:/tmp/tmp.OpWb0SpB4S$ cat foo.c | |
#include<stdio.h> | |
#include<stdlib.h> | |
int main() | |
{ | |
char *x = malloc(100); | |
free(x); | |
free(x); | |
return 0; | |
} | |
zoffix@VirtualBox:/tmp/tmp.OpWb0SpB4S$ gcc foo.c | |
zoffix@VirtualBox:/tmp/tmp.OpWb0SpB4S$ ./a.out > std.out 2> std.err | |
*** Error in `./a.out': double free or corruption (fasttop): 0x0000000001f81010 *** | |
Aborted | |
zoffix@VirtualBox:/tmp/tmp.OpWb0SpB4S$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment