#include <stdio.h>
int main()
{
int *ptr = NULL; // NULL pointer.
*ptr = 10; // This is invalid assignment.
printf("%s", "SW-VERSION=0.1");
return 0;
}
root@5840480a36d4:~# gcc abc.c -o abc
root@5840480a36d4:~# ./abc
Segmentation fault (core dumped)
root@5840480a36d4:~# gdb -c core
Ref: