core.5 (98e0ffaefb0f241cda3a72395d3be04192ae0d47) | core.5 (14bdbaf2e40a827e84f6c2fe27b1f8229767f03c) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 14 unchanged lines hidden (view full) --- 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" @(#)core.5 8.3 (Berkeley) 12/11/93 29.\" $FreeBSD$ 30.\" | 1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 14 unchanged lines hidden (view full) --- 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" @(#)core.5 8.3 (Berkeley) 12/11/93 29.\" $FreeBSD$ 30.\" |
31.Dd March 8, 2015 | 31.Dd September 2, 2015 |
32.Dt CORE 5 33.Os 34.Sh NAME 35.Nm core 36.Nd memory image file format 37.Sh SYNOPSIS 38.In sys/param.h 39.Sh DESCRIPTION --- 75 unchanged lines hidden (view full) --- 115Gzip compression level. 116Defaults to 6. 117.It Em kern.compress_user_cores 118Actually compress user cores. 119Compressed core files will have a suffix of 120.Ql .gz 121appended to them. 122.El | 32.Dt CORE 5 33.Os 34.Sh NAME 35.Nm core 36.Nd memory image file format 37.Sh SYNOPSIS 38.In sys/param.h 39.Sh DESCRIPTION --- 75 unchanged lines hidden (view full) --- 115Gzip compression level. 116Defaults to 6. 117.It Em kern.compress_user_cores 118Actually compress user cores. 119Compressed core files will have a suffix of 120.Ql .gz 121appended to them. 122.El |
123.Sh NOTES 124Corefiles are written with open file descriptor information as an ELF note. 125By default, file paths are packed to only use as much space as needed. 126However, file paths can change at any time, including during core dump, 127and this can result in truncated file descriptor data. 128.Pp 129All file descriptor information can be preserved by disabling packing. 130This potentially wastes up to PATH_MAX bytes per open fd. 131Packing is disabled with 132.Dl sysctl kern.coredump_pack_fileinfo=0 . |
|
123.Sh EXAMPLES 124In order to store all core images in per-user private areas under 125.Pa /var/coredumps , 126the following 127.Xr sysctl 8 128command can be used: 129.Pp 130.Dl sysctl kern.corefile=/var/coredumps/\&%U/\&%N.core 131.Sh SEE ALSO 132.Xr gdb 1 , 133.Xr kgdb 1 , 134.Xr setrlimit 2 , 135.Xr sigaction 2 , 136.Xr sysctl 8 137.Sh HISTORY 138A 139.Nm 140file format appeared in 141.At v6 . | 133.Sh EXAMPLES 134In order to store all core images in per-user private areas under 135.Pa /var/coredumps , 136the following 137.Xr sysctl 8 138command can be used: 139.Pp 140.Dl sysctl kern.corefile=/var/coredumps/\&%U/\&%N.core 141.Sh SEE ALSO 142.Xr gdb 1 , 143.Xr kgdb 1 , 144.Xr setrlimit 2 , 145.Xr sigaction 2 , 146.Xr sysctl 8 147.Sh HISTORY 148A 149.Nm 150file format appeared in 151.At v6 . |