Bug 495781

Summary: gdb core dumps when examining std::string variable.
Product: [Fedora] Fedora Reporter: Craig Robson <craig>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: rawhideCC: dvlasenk, jan.kratochvil, pmuldoon
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-6.8.50.20090302-19.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-14 22:20:46 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:
Attachments:
Description Flags
Bash script that runs a testcase to show failure.
none
Failing output none

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