1834337 Members
2215 Online
110066 Solutions
New Discussion

core dump

 
SOLVED
Go to solution
Lai Nee Shyang_1
Frequent Advisor

core dump

Hi,

I've a question. When a daemon (eg. nfsd) hang and if it does a core dump, will it be at located at "/" or somewhere else. If there is a directory at root "/core" will this prevent the core dump be written to "/" ?

Thanks
If it doesn't work, We'll make it work. If it works, We'll make it work better.
4 REPLIES 4
Printaporn_1
Esteemed Contributor
Solution

Re: core dump

Hi,
Normally core was writen to working directory.
enjoy any little thing in my life
Thierry Poels_1
Honored Contributor

Re: core dump

yep, creating a directory named core is an old trick to avoid core dumps.

beware if you automatically remove core dumps to look only for "files" named core
(find ... -name core -type f ....)

Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Andreas Voss
Honored Contributor

Re: core dump

Hi,

i've tested this on my test system.
Here is what i get:
If i do a kill -3 it writes a core file at /
With: file /core you get:
core file from 'nfsd' - received SIGQUIT
An yes if i do mkdir /core the nfsd would not write a core file at /

Regards
Lai Nee Shyang_1
Frequent Advisor

Re: core dump

Thanks guys, u guys r great.

Lai
If it doesn't work, We'll make it work. If it works, We'll make it work better.