- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to analyze the core files created by appli...
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
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
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-13-2007 12:26 AM
тАО06-13-2007 12:26 AM
How to analyze the core files generated by applications? For example if CODA has crashed and customer wants us to analyze and provide the root cause of core file then how are we going to do that? I tried adb that didn't help. q4 is also useless as it can be used only for kernel crash dumps. any help highly appreciated
Thanks
Praveen
Solved! Go to Solution.
- Tags:
- coredump
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 02:04 AM
тАО06-13-2007 02:04 AM
Re: How to analyze the core files created by applications
the command will be
gdb -c
let us assume that /usr/bin/cp dumped a core and the core file is present in current dir then the command will be
"gdb -c core /usr/bin cp"
then you see the stack using bt command to see the function in which the code was executing. dissassemble will give you the assembly equivalent of the program. etc etc
One thing to note here is you will find is difficult to debug core files generated by release binaries(debug flag disabled while compiling) you will see Hex values in place of function names. you need to be an expert at debugging release binaries.
to make the task easier you should do a debug build of the application.
see man pages for gcc/cc/g++ and gdb for more information.
googling will also help a lot.
cheers
Srikrishan
- Tags:
- gdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 02:11 AM
тАО06-13-2007 02:11 AM
Re: How to analyze the core files created by applications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 02:20 AM
тАО06-13-2007 02:20 AM
Re: How to analyze the core files created by applications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 02:35 AM
тАО06-13-2007 02:35 AM
Re: How to analyze the core files created by applications
http://hpux.its.tudelft.nl/hppd/cgi-bin/search?package=on&description=on&term=gdb
Yes, you can still examine a stack trace using gdb; it's just much easier if it were compiled with -g because there is direct source to object code linkage in that case.
You might consider sending a version of your application compiled with -g to the customer and allowing the program to crash again. You would then have a core file that should be trivially easy to analyze.
Another option would be to have your customer start the application under tusc (or attach the application to tusc) and have them send the tusc output to you. That may well provide you with the data needed to understand the fundamental problem.
Still, the bad news is that if you have to ask about this process ... .
- Tags:
- tusc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 03:10 AM
тАО06-13-2007 03:10 AM
Re: How to analyze the core files created by applications
irregularly. Some times it is painful when customers ask for some thing which is difficult to deliver. Any thank you all for your help. Please let me know if you have any resources for further reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 06:05 PM
тАО06-13-2007 06:05 PM
Re: How to analyze the core files created by applications
(Is this PA or IPF? What language?)
One simple trick is to use gdb's "bt" command to get a stack trace:
$ gdb executable core
(gdb) bt
(gdb) q
Oh, the most important thing about core files is that they are sticky with the machine they are created. If you don't debug them there, you'll have lots of problems!!
To transport core files, you need to use the packcore and unpackcore commands.
Make sure your customer has the latest gdb, 5.6.
>Srikrishan: you will find is difficult to debug core files generated by release binaries
While this is true, you can still get some info, as long as the executable isn't stripped. You can get the function names. And on IPF, you can get source and line info.
>It is release binary and the core file is from the customer and he wants us to analyse the core file.)
I do this all of the time. How many points do you have? :-)
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
>Also will gdb work on HPUX? wdb is not installed on the system. Where can I get it?
>Clay: but you can also get gdb from:
You should really download it from HP for free:
http://www.hp.com/go/wdb
>Please let me know if you have any resources for further reference
I reviewed some debugging core file documents for WDB. They may be up on the above link. (I don't see it yet. I'll send a message to them to see if they have polished copy to give out.)
I do see:
Debugging Dynamic Memory Usage Errors Using HP WDB
- Tags:
- packcore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 07:39 PM - edited тАО09-24-2011 08:08 PM
тАО06-13-2007 07:39 PM - edited тАО09-24-2011 08:08 PM
SolutionDebugging Core Files Using HP WDB:
http://h21007.www2.hp.com/portal/download/files/unprot/wdb/wdb_6.2/Corefiles-updated.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2007 02:25 PM
тАО06-17-2007 02:25 PM
Re: How to analyze the core files created by applications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 12:51 AM
тАО08-08-2007 12:51 AM
Re: How to analyze the core files created by applications
Can you please let us know how useful the "Core file debugging" white-paper was to you ?
Thanks and regards,
Mithun
HP-WDB team