OK for whatever reason I\'m having trouble causing a seg fault. I want to produce one so that I can use gdb to see how to debug one. I have tried both examples
gdb
Lots of ways to generate a segfault.
Like dereferencing a bad pointer:
char *s = (char *)0xDEADBEEF; *s = 'a';