150 lines
4.7 KiB
Groff
150 lines
4.7 KiB
Groff
.\" Copyright (c) 1980, 1991, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)core.5 8.3 (Berkeley) 12/11/93
|
|
.\" %FreeBSD: src/share/man/man5/core.5,v 1.16 2002/03/17 13:09:35 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.\"
|
|
.Dd January 9, 2002
|
|
.Dt CORE 5
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm core
|
|
.Nd ¥á¥â¥ê¥¤¥á¡¼¥¸¤Î¥Õ¥¡¥¤¥ë¥Õ¥©¡¼¥Þ¥Ã¥È
|
|
.Sh ½ñ¼°
|
|
.In sys/param.h
|
|
.Sh ²òÀâ
|
|
¥×¥í¥»¥¹¤ò°Û¾ï½ªÎ»¤µ¤»¤ë¾¯¿ô¤Î¥·¥°¥Ê¥ë¤Ï¡¢
|
|
¥×¥í¥»¥¹¤Î¥á¥â¥êÆâ¾õÂ֤εϿ¤ò¥Ç¥£¥¹¥¯¤Ë½ñ¤½Ð¤µ¤»¤ë¸ú²Ì¤â¤¢¤ê¤Þ¤¹¡£
|
|
¤³¤ì¤Ë¤è¤ê¡¢¥Ç¥Ð¥Ã¥¬¤ò»ÈÍѤ·¤Æ¸å¤Ç¸¡ºº¤ò¹Ô¤¦¤³¤È¤¬²Äǽ¤Ç¤¹¡£(
|
|
.Xr sigaction 2
|
|
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£)
|
|
¤³¤Î¥á¥â¥ê¥¤¥á¡¼¥¸¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ïºî¶È¥Ç¥£¥ì¥¯¥È¥ê¤Î
|
|
.Nm ¥×¥í¥°¥é¥à̾.core
|
|
¤È¤¤¤¦Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤Ë½ñ¤«¤ì¤Þ¤¹¡£
|
|
¤¿¤À¤·¡¢½ªÎ»¤·¤¿¥×¥í¥»¥¹¤¬¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë½ñ¤¤³¤ß¸¢¸Â¤ò»ý¤Á¡¢
|
|
ȯÀ¸¤·¤¿°Û¾ï¤¬¥·¥¹¥Æ¥à¤òÇ˲õ¤·¤Ê¤¤¤³¤È¤¬Á°Äó¤Ç¤¹¡£
|
|
(¥·¥¹¥Æ¥à¤¬Ç˲õ¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢
|
|
¥³¥¢¥Õ¥¡¥¤¥ë¤òÊݸ¤¹¤ë¤«¤É¤¦¤«¤Î·èÄê¤ÏÉÔÄê¤Ç¤¹¡£
|
|
.Xr savecore 8
|
|
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£)
|
|
.Pp
|
|
¥³¥¢¥Õ¥¡¥¤¥ë¤ÎºÇÂ祵¥¤¥º¤Ï
|
|
.Xr setrlimit 2
|
|
¤Ë¤è¤êÀ©¸Â¤µ¤ì¤Þ¤¹¡£
|
|
À©¸Â¤è¤ê¤âÂ礤¯¤Ê¤ë¥Õ¥¡¥¤¥ë¤ÏÀ¸À®¤µ¤ì¤Þ¤»¤ó¡£
|
|
¥Õ¥¡¥¤¥ë̾¤Ï
|
|
.Xr sysctl 8
|
|
ÊÑ¿ô
|
|
.Va kern.corefile
|
|
¤Ë¤ÆÀ©¸æ¤µ¤ì¤Þ¤¹¡£
|
|
¤³¤ÎÊÑ¿ô¤ÎÆâÍÆ¤¬¥³¥¢¥¤¥á¡¼¥¸¤ò³ÊǼ¤¹¤ë¥Õ¥¡¥¤¥ë¤Î̾Á°¤ò¼¨¤·¤Þ¤¹¡£
|
|
¤³¤Î¥Õ¥¡¥¤¥ë̾¤ÏÀäÂФǤâÁêÂФǤ⤫¤Þ¤¤¤Þ¤»¤ó
|
|
(¸å¼Ô¤Î¾ì¹ç¡¢¥³¥¢¤òÀ¸À®¤¹¤ë¥×¥í¥°¥é¥à¤Î¸½ºß¤Î¥Ç¥£¥ì¥¯¥È¥ê¤«¤é²ò·è¤µ¤ì¤Þ¤¹)¡£
|
|
¤³¤Î¥Õ¥¡¥¤¥ë̾¥Æ¥ó¥×¥ì¡¼¥ÈÃæ¤Î¥·¡¼¥±¥ó¥¹
|
|
.Em \&%N
|
|
¤Ï¥×¥í¥»¥¹Ì¾¤ÇÃÖ¤´¹¤¨¤é¤ì¡¢
|
|
.Em \&%P
|
|
¤Ï¥×¥í¥»¥¹¤Î PID ¤ÇÃÖ¤´¹¤¨¤é¤ì¡¢
|
|
.Em \&%U
|
|
¤Ï UID ¤ÇÃÖ¤´¹¤¨¤é¤ì¤Þ¤¹¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Î̾Á°¤Ï
|
|
.Em \&%N.core
|
|
¤Ç¤¢¤ê¡¢ÅÁÅýŪ¤Ê
|
|
.Fx
|
|
¤Î¿¶Éñ¤¤¤È¤Ê¤ê¤Þ¤¹¡£
|
|
.Pp
|
|
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¼Â¤Þ¤¿¤Ï¼Â¸ú¤Î¥æ¡¼¥¶¡¢¥°¥ë¡¼¥×¤¬Êѹ¹¤µ¤ì¤Æ¤¤¤ë
|
|
¥×¥í¥»¥¹¤¬¥³¥¢¥Õ¥¡¥¤¥ë¤òÀ¸À®¤·¤Þ¤»¤ó¡£
|
|
.\" +By default, a process that changes user or group credentials whether
|
|
.\" +real or effective will not create a corefile.
|
|
¤³¤Îưºî¤Ï
|
|
.Xr sysctl 8
|
|
¤Ç
|
|
.Va kern.sugid_coredump
|
|
¤ò 1 ¤Ë¤¹¤ë¤³¤È¤Ë¤è¤ê¥³¥¢¤òÀ¸À®¤¹¤ëÍѤËÊѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
|
|
.\" +This behaviour can be
|
|
.\" +changed to generate a core dump by setting the
|
|
.\" +.Xr sysctl 8
|
|
.\" +variable
|
|
.\" +.Va kern.sugid_coredump
|
|
.\" +to 1.
|
|
¥³¥¢¥Õ¥¡¥¤¥ë¤Ï¡¢(¥Ú¡¼¥¸¿ô¤Ç¤Î) Â礤µ¤¬
|
|
.Aq Pa sys/param.h
|
|
¥Õ¥¡¥¤¥ë¤Ç
|
|
.Dv UPAGES
|
|
¤ÈÄêµÁ¤µ¤ì¤Æ¤¤¤ë
|
|
.Fa u.
|
|
Îΰ褫¤é¤Ê¤ê¤Þ¤¹¡£
|
|
.Fa u.
|
|
Îΰè¤Ï
|
|
.Aq Pa sys/user.h
|
|
¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ë
|
|
.Fa user
|
|
¹½Â¤ÂΤ«¤é»Ï¤Þ¤ê¤Þ¤¹¡£
|
|
¥³¥¢¤Î»Ä¤ê¤ÎÉôʬ¤Ë¤Ï¡¢
|
|
¥Ç¡¼¥¿¥Ú¡¼¥¸¤Ë³¤¤¤Æ¥×¥í¥»¥¹¥¤¥á¡¼¥¸¤Î¥¹¥¿¥Ã¥¯¥Ú¡¼¥¸¤¬³ÊǼ¤µ¤ì¤Þ¤¹¡£
|
|
¥³¥¢¥Õ¥¡¥¤¥ëÃæ¤Î¥Ç¡¼¥¿¶õ´Ö¥¤¥á¡¼¥¸¤Î (¥Ú¡¼¥¸¿ô¤Ç¤Î) Â礤µ¤Ï¡¢
|
|
.Fa u.
|
|
Îΰè¤ÎÊÑ¿ô
|
|
.Fa u_dsize
|
|
¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹¡£
|
|
¥³¥¢¥Õ¥¡¥¤¥ëÃæ¤Î¥¹¥¿¥Ã¥¯¥¤¥á¡¼¥¸¤Î (¥Ú¡¼¥¸¿ô¤Ç¤Î) Â礤µ¤Ï¡¢
|
|
.Fa u.
|
|
Îΰè¤ÎÊÑ¿ô
|
|
.Fa u_ssize
|
|
¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹¡£
|
|
``¥Ú¡¼¥¸'' ¥µ¥¤¥º¤ÏÄê¿ô
|
|
.Dv PAGE_SIZE
|
|
¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹ (¤³¤ì¤â
|
|
.Aq Pa sys/param.h
|
|
¤«¤éÍ¿¤¨¤é¤ì¤Þ¤¹)¡£
|
|
.Sh »ÈÍÑÎã
|
|
Á´¥³¥¢¥¤¥á¡¼¥¸¤ò¡¢
|
|
.Pa /var/coredumps
|
|
°Ê²¼¤Î¥æ¡¼¥¶¤´¤È¤Î¥×¥é¥¤¥Ù¡¼¥ÈÎΰè¤Ë³ÊǼ¤¹¤ë¤¿¤á¤Ë¤Ï¡¢
|
|
¼¡¤Î¤è¤¦¤Ë
|
|
.Xr sysctl 8
|
|
¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Þ¤¹:
|
|
.Pp
|
|
.Dl sysctl kern.corefile="/var/coredumps/\&%U/\&%N.core"
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr gdb 1 ,
|
|
.Xr kgdb 1 ,
|
|
.Xr setrlimit 2 ,
|
|
.Xr sigaction 2 ,
|
|
.Xr sysctl 8
|
|
.Sh Îò»Ë
|
|
.Nm
|
|
¥Õ¥¡¥¤¥ë¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï
|
|
.At v6
|
|
¤ËÅо줷¤Þ¤·¤¿¡£
|