Bug 1107654

Summary: eu-unstrip -n doesn't work on architectures without unwinder
Product: [Fedora] Fedora Reporter: Martin Milata <mmilata>
Component: elfutilsAssignee: Mark Wielaard <mjw>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: aoliva, fche, jakub, jan.kratochvil, mjw, mjw, mtoman, pmachata, roland
Target Milestone: ---   
Target Release: ---   
Hardware: armv7l   
OS: Linux   
Whiteboard:
Fixed In Version: elfutils-0.160-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-21 02:58:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Milata 2014-06-10 12:06:13 UTC
Description of problem:
eu-unstrip -n appears to have stopped working on architectures without unwinding support, even though (to my rather limited knowledge) it does not actually need an unwinder.

Version-Release number of selected component (if applicable):
elfutils-0.158-3.fc20

How reproducible:
Always.

Steps to Reproduce:
$ cat /etc/redhat-release && uname -p && file ./core.9547 && eu-unstrip -n --core ./core.9547 

Actual results:
Fedora release 20 (Heisenbug)
armv7l
./core.9547: ELF 32-bit LSB core file ARM, version 1 (SYSV), SVR4-style, from 'sleep 100'
eu-unstrip: cannot attach to core: Unwinding not supported for this architecture

Expected results:
(list of file names and build IDs)

Additional info:
Setting high severity as we depend on this feature in ABRT.

Comment 1 Mark Wielaard 2014-06-10 12:47:12 UTC
An upgrade to elfutils-0.159 would fix that for ARM. But in general this is indeed a bug caused by the following in libdwfl/argp-std.c (parse_opt):

            result = INTUSE(dwfl_core_file_attach) (dwfl, core);
            if (result < 0)
              /* Non-fatal to not be able to attach to core.  */
              failure (dwfl, result, _("cannot attach to core"));

The comment and the code don't match. The intent was to just warn, but calling failure () is a hard fatal fail...

Comment 2 Michal Toman 2014-06-10 13:08:49 UTC
Thanks, I've tried elfutils-0.159 and it works. Is there any chance to get the fix to F20?

Comment 3 Mark Wielaard 2014-06-10 13:23:17 UTC
I posted a proposed fix upstream:
https://lists.fedorahosted.org/pipermail/elfutils-devel/2014-June/004045.html

Comment 4 Fedora Update System 2014-06-15 21:38:18 UTC
elfutils-0.158-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/elfutils-0.158-4.fc20

Comment 5 Fedora Update System 2014-06-16 23:27:35 UTC
Package elfutils-0.158-4.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing elfutils-0.158-4.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7410/elfutils-0.158-4.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-06-21 02:58:17 UTC
elfutils-0.158-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2014-09-08 15:08:52 UTC
elfutils-0.160-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/elfutils-0.160-1.fc19

Comment 8 Fedora Update System 2014-09-25 10:41:53 UTC
elfutils-0.160-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.