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 1186476 - backport GDB 7.4 fix to RHEL 6.6 GDB
Summary: backport GDB 7.4 fix to RHEL 6.6 GDB
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gdb
Version: 6.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Sergio Durigan Junior
QA Contact: Miroslav Franc
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-27 18:22 UTC by Paulo Andrade
Modified: 2019-08-15 04:13 UTC (History)
7 users (show)

Fixed In Version: gdb-7.2-81.el6
Doc Type: Bug Fix
Doc Text:
Cause: When a breakpoint was pending (i.e., its location had not been resolved yet) and a new object file appeared (e.g., when a shared library is loaded), if this new object file contained multiple possible locations for the breakpoint (e.g., overloaded methods in C++), GDB was being too strict on checking this condition, and would issue an internal error if this scenario was found. A possible workaround for this issue would be to explicitly specify the location for the breakpoint. For example, if the code defines two functions 'f ()' and 'f (int)', the user could insert a breakpoint on each one by issuing, respectively, break 'f ()' and break 'f (int)' (note the single quotes around the functions). Consequence: This internal error would affect the user experience, causing GDB to display an unnecessarily urgent message that would lead the user to stop debugging. Fix: The check for multiple locations for the same breakpoint has been relaxed, and GDB does not issue an internal error in this scenario anymore. Result: The user will receive a warning mentioning that more than one location for the breakpoint has been found, but only one location will be used. The debugging experience is not affected and the user can continue working with GDB without any problems.
Clone Of:
Environment:
Last Closed: 2015-07-22 06:34:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
simple test case (332 bytes, text/plain)
2015-01-27 18:23 UTC, Paulo Andrade
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1325 0 normal SHIPPED_LIVE gdb bug fix update 2015-07-20 17:53:09 UTC
Sourceware 11657 0 None None None Never

Description Paulo Andrade 2015-01-27 18:22:02 UTC
The actual fix may not be too easy to find, as it
should be somewehere in the patches listed at
https://sourceware.org/bugzilla/show_bug.cgi?id=11657#c3

Comment 1 Paulo Andrade 2015-01-27 18:23:14 UTC
Created attachment 984813 [details]
simple test case

Comment 3 Paulo Andrade 2015-02-09 16:49:33 UTC
Just to make it clear, the customer wants strictly the
bug described in comments 1 and 2 of the sourceware
report.

Unfortunately, it appears to have been corrected in
a quite large cvs commit, so it may not be trivial
to find what commit actually corrected it.

The problem does not happen in recent fedora or
rhel-7.

Comment 4 Sergio Durigan Junior 2015-02-16 19:12:12 UTC
We investigated this bug, and the conclusion is that the patch to fix the issue is too big to be backported safely for 6.7.  We cannot afford applying it and causing an obscure regression elsewhere.

The fix that I proposed (suggested by Jan Kratochvil) is to replace the assertion by a warning, which would not crash GDB and therefore would not impact the debugging session.

Also, it is worth mentioning that, for a more advanced debugging experience with C++, there is the DTS version of GDB.

Comment 5 Jan Kratochvil 2015-02-16 19:21:44 UTC
That is removing the assertion will make the breakpoint placed only one instanced of a constructor/destructor; execution of other instances will miss the breakpoint.

The warning's printing should be also limited somehow (per struct breakpoint?) otherwise it would get printed on each shared library load.

Comment 9 errata-xmlrpc 2015-07-22 06:34:37 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, 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-1325.html


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