From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#54677: Creating core files on macOS (Monterey) Date: Sat, 02 Apr 2022 16:16:31 +0200 Message-ID: <87fsmvk1ts.fsf@gnus.org> References: <1DAC996D-BBF6-4E3E-A0FB-EBD05CC9AFD2@easesoftware.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9777"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Alan Third , 54677@debbugs.gnu.org To: Perry Smith Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 02 16:17:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1naeYw-0002Jc-Lt for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Apr 2022 16:17:10 +0200 Original-Received: from localhost ([::1]:36944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naeYv-0000Mq-7E for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Apr 2022 10:17:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naeYo-0000Mg-L0 for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2022 10:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52471) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naeYo-0002rO-0A for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2022 10:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1naeYn-0001nD-OA for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2022 10:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Apr 2022 14:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54677 X-GNU-PR-Package: emacs Original-Received: via spool by 54677-submit@debbugs.gnu.org id=B54677.16489090036048 (code B ref 54677); Sat, 02 Apr 2022 14:17:01 +0000 Original-Received: (at 54677) by debbugs.gnu.org; 2 Apr 2022 14:16:43 +0000 Original-Received: from localhost ([127.0.0.1]:46368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naeYV-0001ZF-7b for submit@debbugs.gnu.org; Sat, 02 Apr 2022 10:16:43 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:49536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naeYT-0001Tf-EE for 54677@debbugs.gnu.org; Sat, 02 Apr 2022 10:16:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GctQ+b5UOPtFh7mmvJIPZN/tKYmFAOy+F4DrJkV+G0M=; b=rKX8/5/U9zLnH5b54HqcpCQIYj XWw6WCSTectVcDheUCoASknuDcVtecgVc6ho5Uf3DqSSB1fG3L2CXYZjDfwhW8GGEvhbgWkMk19C6 junasn+ScSKa3o1kedRSkc9QaJdtzsLb+gDEAR1A0d9GNfQryKdfiorFDEdFdiaBvfhU=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1naeYK-0006SZ-2m; Sat, 02 Apr 2022 16:16:34 +0200 X-Now-Playing: Pet Shop Boys's _Actually_: "It's a sin" In-Reply-To: <1DAC996D-BBF6-4E3E-A0FB-EBD05CC9AFD2@easesoftware.com> (Perry Smith's message of "Fri, 1 Apr 2022 18:54:56 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:229271 Archived-At: Perry Smith writes: > As I mentioned in an email on the developers list, making emacs > remains a drop dead easy process where > > ./configure ; make ; make install Note that you don't have to say "make install" -- you can just run it from src/emacs in the build directory (and that's usually a lot more convenient when building things yourself). > To get the Emacs.app to launch, the quarantine needs to be removed and > that is done with: > > sudo xattr -rds com.apple.quarantine nextstep/Emacs.app And then you don't have to do this, for instance. > To get an application to create a core file two particular things need > to be done. The resource limit for core files needs to be set to the > max. And an entitlement needs to be applied to the application. > > The first I accomplished with this code change: > > diff -r emacs-orig-27.2/src/emacs.c emacs-new-27.2/src/emacs.c > 1226c1226,1234 > < > --- >> #if defined (HAVE_SETRLIMIT) && defined (RLIMIT_CORE) && !defined (CYGWIN) >> if (getrlimit (RLIMIT_CORE, &rlim) == 0 >> && 0 <= rlim.rlim_cur && rlim.rlim_cur <= rlim.rlim_max) >> { >> rlim.rlim_cur = rlim.rlim_max; >> setrlimit (RLIMIT_CORE, &rlim); /* Error??? */ >> } >> #endif /* HAVE_SETRLIMIT and RLIMIT_CORE and not CYGWIN */ Is this necessary when you're not running installed? I've added Alan to the CCs; perhaps he has some comments. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no