Bug 137827
Summary: | "catch" command gives error when invoked to catch C++ exceptions | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alistair Riddoch <alriddoch> |
Component: | gdb | Assignee: | Jan Kratochvil <jan.kratochvil> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6 | CC: | cagney, jan.kratochvil, mattdm, triage |
Target Milestone: | --- | Keywords: | MoveUpstream, Reopened |
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | bzcl34nup | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-05-06 15:27:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Alistair Riddoch
2004-11-01 20:59:42 UTC
I have some further information that may shed some light on this problem. gdb correctly uses the symbol __cxa_throw to catch C++ exceptions, but because the standard C++ library has not yet been loaded when gdb is first started, the symbol is not available. Using the command "break __cxa_throw" gives the following message: Function "__cxa_throw" not defined. Make breakpoint pending on future shared library load? (y or [n]) If the user responds with y, and then starts the program, the following message is displayed: Breakpoint 2 at 0xb7c3c931 Pending breakpoint "__cxa_throw" resolved From this point on, the breakpoint is successfull in catching exceptions as they are thrown. It appears from the above investigation that in order to get "catch throw" functionality working again, gdb needs to delay looking for the __cxa_throw symbol until it is defined or use a pending mechanism similar to that used by the break command. If it were to do so, catching C++ exceptions without having to set a breakpoint manually should be possible. Fedora Core 3 is now maintained by the Fedora Legacy project for security updates only. If this problem is a security issue, please reopen and reassign to the Fedora Legacy product. If it is not a security issue and hasn't been resolved in the current FC5 updates or in the FC6 test release, reopen and change the version to match. Thank you! I confirm that this issue still exists in FC6 test1. using gdb-6.3.0.0-1.132.FC6. This should probably be pushed upstream to the gdb team. Thanks! The "Verified" bug state confusingly means that a *fix* has been verified, not that the bug is verified as a problem. Reopening as per comment #3, and adding MoveUpstream keyword. FC6test2 upwards was rebased to gdb-6.5. Bug to be checked for reproducibility (not "verified for reproducibility" :-) ). I have checked on my FC6 machine, and the issue is the same there. Version is gdb-6.5-15.fc6. Fedora apologizes that these issues have not been resolved yet. We're sorry it's taken so long for your bug to be properly triaged and acted on. We appreciate the time you took to report this issue and want to make sure no important bugs slip through the cracks. If you're currently running a version of Fedora Core between 1 and 6, please note that Fedora no longer maintains these releases. We strongly encourage you to upgrade to a current Fedora release. In order to refocus our efforts as a project we are flagging all of the open bugs for releases which are no longer maintained and closing them. http://fedoraproject.org/wiki/LifeCycle/EOL If this bug is still open against Fedora Core 1 through 6, thirty days from now, it will be closed 'WONTFIX'. If you can reporduce this bug in the latest Fedora version, please change to the respective version. If you are unable to do this, please add a comment to this bug requesting the change. Thanks for your help, and we apologize again that we haven't handled these issues to this point. The process we are following is outlined here: http://fedoraproject.org/wiki/BugZappers/F9CleanUp We will be following the process here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this doesn't happen again. And if you'd like to join the bug triage team to help make things better, check out http://fedoraproject.org/wiki/BugZappers This bug is open for a Fedora version that is no longer maintained and will not be fixed by Fedora. Therefore we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen thus bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. |