Bug 230235 - dwarf_getscopes from an inner inlined function sometimes fails
Summary: dwarf_getscopes from an inner inlined function sometimes fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: elfutils
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Roland McGrath
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-02-27 17:03 UTC by Stan Cox
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version: 0.129-1.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-29 17:30:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
self contained reproducer (3.88 KB, application/octet-stream)
2007-02-27 17:03 UTC, Stan Cox
no flags Details
The executable used for the test (6.43 KB, application/octet-stream)
2007-06-19 21:46 UTC, Sami Wagiaalla
no flags Details
source for test (176 bytes, text/x-csrc)
2007-06-19 21:48 UTC, Sami Wagiaalla
no flags Details

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.


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