From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.bugs Subject: bug#54677: Creating core files on macOS (Monterey) Date: Sat, 2 Apr 2022 11:21:45 -0500 Message-ID: <789AF46F-ED6B-4D29-9699-A5B97206CECA@easesoftware.com> References: <1DAC996D-BBF6-4E3E-A0FB-EBD05CC9AFD2@easesoftware.com> <87fsmvk1ts.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22366"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Third , 54677@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 02 20:09:27 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 1naiBh-0005cJ-VZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Apr 2022 20:09:26 +0200 Original-Received: from localhost ([::1]:45796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naiBg-0000Um-H4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Apr 2022 14:09:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naiBL-00006H-2s for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2022 14:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naiBK-0002Yj-7L for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2022 14:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1naiBK-000481-0z for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2022 14:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Perry Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Apr 2022 18:09: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.164892292015823 (code B ref 54677); Sat, 02 Apr 2022 18:09:01 +0000 Original-Received: (at 54677) by debbugs.gnu.org; 2 Apr 2022 18:08:40 +0000 Original-Received: from localhost ([127.0.0.1]:46825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naiAt-000474-Rl for submit@debbugs.gnu.org; Sat, 02 Apr 2022 14:08:39 -0400 Original-Received: from bee.birch.relay.mailchannels.net ([23.83.209.14]:16704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nagVa-0001QM-Pg for 54677@debbugs.gnu.org; Sat, 02 Apr 2022 12:21:51 -0400 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 9915C8E0BB7; Sat, 2 Apr 2022 16:21:49 +0000 (UTC) Original-Received: from mi3-ss4.a2hosting.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id 52C2B8E0A24; Sat, 2 Apr 2022 16:21:47 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1648916508; a=rsa-sha256; cv=none; b=JWoCBKp9jicpDeeTXxS5q4TOhLL+LCkqp0t2/sTsW4f7dotcSO4/nw/+QiF44NLOPYzJ6y lyDSCi5GUXdMne90dnNeRgngh9xo4SW5vzNze5sqVSdD6oYeULovHL9sgs+UFVvQzrdGu7 fIevsNWI/Hx/Cnqo3FW/abe7Z7BC0HPQHowTekxMiyXuIIsFqQhZTN/hvBhk2/Vtzu6mmO oQM9WXr3codcr5HWj1qlKOuTlPYf9FuYHZth0okBDYaO49NAeYpJJTfnREgzYf2PCuy3sM XRiD1/vlbQINV3DoCcoLPx5bEc45/z2Zi1FF7fsSFkosDWkNZmwYxtKBOzvfGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1648916508; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Jtg+LZNEsCaBbNJcATABUPqe4wmozm5qSeNVpMGCs9Q=; b=eMi8wTyWs74A7BC6pHhNUJi+YviIz8PEHiom98Wsh81EedKbxu3kxemaxzyRVuezK4vkan /iCVG88ztMY3DJQbJ5V44muNBODNaydEh/TuJs6t6HywqgdEKOPyKFiwtRkRoZ2HZLawao WCguQrv41R1ArM6a0D2V90EkTOOpDwXVFJZOuuh0c8WiuvsUnNCZ5Z/HEMslz3sQ87Wnu9 fauviIKqRA6jiAjixbPYUacaiJkxIvIEE4+ONz1XJf2IxfBQJ1pZZwvgis/4HgG+gwfOdd eGQ9fcubAjJ+2a7hlRLxf4YJ+VezTFXE1JUbs7kTSfj6TAPi734kBHZa1JLcYg== ARC-Authentication-Results: i=1; rspamd-f76767c84-zwsf6; auth=pass smtp.auth=a2hosting smtp.mailfrom=pedz@easesoftware.com X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from mi3-ss4.a2hosting.com (mi3-ss4.a2hosting.com [68.66.200.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.125.123.15 (trex/6.7.1); Sat, 02 Apr 2022 16:21:49 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Spot-Attack: 7b8e007f32fc47f4_1648916509183_3952248878 X-MC-Loop-Signature: 1648916509183:1655621942 X-MC-Ingress-Time: 1648916509182 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=easesoftware.com; s=default; h=To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Sender:Reply-To: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=Jtg+LZNEsCaBbNJcATABUPqe4wmozm5qSeNVpMGCs9Q=; b=bz8/dR6lks5CANDVbuL360w7Di b2nDuWHo8wt56mTqPjFmPCrz0egNGrJdz5HrxkcdXbYBMkFIcc7E7NVwqrcu5lnlb1JkWTjF6v89N 9CRk5cLu2qYLk5V6x15fQlTo4OypBdgFMgbV40gQ81OT5Qr/CHzTgsDXSBYbQnNAfLU+mfuC/W9Hq rXFdfQVg/whndquKMpxRufdPQPoMBby13BI8/mD/x07oB3HgfKKrhNYe3uuArX4Qi1Bbsfcbs5Okz YGN8YQmwuWedGuO7zwhWPPImaJGi5g6gCa5QLVdMQafWzGV3HpNIViSVZB5Ogd3YDGCc0oxt3r9r3 BnYIZpfA==; Original-Received: from cpe-70-94-128-193.satx.res.rr.com ([70.94.128.193]:51731 helo=smtpclient.apple) by mi3-ss4.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nagVW-0005uc-Df; Sat, 02 Apr 2022 12:21:46 -0400 In-Reply-To: <87fsmvk1ts.fsf@gnus.org> X-Mailer: Apple Mail (2.3696.80.82.1.1) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com X-Mailman-Approved-At: Sat, 02 Apr 2022 14:08:35 -0400 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:229300 Archived-At: > On Apr 2, 2022, at 09:16, Lars Ingebrigtsen wrote: >=20 > Perry Smith writes: >=20 >> As I mentioned in an email on the developers list, making emacs >> remains a drop dead easy process where >>=20 >> ./configure ; make ; make install >=20 > 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). Well sorta but not really. I can say command-space Emacs and Finder = will find and launch Emacs if it is an application that is in = /Applications or your local ~/Applications. If I have things set up right, I can double click foo.txt will launch = Emacs with it editing foo.txt Also, generally, my core dumps come unexpectedly. That is the reason = for this whole endeavor. It isn=E2=80=99t that I=E2=80=99m = =E2=80=9Cworking=E2=80=9D on Emacs but using it and it goes Boom=E2=80=A6 = I=E2=80=99d like a core file. >=20 >> To get the Emacs.app to launch, the quarantine needs to be removed = and >> that is done with: >>=20 >> sudo xattr -rds com.apple.quarantine nextstep/Emacs.app >=20 > And then you don't have to do this, for instance. >=20 >> 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. >>=20 >> The first I accomplished with this code change: >>=20 >> diff -r emacs-orig-27.2/src/emacs.c emacs-new-27.2/src/emacs.c >> 1226c1226,1234 >> <=20 >> --- >>> #if defined (HAVE_SETRLIMIT) && defined (RLIMIT_CORE) && !defined = (CYGWIN) >>> if (getrlimit (RLIMIT_CORE, &rlim) =3D=3D 0 >>> && 0 <=3D rlim.rlim_cur && rlim.rlim_cur <=3D rlim.rlim_max) >>> { >>> rlim.rlim_cur =3D rlim.rlim_max; >>> setrlimit (RLIMIT_CORE, &rlim); /* Error??? */ >>> } =20 >>> #endif /* HAVE_SETRLIMIT and RLIMIT_CORE and not CYGWIN */ >=20 > Is this necessary when you're not running installed? If you do =E2=80=9Culimit -c unlimited=E2=80=9D from the shell before = running src/emacs, then no, you don=E2=80=99t need to do this step. = But, somewhere somehow, the limit on core files needs to be raised or = you will not get a core file. >=20 > I've added Alan to the CCs; perhaps he has some comments. >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no