Bug 1705157

Summary: ABRT does not respect ulimit
Product: Red Hat Enterprise Linux 7 Reporter: Piyush Bhoot <pbhoot>
Component: man-pages-overridesAssignee: Nikola Forró <nforro>
Status: CLOSED ERRATA QA Contact: David Jež <djez>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.7CC: djez, fkrska, msuchy, nforro, ovasik
Target Milestone: rcKeywords: ManPageChange, Reopened
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: man-pages-overrides-7.8.0-1.el7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 19:40:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1738563    

Description Piyush Bhoot 2019-05-01 16:20:07 UTC
Description of problem:
ABRT does not respect ulimit values.
Coredump is generated even if core is set to 0


Version-Release number of selected component (if applicable):
abrt-2.1.11-50.el7.x86_64

How reproducible:
Always


Steps to Reproduce:
1.ulimit -c 0
2. cat /proc/sys/kernel/core_pattern 
|/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h
3. sleep 1000&
4. kill -11 $!

Actual results:
Crash report generated in /var/spool/abrt

Expected results:
No crash report (or ulimit value respected)


Additional info:
If this is expected behavior what is role of %c here?
On FC 29 no crash report generated if limit is 0

Comment 3 Miroslav Suchý 2019-06-25 13:49:18 UTC
This was always this way. And it was always documented this way. I understand, that it would be nice to parse %c, but this would be a feature. With RHEL7 currently being already in Maintainance 1 phase, this will not get into RHEL 7.
In RHEL 8, this hook is not used as ABRT reads code dumps from coredumpctl - so it does not have the sense to work on this in upstream as well.

Comment 6 Nikola Forró 2019-06-26 09:10:15 UTC
Upstream commit to backport:
https://github.com/mkerrisk/man-pages/commit/97839a765d584aa4c46a1917f142915c91a9d61b

Comment 12 errata-xmlrpc 2020-03-31 19:40:34 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://access.redhat.com/errata/RHBA-2020:1025