get core images of running process
gcore utility creates a core image of the specified
process, suitable for use with
default, the core is written to the file
“core.<pid>”. The process
identifier, pid, must be given on the command line.
The following options are available:
- Write the core file to the specified file instead of
- Dumps all available segments, excluding only malformed and undumpable
segments. Unlike the default invocation, this flag dumps mappings of
devices which may invalidate the state of device transactions or trigger
other unexpected behavior. As a result, this flag should only be used when
the behavior of the application and any devices it has mapped is fully
understood and any side effects can be controlled or tolerated.
- Use the
PT_COREDUMP kernel facility to write the core
dump, instead of reading the process' memory and constructing the dump
gcore itself. This is faster, and the dump
is written by the same kernel code that writes core dumps upon fatal
- the core image
gcore utility appeared in
Because of the
gcore may not work with processes which are
actively being investigated with
Additionally, interruptable sleeps may exit with EINTR.
gcore utility is not compatible with
the original 4.2BSD version.