ulimit -c 1024
echo /tmp/core > /proc/sys/kernel/core_pattern
#include <stdio.h>
int main()
{
int* a=NULL;
char aa[1];
a=1;
aa[20]=1;
sleep(10000);
printf("Hello world1000! %d
",aa[10]);
aa[200000]=1;
printf("Hello world1000!
");
return 0;
}
arm-linux-gcc a.c -o a
kill -11 2529