file command on RHEL6 can't find executable name in Power/Linux core files
Issue
-
The core file format is slightly different (the executable name appears later in the dump), and "file" command doesn't know how to get to it.
-
on RHEL6:
$ file ./core_crashme.tsk_linux_x86
./core_crashme.tsk_linux_x86: ELF 32-bit LSB core file Intel 80386, version 1
(SYSV), SVR4-style, from './crashme.tsk'
$ file ./core_crashme.tsk_linux_ppc64
./core_crashme.tsk_linux_ppc64: ELF 32-bit MSB core file, PowerPC or cisco 4500,
version 1 (SYSV), SVR4-style
-
Note that lack of a ", from xxxx" field in the ppc64 output.
-
On RHEL5 it all works:
$ file ./core_crashme.tsk_linux_ppc64
./core_crashme.tsk_linux_ppc64: ELF 32-bit MSB core file, PowerPC or cisco 4500,
version 1 (SYSV), SVR4-style, from 'crashme.tsk'
Environment
- Red Hat Enterprise Linux 6.4
- file-5.04-15.el6.x86_64
- elfutils-0.152-1.el6.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.