ulimit -c unlimited
can just affect on the shell you are using. How can we enable core dumps as default behavior for all?html
In /etc/security/limits.conf, add this line:shell
* soft core unlimited
For more details, see How do I enable core dumps for everybodythis