No Core Dumps After Systemd Upgrade – Troubleshooting Guide

core-dumpsystemd

When I execute a program that I work on, it fails with the following message:

...
Aborted (core dumped)

However, no core dump is created. Core dumps were written previously, and I don't remember that I changed anything related to it.

When I run ulimit -a I get back,

$ ulimit -a
core file size          (blocks, -c) unlimited
...

Other points,

  • I verified that my user can create files in the current directory.
  • I read about /proc/sys/fs/suid_dumpable. Currently, it is set to 0 on my machine. I tried to change it to 1 or 2 but no difference.
  • I also tried to execute the program as root, but that did not make a difference either.

Unfortunately, I don't remember when I could produce the last successful core-dump.

Best Answer

From the docs on coredump.conf,

To disable a configuration file supplied by the vendor, the recommended way is to place a symlink to /dev/null in the configuration directory in /etc/, with the same filename as the vendor configuration file.

sudo ln -s /dev/null /etc/sysctl.d/coredump.conf
sudo systemd-sysctl 

Since systemd, things are managed differently.

Related Question