From: Lars Ingebrigtsen <larsi@gnus.org>
To: Perry Smith <pedz@easesoftware.com>
Cc: Alan Third <alan@idiocy.org>, 54677@debbugs.gnu.org
Subject: bug#54677: Creating core files on macOS (Monterey)
Date: Sat, 02 Apr 2022 16:16:31 +0200 [thread overview]
Message-ID: <87fsmvk1ts.fsf@gnus.org> (raw)
In-Reply-To: <1DAC996D-BBF6-4E3E-A0FB-EBD05CC9AFD2@easesoftware.com> (Perry Smith's message of "Fri, 1 Apr 2022 18:54:56 -0500")
Perry Smith <pedz@easesoftware.com> 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
next prev parent reply other threads:[~2022-04-02 14:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-01 23:54 bug#54677: Creating core files on macOS (Monterey) Perry Smith
2022-04-02 14:16 ` Lars Ingebrigtsen [this message]
2022-04-02 16:21 ` Perry Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fsmvk1ts.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=54677@debbugs.gnu.org \
--cc=alan@idiocy.org \
--cc=pedz@easesoftware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).