- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- analyzing core files using adb or wdb
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
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
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
тАО06-21-2004 05:35 PM
тАО06-21-2004 05:35 PM
Can anybody tell me how to analyze core files in HP-UX using adb or wdb??/Step by step procedure will be highly appreciated.
Thanks and Regards,
Amit Manna
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2004 05:44 PM
тАО06-21-2004 05:44 PM
Re: analyzing core files using adb or wdb
I have not done much of core analysis but at times stack trace helps.
gdb core
bt
HTH
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2004 06:05 PM
тАО06-21-2004 06:05 PM
Re: analyzing core files using adb or wdb
For core dump analysis, you can use
file core
and
what core,
If you want detailed analysis use wdb:
wdb program core
where program is the executable that failed.
You can download wdb from here:
http://hp.com/go/wdb
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2004 06:22 PM
тАО06-21-2004 06:22 PM
Solutionusing the file command will identify what application generated the core:
# file core
another basic guide to analyze core files is found in this HP doc:
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063236268
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2004 06:28 PM
тАО06-21-2004 06:28 PM
Re: analyzing core files using adb or wdb
Let's see about wdb core debugging,
Before debugging set the core size as
# get the core size using
ulimit -a (or) ulimit -c (or) ulimit
# set your limit
ulimit -c
unlimited to make the usage as unlimited
gdb
gdb> bt
it will show the cause for that core,
gdb> info signals
it will give the signal which effect the appliacation
gdb> where
it can also used to detect the location of core dumped.
Good guide here at
http://devrsrc1.external.hp.com/devresource/Tools/wdb/doc/guide/index.html
Regards,
Muthukumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2004 08:21 PM
тАО06-21-2004 08:21 PM
Re: analyzing core files using adb or wdb
You can use the absolute debugger (adb) is the analysis of core files.
adb
adb> c
It will give the back trace
adb> m
It will give the file mappings
To know more about core file use
core(4) man page and sys/core.h
Regards,
Muthukumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2004 01:03 AM
тАО06-22-2004 01:03 AM
Re: analyzing core files using adb or wdb
Check out these threads:
a) http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=20440
b) http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=86495
c) http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=40484
HTH.
Regards,
Sri Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2004 12:13 AM
тАО06-23-2004 12:13 AM
Re: analyzing core files using adb or wdb
1. complete, untruncated core file from binary
2. *exact* binary that caused core
3. *all* the shared libraries that match *exactly* at the time of the failure. You can collect them and put them in a directory and set the environment variable GDB_SHLIB_PATH to point to this directory prior to running GDB
It is often easiest to do an initial core analysis on the same machine where failure occurred.
Can use chatr or ldd to find out complete list of shared libs. gdb has info shared which will give you a list of shared libs loaded at time of failure.