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:
Created attachment 148874 [details] self contained reproducer
Created attachment 157422 [details] The executable used for the test
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]
Created attachment 157423 [details] source for test
Both these cases did turn out to be related bugs. I have fixes upstream.
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.
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.