Hello,

I want to clarify the situation around "no coredumps in CWD".

If configured ABRT can create a core dump file in the current working directory 
(more precisely, ABRT can write a core dump to a file according to the old 
value 
of /proc/sys/kernel/core_pattern) if the process' RLIMIT_CORE (ulimit -c) is 
not 
0 (RLIMIT_CORE is 0 by default).

Starting with systemd-229 (Fedora 24, Rawhide), systemd sets its RLIMIT_CORE to 
'unlimited' and all processes inherits it [1]. Hence ABRT started laying 
coredump 
files all around file system.

I haven't find a reliable way how to restore the old RLIMIT_CORE [2][3], so I 
turned the old way coredumps off in ABRT.

If you want to get coredump files in CWD, you should:
  1. set MakeCompatCore=yes in /etc/abrt/plugins/CCpp.conf
  2. set DefaultLimitCORE=0 in a file in /etc/systemd/system.conf
  3. reboot
  4. and as usual - $ ulimit -c unlimited



Regards,
Jakub
ABRT

1: 
https://github.com/systemd/systemd/blob/2c45295e47642812ea417efba7f2f3339c6e2912/NEWS
2: https://bugzilla.redhat.com/show_bug.cgi?id=1309172
3: https://github.com/systemd/systemd/issues/2643
--
devel mailing list
devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Reply via email to