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.
try this:

```
long* ptr = 0x0; //-- you can also use other random values and likely you will segfault
printf("%f", *ptr);

```