From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 11 19:49:44 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CE962F9; Tue, 11 Feb 2014 19:49:44 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A83A519A0; Tue, 11 Feb 2014 19:49:44 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 9BF7BB981; Tue, 11 Feb 2014 14:49:43 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Subject: Re: core dump vs kern.ipc.shm_use_phys Date: Tue, 11 Feb 2014 13:21:02 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <52DFAC31.6030905@FreeBSD.org> In-Reply-To: <52DFAC31.6030905@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201402111321.02294.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 11 Feb 2014 14:49:43 -0500 (EST) Cc: Andriy Gapon , freebsd-arch@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Feb 2014 19:49:44 -0000 On Wednesday, January 22, 2014 6:32:01 am Andriy Gapon wrote: > > I seems that if kern.ipc.shm_use_phys is enabled then shared memory regions are > not included into a coredump. Seems that each_writable_segment() in > sys/kern/imgact_elf.c skips OBJT_PHYS objects. Hmm, that may be a feature. I often map large shared memory segments with MAP_NOCORE on purpose. Is it to tell if a given OBJT_PHYS object is a SYSV SHM object? (I assume it isn't.) -- John Baldwin