RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1132459 - Need more correct cleanup behaviour when /var/spool/abrt is full
Summary: Need more correct cleanup behaviour when /var/spool/abrt is full
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: abrt
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jakub Filak
QA Contact: Martin Kyral
URL:
Whiteboard:
: 1369433 (view as bug list)
Depends On:
Blocks: 1132510 1203710 1295829 1313485
TreeView+ depends on / blocked
 
Reported: 2014-08-21 11:54 UTC by Konstantin Lepikhov
Modified: 2020-02-14 17:25 UTC (History)
6 users (show)

Fixed In Version: abrt-2.1.11-44.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1132510 (view as bug list)
Environment:
Last Closed: 2016-11-04 03:05:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch 1/2: daemon: trigger dump location cleanup after detection (20.11 KB, patch)
2016-08-02 10:58 UTC, Matej Habrnal
no flags Details | Diff
Patch 2/2: handle-event: stop creating post-create lock (3.19 KB, patch)
2016-08-02 10:58 UTC, Matej Habrnal
no flags Details | Diff
Patch 1/1: daemon: send base names from abrt-server to abrtd (2.88 KB, patch)
2016-08-29 07:30 UTC, Matej Habrnal
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2307 0 normal SHIPPED_LIVE abrt, gnome-abrt, and libreport bug fix and enhancement update 2016-11-03 13:40:24 UTC

Description Konstantin Lepikhov 2014-08-21 11:54:30 UTC
Description of problem:
The original description taken from #sfdc case 01176977

----
Aug 19 11:25:22 el1191 abrtd: Directory 'ccpp-2014-08-19-11:25:19-2206' creation detected
Aug 19 11:25:22 el1191 abrtd: Size of '/var/spool/abrt' >= 1000 MB, deleting 'ccpp-2014-08-19-11:24:35-56940'
Aug 19 11:25:22 el1191 abrt[4235]: /var/spool/abrt is 1348804852 bytes (more than 1279MiB), deleting 'ccpp-2014-08-19-11:24:35-56940'
----

I can imagine that when abrtd is removing directories because the size goes over a specific treshold, but at the same time abrt processes are working with files/directories, the abrt scripts fail at different locations depending on specific timing issues.

So I do understand that there is a mechanism to prevent the filesystem to get full, but I think the abrt python scripts should not generated unhandled exceptions causing new crashes. It might be as simple as catching these specific exceptions, and logging the event to syslog before exiting with an error and error message.

All in all that wouldn't be a dramatic change to what is happening on right now, with the added value that these events are being logged and no new crashes are being initiated.

Version-Release number of selected component (if applicable):
abrt-2.0.8-21.el6.x86_64
abrt-addon-ccpp-2.0.8-21.el6.x86_64
abrt-addon-kerneloops-2.0.8-21.el6.x86_64
abrt-addon-python-2.0.8-21.el6.x86_64
abrt-cli-2.0.8-21.el6.x86_64
abrt-libs-2.0.8-21.el6.x86_64
abrt-tui-2.0.8-21.el6.x86_64

How reproducible:
Always, when size of /var/spool/abrt directory is bigger than predefined threshold.

Steps to Reproduce:
1. Create so many crashes that dir size will be bigger than predefined threshold.
2. Try to crash app again.

Actual results:
The abrt process will try to delete actual crashdump directory and run sosreport at the same time.

Expected results:
If we need a cleanup for that directory just delete oldest crasdump, not the latest one.

Comment 3 Jakub Filak 2016-02-19 11:08:24 UTC
I have developed a test reproducing the unwanted behavior and I found out that this bugzilla bug is still not fixed:
https://github.com/abrt/abrt/commit/4837a0a1aeb8c78b4bc4e07326de48daf8e63f8b

Comment 4 Jakub Filak 2016-07-22 11:39:12 UTC
Fixed upstream: https://github.com/abrt/abrt/pull/1164

Comment 5 Matej Habrnal 2016-08-02 10:58:01 UTC
Created attachment 1186746 [details]
Patch 1/2: daemon: trigger dump location cleanup after detection

Comment 6 Matej Habrnal 2016-08-02 10:58:04 UTC
Created attachment 1186747 [details]
Patch 2/2: handle-event: stop creating post-create lock

Comment 8 Jakub Filak 2016-08-23 12:57:59 UTC
*** Bug 1369433 has been marked as a duplicate of this bug. ***

Comment 9 Jakub Filak 2016-08-26 09:38:11 UTC
There is a little problem with the patches. If abrt-server receives a path that is not in canonical form, abrtd fails to remove such a process from its queue if the relevant problem directory is removed due to the size limit restrictions.

Comment 10 Jakub Filak 2016-08-26 11:55:45 UTC
Upstream commit fixes the problem with canonical paths:
https://github.com/abrt/abrt/pull/1176/commits/d0a35daa628652aa83e7b890051b32bd35402ec8

Comment 12 Matej Habrnal 2016-08-29 07:30:09 UTC
Created attachment 1195193 [details]
Patch 1/1: daemon: send  base names from abrt-server to abrtd

Comment 15 errata-xmlrpc 2016-11-04 03:05:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2307.html


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