Bug 495781 - gdb core dumps when examining std::string variable.
Summary: gdb core dumps when examining std::string variable.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: rawhide
Hardware: i686
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-04-14 18:56 UTC by Craig Robson
Modified: 2009-04-14 22:20 UTC (History)
3 users (show)

Fixed In Version: gdb-6.8.50.20090302-19.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-14 22:20:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Bash script that runs a testcase to show failure. (208 bytes, text/plain)
2009-04-14 18:56 UTC, Craig Robson
no flags Details
Failing output (8.53 KB, text/plain)
2009-04-14 18:57 UTC, Craig Robson
no flags Details

Description Craig Robson 2009-04-14 18:56:16 UTC
Created attachment 339549 [details]
Bash script that runs a testcase to show failure.

Description of problem:

gdb core dumps when examining std::string variable.

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

How reproducible:
Every time.

Steps to Reproduce:
1. Run attached script.
  
Actual results:
*** glibc detected *** gdb: free(): invalid pointer: 0xbfe7f188 ***
core dump

Additional info:
I will attach a script which shows this behaviour and the gdb error info.

Comment 1 Craig Robson 2009-04-14 18:57:08 UTC
Created attachment 339550 [details]
Failing output

Comment 2 Jan Kratochvil 2009-04-14 22:20:46 UTC
Thanks, fixed.
* Wed Apr 15 2009 Jan Kratochvil <jan.kratochvil> - 6.8.50.20090302-19
- Fix crash on pretty-printer reading uninitialized std::string (BZ 495781).

FSF GDB post:
http://sourceware.org/ml/gdb-patches/2009-04/msg00284.html


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