LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-14-2017, 02:40 AM   #1
shalabhsrivastava3@gmail
LQ Newbie
 
Registered: Jul 2017
Posts: 1

Rep: Reputation: Disabled
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
 
Old 07-14-2017, 04:00 AM   #2
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 142Reputation: 142
You need special software to read the core file specialized for your specific OS and version.
 
Old 07-14-2017, 04:37 AM   #3
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 552

Rep: Reputation: 271Reputation: 271Reputation: 271
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
 
Old 07-14-2017, 04:40 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,498

Rep: Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312Reputation: 4312
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
 
Old 07-14-2017, 04:45 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,606

Rep: Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802Reputation: 1802
Hi,

Quote:
Originally Posted by shalabhsrivastava3@gmail View Post
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
 
Old 07-14-2017, 06:40 AM   #6
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 19/ TC64
Posts: 5,345

Rep: Reputation: Disabled
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.
Old 07-15-2017, 06:07 PM   #7
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 142Reputation: 142
You can also use objdump on a core file and get a bunch of assembly language out of it, if that helps you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
find largest file recursively with human readable format size. arun natarajan Linux - Newbie 3 02-01-2017 12:21 AM
how to export squid access.log file in readable format? danialnaeem Linux - General 15 05-16-2014 03:52 AM
How to convert the core dump to a readable text file yangyang77 Linux - Newbie 2 11-12-2009 08:15 PM
top command result to a file in a readable format in linux rajeevp05 Linux - General 2 02-03-2009 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration