+++ This bug was initially created as a clone of Bug #557386 +++
Description of problem:
This patch changes the behavior when there is a pipe in /proc/sys/core_pattern and it breaks ABRT.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. install kernel 2.6.32
2. install abrt
3. crash something and instead of coredump you'll see this in dmesg:
Process 2739(gvfsd-trash) has RLIMIT_CORE set to 0
and abrt fails to detect it.
--- Additional comment from email@example.com on 2010-01-27 15:12:04 EST ---
I see this too:
Process 2071(hal-disable-pol) has RLIMIT_CORE set to 0
If the patch is applied in koji, I'd be happy to test it.
--- Additional comment from firstname.lastname@example.org on 2010-02-04 14:44:03 EST ---
a patch for this got pulled into -mm, I'll backport to rawhide, and kick off a koji build shortly.
--- Additional comment from email@example.com on 2010-02-05 08:24:03 EST ---
Could you verify this build works the way you expect please?
--- Additional comment from firstname.lastname@example.org on 2010-02-07 08:42:07 EST ---
just tried that kernel and ABRT detects crashes, but now the dump helper has troubles to readlink /proc/<pid>/exe, is it possible, that it disappears before the dump helper is done?
--- Additional comment from email@example.com on 2010-02-07 14:12:02 EST ---
i'm glad it works. As for the dissappearing /proc/pid/exe files, you should read the git commit log more closely regarding the patch that started all this consternation. One of the reported bugs that that set fixes is the race between the cleanup of the crashing process and the collection of the dump. theres a new sysctl called core_pipe_limit that you need to set to guarantee the prevent that race condition. It only worked previously by good fortune
--- Additional comment from firstname.lastname@example.org on 2010-02-07 14:25:14 EST ---
Ok, I will take a deeper look into it on Monday, now I gave it just a few minutes to install the kernel and test if abrt-hook is called when crash happens.
--- Additional comment from email@example.com on 2010-02-09 06:41:41 EST ---
ok, let me know when you get to testing it
--- Additional comment from firstname.lastname@example.org on 2010-02-14 07:48:43 EST ---
The second version seems to works fine, now I need to implement the core_pipe_limit setting in abrt.
--- Additional comment from email@example.com on 2010-02-15 15:41:13 EST ---
commited to rawhide.
There had to be some changes on ABRT's side, so I'm opening this bugzilla to track it. The fix has been committed and tested.
abrt-1.0.8-1.fc13 has been submitted as an update for Fedora 13.
abrt-1.0.8-1.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update abrt'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F13/FEDORA-2010-2697
just to note I've tested the combination of abrt-1.0.8-1.fc13 and kernel 2.6.33-0.52.rc8.git6.fc13.x86_64, and this produces a working abrt.
*** Bug 568049 has been marked as a duplicate of this bug. ***
Sorry, this is not "fixed for me" with (Rawhide):
Here is what happens when firefox segfaults:
Feb 25 06:20:07 tlondon abrt: saved core dump of pid 2473 (/usr/lib64/firefox-3.6/firefox) to /var/cache/abrt/ccpp-1267107607-2473.new/coredump (0 bytes)
Feb 25 06:20:07 tlondon abrtd: Directory 'ccpp-1267107607-2473' creation detected
Feb 25 06:20:07 tlondon abrt: saved core dump of pid 2473 to /home/tbl/core.2473 (0 bytes)
Feb 25 06:20:07 tlondon abrtd: New crash /var/cache/abrt/ccpp-1267107607-2473, processing
Feb 25 06:20:07 tlondon abrtd: Registered Action plugin 'RunApp'
Feb 25 06:20:07 tlondon abrtd: RunApp('/var/cache/abrt/ccpp-1267107607-2473','test x"`cat component`" = x"xorg-x11-server-Xorg" && cp /var/log/Xorg.0.log .')
Here is the resulting 0 length core file:
[tbl@tlondon ~]$ ls -l core.2473
-rw-------. 1 tbl tbl 0 Feb 25 06:20 core.2473
(In reply to comment #6)
> Sorry, this is not "fixed for me" with (Rawhide):
Please, see the comment #4 this bug required fixes on both ABRT and kernel side, so only the right combination will work:
abrt >= 1.0.8 AND kernel >= 2.6.33-0.52.rc8.git6.fc13
besides, your test actually proves that abrt itself is working fine and you only suffered from the kernel-breaking-coredumps issue. so we can close this.
(abrt has been behaving fine for me all day, too.)
abrt-1.0.8-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.