Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
Abrtd started to fill /var/log/messages quickly. At the same time, python scripts we were running sometimes hang indefinitely.
I took a closer look, and this is what I believe is happening. When abrtd decides /var/spool/abrt is too full, it will try to remove the "worst" directory in there. This happens in handle_inotify_cb in abrt-2.0.8/src/daemon/abrtd.c It uses get_dirsize_find_largest_dir() to find the "worst" directory, and then delete_dump_dir() to remove it. If, however, the directory found does not contain a "time" file; is not considered a "problem directory", then it will not be removed. But since nothing was removed, abrtd still considers the spool directory too full, and tries again in the while loop. Of course, it will again find the same "worst" directory. And it will keep looping like that.
Version-Release number of selected component (if applicable):
abrt-2.0.8-6.el6.x86_64
libreport-2.0.9-5.el6.x86_64
How reproducible:
Every time.
Steps to Reproduce:
1. Create a directory with a lot of large files in /var/log/abrt. Make sure none of them is called "time".
Actual results:
Abrtd keeps sending these kinds of messages:
Aug 10 14:10:26 kisaumi abrtd: Size of '/var/spool/abrt' >= 1000 MB, deleting 'ccpp-2012-07-04-11:34:26-27117'
Aug 10 14:10:27 kisaumi abrtd: '/var/spool/abrt/ccpp-2012-07-04-11:34:26-27117' is not a problem directory
Aug 10 14:10:27 kisaumi abrtd: Size of '/var/spool/abrt' >= 1000 MB, deleting 'ccpp-2012-07-04-11:34:26-27117'
Aug 10 14:10:27 kisaumi abrtd: '/var/spool/abrt/ccpp-2012-07-04-11:34:26-27117' is not a problem directory
Aug 10 14:10:27 kisaumi abrtd: Size of '/var/spool/abrt' >= 1000 MB, deleting 'ccpp-2012-07-04-11:34:26-27117'
Aug 10 14:10:28 kisaumi abrtd: '/var/spool/abrt/ccpp-2012-07-04-11:34:26-27117' is not a problem directory
Aug 10 14:10:28 kisaumi abrtd: Size of '/var/spool/abrt' >= 1000 MB, deleting 'ccpp-2012-07-04-11:34:26-27117'
Aug 10 14:10:28 kisaumi abrtd: '/var/spool/abrt/ccpp-2012-07-04-11:34:26-27117' is not a problem directory
Aug 10 14:10:28 kisaumi abrtd: Size of '/var/spool/abrt' >= 1000 MB, deleting 'ccpp-2012-07-04-11:34:26-27117'
Aug 10 14:10:28 kisaumi abrtd: '/var/spool/abrt/ccpp-2012-07-04-11:34:26-27117' is not a problem directory
It also becomes unresponsive. If a Python process will crash with an uncaught exception, it will hang waiting forever on a connection to /var/run/abrt/abrt.socket
Additional information:
It could be argued if this is a libreport or abrt problem. It seems to me that get_dirsize_find_largest_dir() ought to be consistent with delete_dump_dir(), and both of these belong to libreport, so I choose that component. But maybe the functions aren't specified in that way?
Fixed in git:
commit 3f74a39f2bee037ee81ac2937b85f2141b3a83e5
Author: Denys Vlasenko <vda.linux>
Date: Mon Aug 13 14:50:29 2012 +0200
abrtd: make it ignore non-problem dirs when looking for a dir to delete
A related upstream commit:
commit 4d7cf343acae679cb849007150428f7becce2210
Author: Denys Vlasenko <vda.linux>
Date: Thu Dec 20 10:34:29 2012 +0100
Make get_dirsize_find_largest_dir less talkative
Cause
Directory not created by ABRT was in /var/spool/abrt
Consequence
ABRT got stuck in infinite loop when reaching it's hard disk space quota.
Fix
Ignore unknown directories when counting freespace in /var/spool/abrt
Result
abrtd not caught in the infinite loop
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.
http://rhn.redhat.com/errata/RHBA-2013-0290.html