- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- # /usr/bin/file /var/opt/OV/tmp/core # does not sh...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2008 06:31 AM
02-21-2008 06:31 AM
On HP-UX 11.23, the file command does not show who dumped core:
# /usr/bin/file /var/opt/OV/tmp/core
/var/opt/OV/tmp/core: ELF-32 core file - IA64
on all other Un*x platforms (including HP-UX on PA-RISC) the file command shows me who dumped core
Is there another command or utility that does this job better?
Thanks! Christian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2008 02:25 AM
02-22-2008 02:25 AM
Re: # /usr/bin/file /var/opt/OV/tmp/core # does not show who dumped core
file(1) normally works. This core file could be corrupted or truncated (by ulimit -c?).
You could try elfdump:
$ elfdump -S -o core
The proper command is a debugger, gdb. You can download it from:
http://www.hp.com/go/wdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2008 04:15 AM
02-22-2008 04:15 AM
Re: # /usr/bin/file /var/opt/OV/tmp/core # does not show who dumped core
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2008 05:53 AM
02-22-2008 05:53 AM
Re: # /usr/bin/file /var/opt/OV/tmp/core # does not show who dumped core
Another suspicion might be that the process dumped core in such a way that file can not find a process name and gdb doesn't like the corefile:
gdb /var/opt/OV/tmp/core
HP gdb 5.4.0 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.4.0 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
.."/var/opt/OV/tmp/core": not in executable format: File format not recognized
In case someone has helpful comments on this that would be nice but I guess it's not very likely.
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2008 03:44 PM
02-22-2008 03:44 PM
SolutionYes, that's why I mentioned elfdump command above, it would tell you that. It's /usr/ccs/bin/elfdump.
>gdb doesn't like the corefile:
gdb /var/opt/OV/tmp/core
HP gdb 5.4.0
You should always be using the latest wdb, now 5.7.
>"/var/opt/OV/tmp/core": not in executable format: File format not recognized
Oops, you need to tell gdb you have a core file and no executable:
gdb -c core