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.

Bug 1327431

Summary: 50-coredump.conf is missing from systemd package
Product: Red Hat Enterprise Linux 7 Reporter: Anoop C S <anoopcs>
Component: systemdAssignee: systemd-maint
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: jonathan.biegert, systemd-maint-list
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-15 08:23:41 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:

Description Anoop C S 2016-04-15 07:15:17 UTC
Description of problem:
On a RHEL 7 system, /proc/sys/kernel/core_pattern contains the text 'core'. The systemd coredump configuration file named 50-coredump.conf that re-writes kernel.core_pattern to '|/usr/lib/systemd/systemd-coredump %p %u %g %s %t %e' is not present with the systemd package shipped.

Version-Release number of selected component (if applicable):
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
# yum info systemd
Name        : systemd
Arch        : x86_64
Version     : 219
Release     : 19.el7_2.7
Size        : 21 M
Repo        : installed
From repo   : rhel-7-server-rpms

How reproducible:
Always

Steps to Reproduce:
1. Provision a RHEL 7 system.
2. # cat /proc/sys/kernel/core_pattern
core
3. Run the following:
# rpm -qil systemd | grep "50-coredump.conf"

Actual results:
Command from step 3 displayed nothing.

Expected results:
Command from step 3 displays the following:
/usr/lib/sysctl.d/50-coredump.conf

Additional info:
Further analysis
----------------
I could see the following lines from systemd spec file downstream[1] as a reason for the absence of 50-coredump.conf:
 . . .
# To avoid making life hard for Rawhide-using developers, don't package the
# kernel.core_pattern setting until systemd-coredump is a part of an actual
# systemd release and it's made clear how to get the core dumps out of the
# journal.
rm -f %{buildroot}%{_prefix}/lib/sysctl.d/50-coredump.conf
 . . .

AFAIK, systemd-coredump is already part of a systemd release way back[2] and fedora's systemd spec file have been modified to include 50-coredump.conf from version 215 onwards[3].

<diff>
 . . .
-Version:        214
-Release:        5%{?gitcommit:.git%{gitcommit}}%{?dist}
+Version:        215
+Release:        1%{?gitcommit:.git%{gitcommit}}%{?dist}

 . . .

-# Don't package the kernel.core_pattern, we need minidumps working before
-# this can replace Fedora's current core dump handling.
-rm -f %{buildroot}%{_prefix}/lib/sysctl.d/50-coredump.conf

 . . .

+%{_prefix}/lib/sysctl.d/50-coredump.conf

</diff>


[1] http://pkgs.devel.redhat.com/cgit/rpms/systemd/tree/systemd.spec?h=rhel-7.2
[2] https://github.com/systemd/systemd/commit/f5e04665ebf7124f3ea17dcf258793ed73a95fe1
[3] http://pkgs.fedoraproject.org/cgit/rpms/systemd.git/diff/systemd.spec?h=f23&id=1298810b87cdb4bba22a04d84591692979f95eca

Comment 2 Lukáš Nykrýn 2016-04-15 08:23:41 UTC
I don't think it would be wise to change the configuration of coredumps in the minor update of rhel.

Comment 3 jonathan.biegert 2021-02-17 13:11:24 UTC
Unfortunately now a RHEL7 install has a manpage systemd-coredump(8) stating the daemon would be used through /usr/lib/sysctl.d/50-coredump.conf but since that file is missing it is not.
So apparently RHEL 7 ships systemd-coredump and can use it (if coredump files or ABRT are undesired), but it has to be configured manually through sysctl.
The RHEL 7 System Administration Guide unfortunately does not cover this Question, only ABRT.