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.
The code to register a new Python FrameFilter on GDB was incorrectly initializing an important variable that could be needed later during the execution of the debugger. Consequently, using Python FrameFilters could cause an internal error on GDB when requesting a full backtrace of the program being debugged. This internal error would then affect the reliability of the debugging session and make it impossible to continue debugging the program. This bug has been fixed, GDB is now correctly initializing this important internal variable when a Python FrameFilter is registered to be used, and the user can now safely request full backtraces.
gdb-upstream-framefilters-1of2.patch:
+apply_frame_filter():
+ struct gdbarch *gdbarch = NULL;
+ cleanups = ensure_python_env (gdbarch, current_language);
+ TRY_CATCH (except, RETURN_MASK_ALL)
+ {
+ gdbarch = get_frame_arch (frame);
+ }
This really cannot work, ensure_python_env is called with gdbarch=NULL.
For some reason initial upstream commit already has it right:
1e611234ee3f4a1d2434f3fe7530cab87c936e0d
This buggy backport comes from:
commit 89fbbfccaf093284eadb1af638486ee5b1701a81
Author: Jan Kratochvil <jan.kratochvil>
Date: Tue May 21 13:54:33 2013 +0200
+# Backported Python frame filters (Phil Muldoon).
+Patch836: gdb-upstream-framefilters-1of2.patch
+* Tue May 21 2013 Jan Kratochvil <jan.kratochvil> - 7.6-30.fc19
+- Backported Python frame filters (Phil Muldoon).
Comment 14Sergio Durigan Junior
2015-03-24 18:27:13 UTC
I actually see the same error on 1e611234ee3f4a1d2434f3fe7530cab87c936e0d. This has been fixed by:
commit 21909fa1c6d934bfa0c7ad3ef95909db48f6f756
Author: Tom Tromey <tromey>
Date: Wed Jan 22 08:10:01 2014 -0700
So the right fix would be to backport this patch.
Created attachment 1006042[details]
output of gdb --pid=$(pidof evolution)
Unfortunately, gdb-7.6.1-65.el7.x86_64 doesn't fix the issue, or at least I have still Python exceptions in the output.
Comment 16Sergio Durigan Junior
2015-03-24 22:57:27 UTC
I don't see GDB crashing anymore on your output. This exception happens when GDB cannot locate a frame block refered by the backtrace (GDB then raises a Python exception), but the original problem has been fixed by the backported patch.
FTR: I provided a scratch build for Matej.
Comment 17Sergio Durigan Junior
2015-05-05 22:55:29 UTC
Matej, can you confirm that the original problem has been fixed? I intend to check the patch in in the next few days.
Created attachment 1025041[details]
output of gdb
(In reply to Sergio Durigan Junior from comment #17)
> Matej, can you confirm that the original problem has been fixed? I intend
> to check the patch in in the next few days.
Is this what you want? I got it with gdb-7.6.1-65.el7.x86_64
Comment 19Sergio Durigan Junior
2015-05-19 19:17:36 UTC
*** Bug 1221133 has been marked as a duplicate of this bug. ***
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, 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://rhn.redhat.com/errata/RHBA-2015-2089.html