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 2058230

Summary: glibc: Fix regression (ldd crash) during dependency sorting in ld.so
Product: Red Hat Enterprise Linux 9 Reporter: Florian Weimer <fweimer>
Component: glibcAssignee: glibc team <glibc-bugzilla>
Status: CLOSED ERRATA QA Contact: Sergey Kolosov <skolosov>
Severity: medium Docs Contact:
Priority: high    
Version: 9.0CC: ashankar, codonell, dj, fweimer, glibc-bugzilla, mnewsome, pfrankli, pvlasin, sipoyare
Target Milestone: rcKeywords: Bugfix, Regression, Triaged
Target Release: 9.0Flags: pm-rhel: mirror+
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: glibc-2.34-27.el9_0 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2060778 (view as bug list) Environment:
Last Closed: 2022-05-17 15:48:54 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: 2060778    

Description Florian Weimer 2022-02-24 14:33:55 UTC
With LD_TRACE_LOADED_OBJECTS=1, fake objects cause the new (default) dependency sorting algorithm to crash.

Comment 4 Florian Weimer 2022-02-28 10:44:48 UTC
One way to reproduce this:

dnf install java-17-openjdk
ldd /usr/lib/jvm/java-17-openjdk-17*/lib/libnio.so

With the bug present, ld.so crashes with:

Inconsistency detected by ld.so: dl-sort-maps.c: 239: _dl_sort_maps_dfs: Assertion `rpo_head == rpo' failed!

Or fails with exit status 1 (as seen on x86_64).

With the bug fixed, the output contains two “=> not found” lines.

Note that this reproducer is not completely reliable and may stop reproducing the bug due to OpenJDK changes etc. But ld.so is expected to produce some output for valid ELF objects (no crash).

Comment 12 errata-xmlrpc 2022-05-17 15:48:54 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 (new packages: glibc), 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-2022:3917