Under Linux, when a process crashes, a core dump will be created.
However, I want to create a core dump when the process doesn't crash, but looks buggy. A remote expert need the core dump to analyze.
Under Windows, we can create a dump file of a process through task manager, and after that, the process is still running.
Is it possible under Linux?
Core dump - Application use ,, Used to dump some Application core files, If was there any Application realted issues. crash dump -> This Used for both Application & System hardware & software failure.
When an application crashes, you can arrange for its state to be saved to disk, in a core dump file, which can indicate where the error occurred in the source code, the contents of memory at the time of the error, and the values of any variables and expressions set at the time.
Call gdb
, then
attach pid
gcore
where pid
is the process id of the process in question.
You can use gcore utility right from command line:
gcore [-o filename] pid
By the way, if you want to see only stack trace of the process, gstack
utility will do the job.
Both utilities come with gdb
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With