core(5) File Formats Manual core(5)
Name
core - format of memory image file
Syntax
#include <sys/param.h>
Description
When certain errors result in a terminated process, a file is created that contains the memory image of a terminated process. A process
can terminate for several reasons; however, the most common causes are memory violations, illegal instructions, bus errors, and user-gener-
ated quit signals. The reference page contains a list of the causes.
The is created in the working directory of the terminated process (normal access controls apply). The maximum size of a cannot exceed the
limit imposed by
The file consists of the u. area, whose size (in pages) is defined by the UPAGES manifest in the <sys/param.h> file. The u. area starts
with a user structure as given in <sys/user.h>. The remainder of the file consists first of the data pages and then the stack pages of the
process image. The amount of data space image in the file is given (in pages) by the variable u_dsize in the u. area. The amount of stack
image in the file is given (in pages) by the variable u_ssize in the u. area. The size of a page is given by the constant NBPG (also from
<sys/param.h>).
See Also
dbx(1), sigvec(2), setrlimit(2)
RISC core(5)