When my application crashes with a segmentation error, I would like to get a kernel dump from the system. I do this by tuning in front of the hand
ulimit -c unlimited
I would also like to have an indication in the application logs that a segmentation error has occurred. I do this using sigaction() . However, if I do this, the signal does not reach its default processing, and the core dump is not saved.
How can I simultaneously dump a system core into a log line from my own signal handler?
segmentation-fault linux signals coredump
shoosh May 22 '13 at 16:47 2013-05-22 16:47
source share