Bug 196439

Summary: gdb crashes on valgrind memcheck
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan>
Component: gdbAssignee: Alexandre Oliva <aoliva>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: aoliva, jan.kratochvil
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-6.5-5.fc6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-25 14:29:00 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
Reproducibility: gdb -nx --command=/tmp/memcheck.gdbinit
none
Fix for GDB CVS version as of 2006-06-23
none
Testsuite item none

Description Jan Kratochvil 2006-06-23 10:17:14 UTC
Description of problem:
gdb crashes on ELF files with corrupted debug info.

Version-Release number of selected component (if applicable):
gdb-6.3.0.0-1.122
valgrind-3.1.0-2

How reproducible:
Every time

Steps to Reproduce:
1. gdb /usr/lib/valgrind/x86-linux/memcheck
2. break _start_in_C
3. run

Actual results:
Segmentation fault

Expected results:
Breakpoint 1, _start_in_C (pArgc=Could not find the frame base for "_start_in_C".
) at m_main.c:2860

Additional info:

Comment 1 Jan Kratochvil 2006-06-23 10:17:14 UTC
Created attachment 131420 [details]
Reproducibility: gdb -nx --command=/tmp/memcheck.gdbinit

Comment 2 Jan Kratochvil 2006-06-23 10:24:30 UTC
Created attachment 131421 [details]
Fix for GDB CVS version as of 2006-06-23

eu-readelf -w /usr/lib/valgrind/x86-linux/memcheck
	DWARF section '.debug_info' at offset 0x14759c:
	...
	 [ 176d4]    subprogram
	...
		     name		  "_start_in_C"
	...
		     frame_base 	  location list [ 116d7]
corrupted as no location lists (.debug_loc) exist there at all.

Comment 3 Jan Kratochvil 2006-07-24 09:43:39 UTC
FYI already committed upstream:
2006-07-12  Daniel Jacobowitz  <dan>

        * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
        or missing location list information.  Suggested by Jan
        Kratochvil <lace>.


Comment 7 Alexandre Oliva 2006-08-24 07:24:41 UTC
gdb-6.5-5 should hit rawhide today, containing a fix for this bug.

Comment 8 Jan Kratochvil 2006-08-26 11:53:45 UTC
Created attachment 134975 [details]
Testsuite item