Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-14-2017, 02:40 AM
|
#1
|
LQ Newbie
Registered: Jul 2017
Posts: 1
Rep:
|
How can I get the core file into a readable format
Hello Friends,
Can you please tell me how to convert a core file to readable format?
Regards,
Shalabh
|
|
|
07-14-2017, 04:00 AM
|
#2
|
Member
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508
Rep:
|
You need special software to read the core file specialized for your specific OS and version.
|
|
|
07-14-2017, 04:37 AM
|
#3
|
Member
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567
|
Hi, and welcome to LQ,
I think the gdb command will be useful. gdb is the GNU debugger. You can read the man pages for it, and I think the following commands will be useful:
Code:
man gdb
gdb -c CORE_FILE
gdb PATH_TO_APPLICATION PATH_TO_CORE_FILE
|
|
|
07-14-2017, 04:40 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,308
|
you also need the original executable (binary) compiled in debug mode to be able to gather all of the available information (as it was told):
gdb binary corefile
|
|
|
07-14-2017, 04:45 AM
|
#5
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,216
|
Hi,
Quote:
Originally Posted by shalabhsrivastava3@gmail
Hello Friends,
Can you please tell me how to convert a core file to readable format?
Regards,
Shalabh
|
You can use gdb to read a core file
|
|
|
07-14-2017, 06:40 AM
|
#6
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
its not a good idea to have a member name that appears to be an email address as robots trawl the net, find yours and will send you spam.
You may like to report yourself to a moderator and seek help to change and hide your email address,
assuming its a real address.
ignore me if you like winding people up heh heh
|
|
1 members found this post helpful.
|
07-15-2017, 06:07 PM
|
#7
|
Member
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508
Rep:
|
You can also use objdump on a core file and get a bunch of assembly language out of it, if that helps you.
|
|
|
All times are GMT -5. The time now is 05:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|