Bug 848786 - RFE: Environment Variable to Ignore Crashes
Summary: RFE: Environment Variable to Ignore Crashes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: abrt
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ABRTF18
TreeView+ depends on / blocked
 
Reported: 2012-08-16 12:11 UTC by James Cape
Modified: 2012-12-20 15:44 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-20 15:44:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description James Cape 2012-08-16 12:11:10 UTC
Description of problem:

Ordinarily, a user will want to get a problem report when a packaged application crashes. However, if I'm a developer working on a loadable module for a packaged application (e.g. gedit, GTK, python, etc.), then I don't want ABRT to pick up those crashes, because it stuffs ABRT with a bunch of reports that will never go upstream (which makes ABRT less useful) and is kind of annoying (since it's a flurry of "XYZ crashed" notifications on the desktop)

So, I'd like to be able to tell ABRT to ignore a particular execution of an application, even if the crash is in a packaged app that I'd want to see crash reports on otherwise.

After discussions with jmoskovc on #fedora, I'd like to propose making these environment variables standard:

ABRT_IGNORE_ALL=1
ABRT_IGNORE_PYTHON=1
ABRT_IGNORE_CCPP=1

So, adding a events.d file which deletes events with those environment vars set:

---
# Ignore any crashes when the app was run w/ ABRT_IGNORE_ALL=1 in its
# environment
EVENT=post-create environ~="ABRT_IGNORE_ALL=1"
	rm .

# Ignore C/C++-based crashes with ABRT_IGNORE_CCPP
EVENT=post-create analyzer=CCpp environ~="ABRT_IGNORE_CCPP=1"
	rm .

# And ignore Python crashes with ABRT_IGNORE_PYTHON
EVENT=post-create analyzer=Python environ~="ABRT_IGNORE_PYTHON=1"
	rm .
---

Comment 1 Jiri Moskovcak 2012-09-18 10:59:06 UTC
I propose to add even:

ABRT_IGNORE=<some regexp>

Comment 2 James Cape 2012-09-18 13:22:17 UTC
Sounds good to me ( my guys will just do =.* :-) ).

Is that stuff accessible from inside the config file?

Comment 3 Denys Vlasenko 2012-10-05 11:57:44 UTC
Yes, it can be implemented in .config files, no need to change C code.

Fixed in git:

commit 86c6d0de1dde119115930fec72232aff628bc9f8
Author: Denys Vlasenko <vda.linux>
Date:   Fri Oct 5 13:55:55 2012 +0200

    Make it possible for developer to disable crash processing for specific apps

Comment 4 Fedora Update System 2012-10-11 14:01:24 UTC
abrt-2.0.15-1.fc17,libreport-2.0.16-1.fc17,btparser-0.20-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/abrt-2.0.15-1.fc17,libreport-2.0.16-1.fc17,btparser-0.20-1.fc17

Comment 5 Fedora Update System 2012-10-12 02:55:08 UTC
Package abrt-2.0.15-1.fc17, libreport-2.0.16-1.fc17, btparser-0.20-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing abrt-2.0.15-1.fc17 libreport-2.0.16-1.fc17 btparser-0.20-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-15968/abrt-2.0.15-1.fc17,libreport-2.0.16-1.fc17,btparser-0.20-1.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-10-18 00:33:29 UTC
Package abrt-2.0.16-1.fc17, libreport-2.0.16-1.fc17, btparser-0.20-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing abrt-2.0.16-1.fc17 libreport-2.0.16-1.fc17 btparser-0.20-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-15968/abrt-2.0.16-1.fc17,libreport-2.0.16-1.fc17,btparser-0.20-1.fc17
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-12-20 15:44:49 UTC
abrt-2.0.16-1.fc17, libreport-2.0.16-1.fc17, btparser-0.20-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.