Bug 533525 - gdb segfaults when trying to set up exception catching
Summary: gdb segfaults when trying to set up exception catching
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 11
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-07 01:11 UTC by Ben Webb
Modified: 2009-11-12 00:50 UTC (History)
2 users (show)

Fixed In Version: 6.8.50.20090302-39.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-11-12 00:50:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ben Webb 2009-11-07 01:11:48 UTC
Description of problem:
gdb cannot set up exception catching ("catch throw"); it simply segfaults.

Version-Release number of selected component (if applicable):
gdb-6.8.50.20090302-38.fc11.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Run "gdb python"
2. Type "catch throw" at the gdb prompt.
  
Actual results:
gdb prints:
Function "__cxa_throw" not defined.
Segmentation fault

Expected results:
No segfault.

Additional info:
This is on a fully patched Fedora 11, x86_64 system. gdb on a RHEL5 box (gdb-6.8-37.el5) does not crash given the same input. We're also pretty sure this used to work on Fedora 11; since gdb itself hasn't been updated for a while, perhaps it is an odd interaction with one of its dependencies (expat, for example, which was updated only a week ago) ?

Comment 1 Fedora Update System 2009-11-10 22:24:30 UTC
gdb-6.8.50.20090302-39.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/gdb-6.8.50.20090302-39.fc11

Comment 2 Jan Kratochvil 2009-11-10 22:26:33 UTC
As python is not linked with libstdc++ I am not sure what is the goal of such command, it will not catch the python exceptions this way.  If you wanted to do so you should rather find some internal Python exception-throwing function and `break' on it instead.

Also I can suggest moving to F-12 with more recent GDB.

Comment 3 Ben Webb 2009-11-10 22:31:11 UTC
That is not the point - I picked python because it's going to be present on most systems. The point is that gdb should not crash. ;)

Comment 4 Fedora Update System 2009-11-12 00:50:35 UTC
gdb-6.8.50.20090302-39.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


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