systemd and core files

Why do things have to get more complicated... You use to be able to just change ulimit to get your core dump file when a program crashed.

Edit the file: /etc/systemd/coredump.conf

Un-comment 'Storage' and 'Compress'

Reload systemd configuration:

systemctl daemon-reload

Run the following in your terminal windows or add to your .bashrc:

ulimit -c unlimited
ulimit -a

The second command just confirms you have changed the setting just in case there are system limits imposed by the admin.

To actually use your core dump:

coredumpctl
sudo coredumpctl gdb


References:

Comments