Avatar of ReetiJ
ReetiJFlag for Australia asked on

how to read a core file in unix. (the file name is "core")

How to read a core file in unix. It is not having any extension and it is not readbale.
Unix OS

Avatar of undefined
Last Comment
sunnycoder

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ozo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
sunnycoder

Core files are memory dumps that are examined using debugger ... Core files are generated typically at the time of crash and they are used for debugging process state at the time of crash
e.g.
gdb corefile executablefile
Tintin

Doing

file core

will tell you which process dumped core.

In Solaris, you can analyse a core file with

dbx
mdb
pstack

You won't have gdb on your system, unless you've installed the GNU debugger.
ASKER
ReetiJ

thanks. I am unable to use gdb. Is there any useful tip on how to use mdb ?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
SOLUTION
Tintin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
peter991

To get a quick glance at the file use:

#>strings core | more
ASKER
ReetiJ

deleting question
ASKER
ReetiJ

delete
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
sunnycoder

Canceling account is not a valid reason for self accept. What was the solution you reached?