Question: I'm trying to set up the way my server handles core dumps. In order to test it, I'd need a program that always segfaults.

Is there a simple example program that always segfaults?

Answer: 
`main() { *(int *)0xdeadbeef = 37; }` should do it.
You can try:

```
main() {
char *p = NULL;
char c = *p;
}

```