Bug 786091

Summary: Coredump during initialization in find_charset_names
Product: [Fedora] Fedora Reporter: Zdenek Kabelac <zkabelac>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jan.kratochvil, patrickm, pmuldoon, sergiodj
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gdb-7.4.50.20120120-11.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1119119 (view as bug list) Environment:
Last Closed: 2014-09-02 20:46:27 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:
Bug Depends On:    
Bug Blocks: 1119119    

Description Zdenek Kabelac 2012-01-31 12:34:58 UTC
Description of problem:

gdb crashed during initialization -

The reason seems to be unchecked result of pex_read_output() function is used for 'feof()' (missing NULL pointer test).

Here is traceback:


#0  _IO_feof (fp=fp@entry=0x0) at feof.c:37
#1  0x0000000000517048 in find_charset_names () at ../../gdb/charset.c:843
#2  0x0000000000517d67 in _initialize_charset () at ../../gdb/charset.c:1012
#3  0x000000000064c67a in initialize_all_files () at init.c:167
#4  0x000000000061feaf in gdb_init (argv0=0x7fff38ef7ec7 "gdb") at ../../gdb/top.c:1695
#5  0x000000000056f7c5 in captured_main (data=data@entry=0x7fff38ef7260) at ../../gdb/main.c:713
#6  0x000000000056e0ae in catch_errors (func=func@entry=0x56f310 <captured_main>, func_args=func_args@entry=0x7fff38ef7260, 
    errstring=errstring@entry=0x6f8061 "", mask=mask@entry=6) at ../../gdb/exceptions.c:546
#7  0x00000000005703d4 in gdb_main (args=args@entry=0x7fff38ef7260) at ../../gdb/main.c:1045
#8  0x000000000045221e in main (argc=<optimized out>, argv=<optimized out>) at ../../gdb/gdb.c:34

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Zdenek Kabelac 2012-01-31 12:36:32 UTC
Version in use on my rawhide:
gdb-7.4.50.20120120-10.fc17.x86_64

Comment 2 Tom Tromey 2012-02-07 15:43:04 UTC
Thanks.
I'm not sure what could cause that, but I pushed the obvious
fix upstream:
http://sourceware.org/ml/gdb-patches/2012-02/msg00073.html

Comment 3 Fedora End Of Life 2013-04-03 20:26:00 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 4 Zdenek Kabelac 2014-09-02 11:40:03 UTC
I've not seen this problem on my rawhide - so it's likely fixed.