Home > Linux, System Admin > Ubuntu 10.04 – Enable core dumps

Ubuntu 10.04 – Enable core dumps

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 ulimits -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:

Advertisement
Categories: Linux, System Admin
  1. No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.