tail head cat sleep
QR code linking to this page

Manual Pages  — GCORE


gcore – get core images of running process



gcore [-f] [-s] [-c core] [executable] pid


The gcore utility creates a core image of the specified process, suitable for use with gdb(1). By 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 " core.<pid>".
  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.
  Stop the process while gathering the core image, and resume it when done. This guarantees that the resulting core dump will be in a consistent state. The process is resumed even if it was already stopped. The same effect can be achieved manually with kill(1).


core.<pid> the core image


A gcore utility appeared in BSD 4.2 .


Because of the ptrace(2) usage gcore may not work with processes which are actively being investigated with truss(1) or gdb(1). Additionally, interruptable sleeps may exit with EINTR.

The gcore utility is not compatible with the original BSD 4.2 version.

GCORE (1) July 14, 2010

tail head cat sleep
QR code linking to this page

Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

"I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act."
— Ken Pier, Xerox PARC