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 1664456

Summary: SYMBOL_LANGUAGE assertion in dwarf2read.c
Product: Red Hat Enterprise Linux 8 Reporter: Keith Seitz <keiths>
Component: gdbAssignee: Keith Seitz <keiths>
Status: CLOSED CURRENTRELEASE QA Contact: Michal Kolar <mkolar>
Severity: high Docs Contact: Vladimír Slávik <vslavik>
Priority: unspecified    
Version: 8.0CC: dsmith, gdb-bugs, jwboyer, mcermak, mkolar, ohudlick, sergiodj, vslavik
Target Milestone: rcFlags: rule-engine: mirror+
Target Release: 8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-8.2-5 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-14 01:40:23 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 Keith Seitz 2019-01-08 21:16:03 UTC
Description of problem:

Assertion while reading symbols

Version-Release number of selected component (if applicable):

GDB-8.2.x

How reproducible:

Always

Steps to Reproduce:
   See upstream gdb/23010, gdb/23712 or related Fedora bugs 1560010 et al.
   This is another instance of hitting the assertion through binaries
   compiled with LTO.

Actual results:

$ gdb -q ../../obj3/gcc/build/genchecksum
Reading symbols from ../../obj3/gcc/build/genchecksum...done.
../../gdb/dwarf2read.c:9730: internal-error: void dw2_add_symbol_to_list(symbol*, pending**): Assertion `(*listhead) == NULL || (SYMBOL_LANGUAGE ((*listhead)->symbol[0]) == SYMBOL_LANGUAGE (symbol))' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) 

Expected results:

No assertion

Additional info:

Comment 1 Keith Seitz 2019-01-08 21:23:24 UTC
One thing I forgot to mention... This problem could potentially cause a flood of bug reports from abrt, which uses gdb to gather backtraces.

Comment 6 Michal Kolar 2019-01-22 14:49:15 UTC
Reproduced against gdb-8.2-3.el8 and verified against gdb-8.2-5.el8.

Tested by reproducer of Sourceware/23010.