ulimit -c unlimited
* In the same console as you ran ulimit run whatever program segfaulted.
* After it segfaults look for a core file
* Then run [[wiki>GNU_Debugger]]:
gdb core
* then run a stack backtrace in gdb
(gdb) bt
* You should get a good idea about what caused the problem.