Archive

Archive for December, 2011

Ubuntu 10.04 – Enable core dumps

December 9, 2011 2 comments

By default, core dumps are disabled in Ubuntu. To enable core dumps, for the current user, and for the root user:

  1. gedit /etc/security/limits.conf
  2. Enable the lines:
    * soft core 2000000
    root soft core 2000000
  3. Reboot.
  4. Use the command ulimit -c to verify that the maximum core dump size has been adjusted.

(Optional) For security reasons, Ubuntu separately enables core dumps for setuid applications:

  1. gedit /etc/sysctl.conf
  2. Add the line:
    fs.suid_dumpable = 1
  3. sysctl -p

(Optional) To re-direct and rename core files use a core pattern:

  1. gedit /etc/sysctl.conf
  2. Add the lines:
    kernel.core_pattern = /var/crash/core.%e.%u.%t
    kernel.core_uses_pid = 1
  3. sysctl -p

References:

Categories: Linux, System Admin
Follow

Get every new post delivered to your Inbox.