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:
The rhel-8-for-x86_64-baseos-rpms repo has a very large 'other' metadata file.
dnf dies with a SIGSEGV when trying to interpret it.
Version-Release number of selected component (if applicable):
Observed with dnf-4.2.17 and dnf-4.4.2.
How reproducible:
Always, if an RHEL subscription is configured.
Steps to Reproduce:
1. dnf -v repoquery --changelogs ksh
(Note: any package name will do; ksh was arbitrary.)
Actual results:
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-inst
all, download, generate_completion_cache, groups-manager, kpatch, needs-restarti
ng, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposy
nc, subscription-manager, uploadprofile
Updating Subscription Management repositories.
DNF version: 4.4.2
cachedir: /var/cache/dnf
Segmentation fault (core dumped)
Expected results:
Not a SIGSEGV!
Additional info:
I checked the metadata innards of this repo, as cached on two different systems,
and they are substantially the same. In particular this file is of interest:
-rw-r--r-- 1 root root 551422597 Sep 27 12:03 /var/cache/dnf/rhel-8-for-x86_64-b
aseos-rpms-*/repodata/bb778f975ea3be68ca1966c110fd8fc326c3a802e29d6c9c9190d5c5d9fedf4c-other.xml.gz
That uncompresses to a file that's about 2.3GB.
I can understand that this is a huge amount of changelog data for dnf (or more
likely libdnf or libsolv or somesuch) to deal with. But if it exceeds allowed
memory, it should die more gracefully than a SIGSEGV.