Bug 1714804 - Minidebuginfo is no longer provided
Summary: Minidebuginfo is no longer provided
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 29
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1761318 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-28 22:07 UTC by Jan Kratochvil
Modified: 2019-10-14 06:39 UTC (History)
11 users (show)

Fixed In Version: rpm-4.14.2.1-3.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-14 01:54:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Fix (433 bytes, patch)
2019-05-28 22:07 UTC, Jan Kratochvil
no flags Details | Diff

Description Jan Kratochvil 2019-05-28 22:07:21 UTC
Created attachment 1574526 [details]
Fix

Description of problem:
https://fedoraproject.org/wiki/Features/MiniDebugInfo
is no longer provided in recent binaries, such as F-29 and F-30.

Version-Release number of selected component (if applicable):
FAIL: rpm-build-4.14.2.1-2.fc29.x86_64

How reproducible:
Always.

Steps to Reproduce:
readelf -WS /bin/bash|fgrep .gnu_debugdata

Actual results:
<none>

Expected results:
  [34] .gnu_debugdata    PROGBITS        0000000000000000 1106f0 006694 00      0   0  1

Additional info:
$ file -bi /bin/bash
produces:
  application/x-pie-executable; charset=binary
while /usr/lib/rpm/find-debuginfo.sh expects:
  application/x-executable; charset=binary

Comment 1 Mark Wielaard 2019-05-28 22:41:47 UTC
Fixed by the following upstream commit:

commit 0917da26bf0722fcf40de1c5a61412f23982d131
Author: Ernestas Kulik <ekulik>
Date:   Mon Feb 25 16:34:06 2019 +0100

    find-debuginfo.sh: Handle position-independent executables
    
    Since file 5.33, PIEs are identified by a new MIME type, meaning that,
    currently, for such executables, the .gnu_debugdata section is not
    added, even if -m is passed.
    
    Signed-off-by: Ernestas Kulik <ekulik>

diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
index 967814509..6e3ba2ce0 100755
--- a/scripts/find-debuginfo.sh
+++ b/scripts/find-debuginfo.sh
@@ -412,6 +412,7 @@ do_file()
     case "$(file -bi "$f")" in
       application/x-sharedlib*) skip_mini=false ;;
       application/x-executable*) skip_mini=false ;;
+      application/x-pie-executable*) skip_mini=false ;;
     esac
     $skip_mini || add_minidebug "${debugfn}" "$f"
   fi

Comment 2 Jan Kratochvil 2019-07-18 12:16:37 UTC
It is already fixed now in Rawhide but not yet fixed in F-30:
FAIL: rpm-4.14.2.1-4.fc30.1
PASS: rpm-4.15.0-0.beta.1.fc31

Comment 3 Fedora Update System 2019-08-29 11:14:17 UTC
FEDORA-2019-c010b35eb6 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-c010b35eb6

Comment 4 Fedora Update System 2019-08-30 00:25:48 UTC
rpm-4.14.2.1-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-c010b35eb6

Comment 5 Fedora Update System 2019-09-14 01:54:17 UTC
rpm-4.14.2.1-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Mark Wielaard 2019-10-14 06:39:50 UTC
*** Bug 1761318 has been marked as a duplicate of this bug. ***


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