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?
What I did at the end was attach gdb to the process before it crashed, and then when it got the segfault I executed the generate-core-file command. That forced generation of a core dump.
generate-core-file