Bug 230235

Summary: dwarf_getscopes from an inner inlined function sometimes fails
Product: [Fedora] Fedora Reporter: Stan Cox <scox>
Component: elfutilsAssignee: Roland McGrath <roland>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: drepper, swagiaal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.129-1.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-29 17:30:51 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
self contained reproducer
none
The executable used for the test
none
source for test none

Description Stan Cox 2007-02-27 17:03:24 UTC
Description of problem: calling dwarf_getscopes from an inlined function


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


How reproducible:


Steps to Reproduce:
1. tar -x -f dumpscopes.tbz
2. # fix dumpscopes.sh to point to ELFUTILS
3. sh dumpscopes.sh
  
Actual results:
2 similar stack traces for -O0
2 aborts for -O

Expected results:
4 similar stack traces:
func_2
loop.c


Additional info:

Comment 1 Stan Cox 2007-02-27 17:03:24 UTC
Created attachment 148874 [details]
self contained reproducer

Comment 2 Sami Wagiaalla 2007-06-19 21:46:28 UTC
Created attachment 157422 [details]
The executable used for the test

Comment 3 Sami Wagiaalla 2007-06-19 21:47:29 UTC
Test Case for getscopes from inlined function using the aboe excutable:

I am interested in address 0x8048369.
running:
 ./tests/addrscopes -e ../../frysk-core/frysk/pkglibdir/funit-scopes 0x8048369
returns:
 ./tests/addrscopes: dwarf_getscopes: .debug_ranges section missing

just to double check I ran:
./tests/addrscopes -e ../../frysk-core/frysk/pkglibdir/funit-scopes 0x8048347
0x8048347:
which returned: 
/to/scratch/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-scopes.c
(0x11): 0x8048344
(/to/scratch/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-scopes.c:3)
.. 0x80483aa
(/to/scratch/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-scopes.c:21)
        crash (0x2e): 0x8048344
(/to/scratch/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-scopes.c:3)
.. 0x8048353
(/to/scratch/swagiaal/frysks/frysk.patches/frysk-core/frysk/pkglibdir/funit-scopes.c:12)
            a                             [    8d]




Comment 4 Sami Wagiaalla 2007-06-19 21:48:51 UTC
Created attachment 157423 [details]
source for test

Comment 5 Roland McGrath 2007-08-07 19:52:15 UTC
Both these cases did turn out to be related bugs.  I have fixes upstream.

Comment 6 Fedora Update System 2007-08-20 16:01:05 UTC
elfutils-0.129-1.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2007-08-29 17:30:46 UTC
elfutils-0.129-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.