1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
|
.\" Copyright (c) 2006 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
.\" Translated 2006-04-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\" Updated 2007-01-05, Akihiro MOTOKI, catch up to LDP v2.43
.\" Updated 2007-09-03, Akihiro MOTOKI, catch up to LDP v2.64
.\"
.TH CORE 5 2006-04-03 "Linux" "Linux Programmer's Manual"
.SH ̾
core \- ץե
.SH
ΥʥΥǥեȤΥϡ
ץλ (terminate)
.I "ץե (core dump file)"
뤳ȤǤ롣ץեϡǥ
λΥץΥꥤƤȤեǤ롣
ɤΥʥȤ˥ץפ뤫ΥꥹȤ
.BR signal (7)
˽Ƥ롣
ץϥեȡ
.B RLIMIT_CORE
ꤹ뤳Ȥǡ֥סץʥݤ
ץեΥ˾¤ݤȤǤ롣ܺ٤
.BR getrlimit (2)
ȡ
ץե뤬ʤĤ:
.IP * 3
ץեĤʤ
(ǥեȤǤϡե
.I core
Ȥ̾ǡȡǥ쥯ȥ롣
̿̾§ξܺ٤ϲ)
ե褦Ȥǥ쥯ȥ꤬߲ǽǤʤ硢
⤷Ʊ̾Υե뤬¸ߤΥե뤬߲ǽǤ
̾ΥեǤʤ (㤨Сǥ쥯ȥ䥷ܥå)
եϼԤ롣
.IP *
פ˻ȤȤΤƱ̾ (߲ǽʡ̾) ե뤬
Ǥ¸ߤΥեФϡɥ 2İʾ夢硣
.IP *
ץե褦Ȥե륷ƥबեǤ뤫
inode ƻѤƤ뤫ɤ߹ѤǥޥȤƤ硣
ޤϡΥ桼Υǥ̤Υե륷ƥ
(quota) ãƤ롣
.IP *
ץե褦Ȥǥ쥯ȥ꤬¸ߤʤ硣
.IP *
ץΥ
.B RLIMIT_CORE
.B RLIMIT_FSIZE
0 ꤵƤ
.RB ( getrlimit (2)
)
.IP *
ץ¹ԤХʥեɤ߽ФĤͭˤʤäƤʤ硣
.IP *
ץ¹ԤƤ set-user-ID (set-group-ID) ץνͭԤ
桼 (롼) ץμ UID ( GID) Ȱۤʤ
(â
.BR prctl (2)
.B PR_SET_DUMPABLE
ȡ
.BR proc (5)
.I /proc/sys/fs/suid_dumpable
ե⻲ȤΤ)
.SS ץե̾
.\" motoki XXX ƱƤʣƽƤ롣
ǥեȤǤϡץե̾
.I core
Ȥʤ뤬ץե̾Τ˻Ȥƥץ졼Ȥ
.I /proc/sys/kernel/core_pattern
ե뤳Ȥǡե̾ѹ뤳ȤǤ
.RI ( /proc/sys/kernel/core_pattern
Linux 2.6 2.4.21 ʹߤѤǤ)
ƥץ졼Ȥˤ % ؼ (specifier) 뤳ȤǤ롣
ϥե뤬ݤˡʲ֤ͤ롣
.nf
%% 1 Ĥ % ʸ
%p פ줿ץΥץ ID (PID)
%u פ줿ץμ¥桼 ID (real UID)
%g פ줿ץμ¥롼 ID (real GID)
%s פʥֹ
%t (1970 ǯ 1 1 0:00 ÿ)
%h ۥ̾ (\fBuname\fP(2) ֤ 'nodename' Ʊ)
%e ¹ԥե̾
.fi
ƥץ졼Ȥ 1 Ĥ % 硢
% ϥե̾ˤϴޤʤޤ
ʤ % ʸȤ߹碌äƱͤǤ롣
ƥץ졼Ȥˤ¾ʸϡ
ե̾ȤƤΤޤȤ롣
ƥץ졼Ȥˤ '/' ʸ뤳ȤǤ
ǥ쥯ȥ̾ζڤʸȲᤵ롣
̤Ȥ륳ե̾κ祵 64 ХȤǤ롣
ΥեΥǥեͤ "core" Ǥ롣
ΤΤȤθߴΤᡢ
.I /proc/sys/kernel/core_pattern
"%p" ޤޤ줺
.I /proc/sys/kernel/core_uses_pid
() 0 Ǥʤϡ.PID ե̾ɲä롣
С 2.4 ʹߤ Linux Ǥ
ץե̾椹븶ŪˡƤ롣
.I /proc/sys/kernel/core_uses_pid
ե 0 Ƥ硢ץեñ
.I core
Ȥ̾ˤʤ롣Υե 0 ʳͤƤ硢
ץե
.I core.PID
Ȥ̾ˤʤꡢե̾˥ץ ID ޤޤ롣
.SH
.BR gdb (1)
.I gcore
ޥɤѤȡ¹ΥץΥפǤ롣
ޥåɥץ
(Τˤϡ
.BR clone (2)
.B CLONE_VM
줿̥ץȥͭƤץ)
פ硢
ե̾˥ץ ID ɬղä롣
.I /proc/sys/kernel/core_pattern
%p ˤꥳե̾Τɤ¾ξ˥ץ ID
Ǥ˴ޤޤƤϡץ ID ղäʤ
(εǽޤΩĤΤ LinuxThreads ѤƤǤ롣
LinuxThreads ǤϡץθġΥåɤϰۤʤץ ID
ġ)
.\" Always including the PID in the name of the core file made
.\" sense for LinuxThreads, where each thread had a unique PID,
.\" but doesn't seem to serve any purpose with NPTL, where all the
.\" threads in a process share the same PID (as POSIX.1 requires).
.\" Probably the behavior is maintained so that applications using
.\" LinuxThreads continue appending the PID (the kernel has no easy
.\" way of telling which threading implementation the userspace
.\" application is using). -- mtk, April 2006
.SH Ϣ
.BR gdb (1),
.BR getrlimit (2),
.BR prctl (2),
.BR sigaction (2),
.BR elf (5),
.BR proc (5),
.BR pthreads (7),
.BR signal (7)
|