Bug 165434

Summary: debugedit should canoncalize names in directory table (PATCH)
Product: [Fedora] Fedora Reporter: Roland McGrath <roland>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED UPSTREAM QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-25 15:21:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch fixing debugedit to canonicalize directory names in directory tables none

Description Roland McGrath 2005-08-09 10:16:29 UTC
Description of problem:

You can wind up with debuginfo rpms where the .debug data uses file names that
don't work to find the source files in the rpm.  For example, the directory
table in the DWARF info might say /usr/src/debug/foo-1.2.3/build/../src
when in fact /usr/src/debug/foo-1.2.3/build does not exist at all though
/usr/src/debug/foo-1.2.3/src does exist.

elfutils-0.112-1 (in dist-fc5) is an example of a package built with this
problem (elfutils-debuginfo-0.112-1), though later elfutils builds already in
dist-fc5 don't demonstrate this issue.

The cpio that find-debuginfo.sh does to copy files into /usr/src/debug
effectively canonicalizes the directory names, since a directory foo
is not created if it only appears in foo/../bar file names.  So, debugedit needs
to canonicalize the directory names in the DWARF information as well, to make
sure that they can be found in /usr/src/debug.

Version-Release number of selected component (if applicable):
4.4.2-3

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Roland McGrath 2005-08-09 10:16:29 UTC
Created attachment 117568 [details]
patch fixing debugedit to canonicalize directory names in directory tables

Comment 2 Jeff Johnson 2005-08-25 15:20:27 UTC
Added to rpm-4_4 cvs, should be in rpm-4.4.3-0.4 when built.