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 2086761 - gdb crashes with: ../../gdb/dwarf2/frame.c:1085: internal-error: Unknown CFA rule.
Summary: gdb crashes with: ../../gdb/dwarf2/frame.c:1085: internal-error: Unknown CFA ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2022-07-18
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: gdb
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Keith Seitz
QA Contact: Michal Kolar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-16 14:45 UTC by Mike Pattrick
Modified: 2022-11-15 11:37 UTC (History)
2 users (show)

Fixed In Version: gdb-10.2-10.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 10:30:54 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-122203 0 None None None 2022-05-16 15:04:08 UTC
Red Hat Product Errata RHBA-2022:8167 0 None None None 2022-11-15 10:30:58 UTC

Description Mike Pattrick 2022-05-16 14:45:42 UTC
Description of problem:

When attempting to attach GDB to a kernel in qemu, both a host and guest running the same 5.14.0-86 kernel, I'm unable to load module symbols into GDB.


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

gdb.x86_64 - 10.2-9.el9
gcc.x86_64 - 11.3.1-2.el9 
kernel.x86_64 - 5.14.0-86.kpq0.el9
qemu-kvm.x86_64 - 17:7.0.0-2.el9

How reproducible:

Happens every time.


Steps to Reproduce:
1. Install a recent build of RHEL 9.1 on host and guest
2. Use provided RPMs for kernel, kernel-devel, and kernel-source
3. Attach GDB to guest and run lx-symbols

Actual results:

(gdb) lx-symbols
loading vmlinux
scanning for modules in /usr/lib/debug/usr/lib/modules/5.14.0-86.kpq0.el9.x86_64
scanning for modules in /root
../../gdb/dwarf2/frame.c:1085: internal-error: Unknown CFA rule.
A problem internal to GDB has been detected,
further debugging may prove unreliable.

Comment 1 Mike Pattrick 2022-05-16 18:14:51 UTC
I installed gdb-12.1 from source and it resolved this issue. It seems to be GDB 10 related: https://sourceware.org/bugzilla/show_bug.cgi?id=26876

Comment 2 Keith Seitz 2022-05-16 18:51:43 UTC
Yes, that's correct.

@mpattric , you've filed the bug against GTS11, but there is no such release for RHEL9. Did you mean the system version?

Planning has already ended for 9.1, so unless we can convince the stakeholders, we'll have to defer to 9.2. [Fortunately, the patch is practically trivial.]

This patch will be included with gcc-toolset-12-gdb (the first GTS release for RHEL9).

Comment 3 Mike Pattrick 2022-05-16 18:59:40 UTC
Yes sorry, changed it to the system version.

Comment 5 Michal Kolar 2022-06-29 08:39:04 UTC
Verified with gdb-10.2-10.el9.

Comment 9 errata-xmlrpc 2022-11-15 10:30: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 (gdb bug fix and enhancement update), 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:8167


Note You need to log in before you can comment on or make changes to this bug.