Friday, February 12, 2016

Segmentation fault (core dumped)

If after a segmentation fault you are not getting the core dumped file, you might need to edit the limits.conf (this is in Ubuntu 14.04)

sudo vim /etc/security/limits.conf

and add a line like:
username      soft    core            50000

The previous line is for a core dumped file up to 50000 KB for that user. The user would have to relogin for the changes to take effect. A "small" core dump file is around 10 MB.

-----///