Created attachment 926483 [details]
Description of problem:
When unwinding core dump on i386, it appears that dwfl_thread_getframes fails with "Callback returned failure" after it reaches a frame belonging to VDSO and only if the core file had been opened with elf_begin(fd, ELF_C_READ, NULL). Opening it with ELF_C_READ_MMAP solves this issue.
Version-Release number of selected component: elfutils-0.159-8.fc22.i686
How reproducible: Always
Steps to Reproduce:
1. gcc -o simplestack -lelf -ldw simplestack.c
2. ulimit -c unlimited
3. sleep 1d &
4. kill -11 $!
+ Segmentation fault (core dumped) sleep 1d
5. ./simplestack /usr/bin/sleep core.12345
dwfl_thread_getframes: -1 (Callback returned failure)
dwfl_thread_getframes: -1 (No DWARF information found)
(can be achieved by replacing ELF_C_READ by ELF_C_READ_MMAP in simplestack.c)
Low priority as this can be easily worked around in the library user (ABRT in this case).
Replicated with 0.158-4.fc20.i686 but not analysed yet.
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.
More information and reason for this action is here:
Still an issue with current elfutils git.
The difference is that core_file_read_eagerly () returns false in the ELF_C_READ case, and true in the ELF_C_READ_MMAP case for linux-gate.so.1.
Posted a patch upstream:
After discussion upstream a variant of the patch is no in git master. Fixing this bug when elfutils 0.162 will be released later this week.
elfutils-0.162-1.fc22 has been submitted as an update for Fedora 22.
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing elfutils-0.162-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
elfutils-0.163-1.fc22 has been submitted as an update for Fedora 22.
elfutils-0.163-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
elfutils-0.163-1.fc21 has been submitted as an update for Fedora 21.
elfutils-0.163-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.