LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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: 143Reputation: 143
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: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
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 Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,308

Rep: Reputation: 7702Reputation: 7702Reputation: 7702Reputation: 7702Reputation: 7702Reputation: 7702Reputation: 7702Reputation: 7702Reputation: 7702Reputation: 7702Reputation: 7702
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: 13,216
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
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 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

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: 143Reputation: 143
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:17 PM.

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
Open Source Consulting | Domain Registration