1753964 Members
7173 Online
108811 Solutions
New Discussion юеВ

Re: Binary Core files

 
Shivkumar
Super Advisor

Binary Core files

Hi,

Is binary core file generated automatically or it can be generated by executing a command also ?

Thanks,
Shiv
7 REPLIES 7
RAC_1
Honored Contributor

Re: Binary Core files

A core file is generated when programs dumps/aborts. It also depends on how a program is coded. You can make a certain program to dump core by sending signal 3.

kill -3 "pid_of_program"
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: Binary Core files

Hi Shiv,

Either way it is possible. An application may crash at any time due incorrect coding, etc.. Also, you can create a core of running process by # kill -3

This should give you more information,
http://en.wikipedia.org/wiki/Core_dump

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Raj D.
Honored Contributor

Re: Binary Core files

Hi Shiv ,

core files generated automatically , whenever an application or process terminates abnormally.


You can check the detials of core file with # strings core | more

And investigate and can delete them to recover free space.



hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor
Shivkumar
Super Advisor

Re: Binary Core files

When we use $kill -3 pid of java process it gives java core dump and not binary core dump. I believe binary core dump and java core dump are 2 different things.

Please correct me if i have misunderstood this.

Regards,
Shiv
RAC_1
Honored Contributor

Re: Binary Core files

I think you are talking about java debug files and unix core files. Unix core files are binary files. To create java debug files, there must be a seperate procedure. java debug file and unix core dump are two different things.
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: Binary Core files

Hi Shiv,

Are you talking about core created by java VM or a java application created any core ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"