Search⌘ K

Collecting User Process Core Dumps

Explore methods to enable core dump collection in Linux, generate user process core dumps using signals like SIGQUIT and SIGABRT, and use the gcore command. Understand how to configure core dump settings permanently and address common issues preventing core dump creation.

Enabling core dump collection

In Linux, the option to collect core dumps is switched off by default; however, we can turn it on with:

ulimit -c unlimited

This method only turns on the collection of core dump files on a temporary basis. If we want to enable it permanently for every user, then we add or uncomment the following line in the /etc/security/limits.conf file (note that root can still override it).

* soft core unlimited

Also, if we want to limit root to 1 GB, we add or comment the following line in this file:

* hard core 1000000

Note: A process core dump is stored in the process’s working directory on ...