I have a process in Linux that\'s getting a segmentation fault. How can I tell it to generate a core dump when it fails?
There are more things that may influence the generation of a core dump. I encountered these:
/proc/sys/kernel/core_pattern
. /proc/sys/fs/suid_dumpable
may prevent the core to be generated.There are more situations which may prevent the generation that are described in the man page - try man core
.