I want the program to dump core on crash on Linux for debugging purpose. How do I enable this feature - does this require any changes in the program ?
You can either enable it for yourself by doing:
ulimit -c unlimited
If you want this to be persistent put it in ~/.profile
Alterantively, you can enable core dumps for all users on the system put the following line in /etc/sercurity/limits.conf (at least on ubuntu):
* 0 core -1
Whether generate core dump or not is controlled by the shell
If you use bash.
ulimit -c unlimited
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With