|
|
HP-UX Reference > Ccore(4)HP-UX 11i Version 2: December 2007 Update |
|
NAMEcore — format of core image file DESCRIPTIONThe HP-UX system writes out a file containing a core image of a terminated process when certain signals are received (see signal(5) for the list of reasons). The most common causes are memory violations, illegal instructions, floating point exceptions, bus errors, and user-generated quit signals. The core image file is called core and is written in the process's working directory (provided it is allowed by normal access controls). A process with an effective user ID different from its real user ID does not produce a core image. The file contains sufficient information to determine what the process was doing at the time of its termination. Core file contents consist of objects that represent different segments of a process. Each object is preceded by a corehead data structure, and each corehead data structure describes the corresponding object following it. The structure is defined in <sys/core.h>, and includes the following members: int type; space_t space; caddr_t addr; size_t len; The space and addr members specify the virtual memory address in the process where the described object began. The len member is the length of the object in bytes. The following possible values for type are defined in <sys/core.h>:
Objects dumped in a core image file are not arranged in any particular order. Use corehead information to determine the type of the object that immediately follows it. |
|