- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Core file
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
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
05-04-2005 01:08 AM
05-04-2005 01:08 AM
Core file
How? apart from
# file core
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2005 01:14 AM
05-04-2005 01:14 AM
Re: Core file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2005 01:21 AM
05-04-2005 01:21 AM
Re: Core file
adb and strings can give you a look at a core file, as can a stack trace.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2005 02:34 AM
05-04-2005 02:34 AM
Re: Core file
adb
$c
$q
-- if you are looking for a valid stack trace, then use a real debugger that is free from HP supporting C++ programs named:
WDB.
The problem using "adb" with the $c command, is that, the Stack Trace shows function names as mixed text (mangled). You can not tell a developer which exact member-function caused the core.
You might have to rebuild your executable using a -g option to see the real function-names when running WDB.
When downloading WDB, you will need two packages installed:
1) WDB (which is like GNU's gdb command), and
2) WDB-GUI (which is the Window/Gui package.)
http://www.hp.com/go/wdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2005 03:47 PM
05-04-2005 03:47 PM
Re: Core file
$ gdb
Its a fantastic tool to analyse core files. you can use wdb wrapper to get GUI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2005 09:50 PM
05-04-2005 09:50 PM
Re: Core file
So you will see messages from strings about libdld.sl in almost any core file, but that doesn't mean that libdld.sl has anything to do with the program dying. It just gets linked into a lot of stuff.
adb is useful at times to show the stack trace IF the program was compiled with debugging information mode.
Generally, my approach is to do the "file core" you mention and then talk to the person who wrote the program or load patches if that applies.
If it's a program you wrote, you can look at adb or gdb as possible debugging tools.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2005 10:52 PM
05-04-2005 10:52 PM
Re: Core file
file core
To get the libs used:
what core
To debug the stinker:
gdb -c core
To debug the stinker:
gdb ProgramName -c core
Also see HP doc - KNC071499001
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2005 12:04 AM
05-05-2005 12:04 AM
Re: Core file
gdb -q
gdb> bt
You will get stack trace by this.
You can also use a simple document as,
http://geocities.com/kmuthu_gct/core_analysis.html
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2005 01:04 AM
05-05-2005 01:04 AM
Re: Core file
echo \$r | adb
This will tell you where you are in the program and dump the registers.