Bug 599695

Summary: file claims that some binaries are "from '%s'" with values that don't make sense
Product: [Fedora] Fedora Reporter: Nalin Dahyabhai <nalin>
Component: fileAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: file-5.04-6.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 692098 (view as bug list) Environment:
Last Closed: 2010-07-19 15:38:14 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:
Bug Depends On:    
Bug Blocks: 692098    
Attachments:
Description Flags
proposed patch none

Description Nalin Dahyabhai 2010-06-03 18:58:26 UTC
Description of problem:
When run against a couple of binaries on my system, 'file' seems to get confused by .note.gnu-build-id values.

Version-Release number of selected component (if applicable):
file-5.04-8.fc14.x86_64
coreutils-8.5-2.fc14.x86_64
krb5-workstation-1.8.1-6.fc14.x86_64

How reproducible:
Always

Steps to Reproduce:
1. file /usr/bin/kvno /bin/date
  
Actual results:
/usr/bin/kvno: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, from 'x.', stripped
/bin/date:     ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, from 'I', stripped

Expected results:
Correct 'from' values, if applicable, or for them to be omitted.

Additional info:
"eu-readelf -x .note.gnu.build-id /usr/bin/kvno /bin/date" says:

/usr/bin/kvno:


Hex dump of section [3] '.note.gnu.build-id', 36 bytes at offset 0x23c:
  0x00000000 04000000 14000000 03000000 474e5500 ............GNU.
  0x00000010 b9bc1df4 1cc237db f5c4d115 22e01fed ......7....."...
  0x00000020 782e00ef                            x...

/bin/date:


Hex dump of section [3] '.note.gnu.build-id', 36 bytes at offset 0x23c:
  0x00000000 04000000 14000000 03000000 474e5500 ............GNU.
  0x00000010 4d964811 f01ac163 9f0a87b1 8e568974 M.H....c.....V.t
  0x00000020 4900f75c                            I..\

Comment 1 Daniel Novotny 2010-06-07 14:45:43 UTC
hmmm, can be related to the patch to fix Bug #566305

Comment 2 Fedora Admin XMLRPC Client 2010-06-10 10:45:57 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Jan Kaluža 2010-07-19 09:00:10 UTC
Created attachment 432799 [details]
proposed patch

This patch fixes described problem for me.

Comment 4 Jan Kaluža 2010-07-19 15:38:14 UTC
Fixed in file-5.04-12.fc14.

Comment 5 Fedora Update System 2010-08-24 09:24:52 UTC
file-5.04-6.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/file-5.04-6.fc13

Comment 6 Fedora Update System 2010-08-31 06:25:18 UTC
file-5.04-6.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.