From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#60220: 29.0.60; macOS 13.1 crash shortly after starting Emacs Date: Fri, 23 Dec 2022 06:33:40 +0100 Message-ID: <41885A5E-40E9-48CD-ABF8-C4C1618793DD@gmail.com> References: Mime-Version: 1.0 (1.0) 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="27116"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Paul Eggert , 60220@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 23 06:34:30 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 1p8ahS-0006rp-Fb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Dec 2022 06:34:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8ah2-0004WP-Qi; Fri, 23 Dec 2022 00:34:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8ah1-0004Vq-9w for bug-gnu-emacs@gnu.org; Fri, 23 Dec 2022 00:34:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p8ah1-0004h1-0K for bug-gnu-emacs@gnu.org; Fri, 23 Dec 2022 00:34:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p8ah0-0002jz-Ea for bug-gnu-emacs@gnu.org; Fri, 23 Dec 2022 00:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Dec 2022 05:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60220 X-GNU-PR-Package: emacs Original-Received: via spool by 60220-submit@debbugs.gnu.org id=B60220.167177364110529 (code B ref 60220); Fri, 23 Dec 2022 05:34:02 +0000 Original-Received: (at 60220) by debbugs.gnu.org; 23 Dec 2022 05:34:01 +0000 Original-Received: from localhost ([127.0.0.1]:36618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8agz-0002jl-Av for submit@debbugs.gnu.org; Fri, 23 Dec 2022 00:34:01 -0500 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:45588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8agx-0002je-ON for 60220@debbugs.gnu.org; Fri, 23 Dec 2022 00:34:00 -0500 Original-Received: by mail-wr1-f45.google.com with SMTP id h16so3623031wrz.12 for <60220@debbugs.gnu.org>; Thu, 22 Dec 2022 21:33:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=zvGWza04tx0apOCyKXkVFh54S/zrQ+LyWGzRqc0IHto=; b=okDXZrAJFew07K7WBxyvnIX8SEKHXUDvLsGGWmzbB/PEo6xbLwtjfuNjofZlhLmOMP yR2dyStdiidc7oKlxbO1WW0O7JlD0wX+Se+M07jrE8Om9FGr17OlTJJ9ykFMjVlRbKz1 RVWlFbY0jHoNxVx+tHmQb3yy5OauKoP9kkkilfaX3MfSfhASHAugANEzP8rk5QVpubZR IAKJmICK2HflchfKHC6gIeQF7aermD4hOaN2+ihcc3wqLDUn/159I0H5+MAva6loL675 Ax9H4rpg23PS3I/x7nlGNsYjJZXcl5EE8s3jtuop2PcHkOH2tNuMoMbvtWn4lpEIRIIZ SfZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zvGWza04tx0apOCyKXkVFh54S/zrQ+LyWGzRqc0IHto=; b=vR56um6D2IRBrHYNXTMN1c6gCCGPIEpMTOfO2+jl5YvgnalvhwhHUsZtb5MVZiMF/5 FSXsoCzT/8gEIqbvI1orsGwlztJGJz0AIKxNsZ5xgr/o0dxPV+y2W9CHFf5OfpKNqhyh XNLtXTZ5WLTtzl4bP69TRYEDRsgX/F8+It9IDD7CkvRGCaPLQ2UvVmXhZttAX7NizJ8D hSSNApveHXPnpt8ebkso6ffkFjvTEit9OLHNIPTSyBjmGSFYdjslsVshHCVZZEKaStgX MGuo+sg/5eqsCd6Cg4mmR/iqoa/8mLikZYJoomc4/luA94BvgEC2qzw+tYb/O16Mt5yO Qo9w== X-Gm-Message-State: AFqh2krkmtiJ3x9U0ay0hq3tDw1bmG5O4/BR5nqjc0rvXVP5O/te6vlq vAaRRHr5thcgbaiypTKQsug= X-Google-Smtp-Source: AMrXdXsB/f9PVTucEy6rcAnRZJKvT6w3CDCRWz62Ick4IE0++A8G9z9r5wvUN+4yIge6tJwOccMiTA== X-Received: by 2002:a5d:6b4f:0:b0:242:1ad2:15e1 with SMTP id x15-20020a5d6b4f000000b002421ad215e1mr4976107wrw.2.1671773632826; Thu, 22 Dec 2022 21:33:52 -0800 (PST) Original-Received: from smtpclient.apple (pd9e369bc.dip0.t-ipconnect.de. [217.227.105.188]) by smtp.gmail.com with ESMTPSA id j10-20020adff54a000000b002420d51e581sm2190347wrp.67.2022.12.22.21.33.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Dec 2022 21:33:51 -0800 (PST) In-Reply-To: X-Mailer: iPhone Mail (20C65) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251703 Archived-At: Can=E2=80=99t say anything useful with regard to these logs I=E2=80=99m afra= id.=20 Sent from my iPhone > On 23. Dec 2022, at 03:22, Aaron Jensen wrote: >=20 > =EF=BB=BFOn Thu, Dec 22, 2022 at 9:06 PM Paul Eggert w= rote: >>=20 >>> On 12/22/22 00:18, Eli Zaretskii wrote: >>> Paul, could you perhaps audit the code which implements restart-emacs, >>> and see if we need to make it safer, in particular wrt signals and >>> *.eln files loaded via dynlib. >>=20 >> I don't offhand see why anything would need to be done other than turn >> off timer signals to the execed process. Something like the attached >> patch, perhaps. Aaron, could you give it a try? >=20 > Thank you, this certainly changes things. I don't get the sig 14 > anymore in the debugger and it successfully restarts every time while > in the debugger. I will try using it for a while and see how that > goes. >=20 > I don't know if this is significant or not, but when I restart an > Emacs run from the terminal, or in the debugger, I see "Task policy > set failed: 4 ((os/kern) invalid argument)" printed to stderr. >=20 > (lldb) process launch > Process 13113 launched: 'src/emacs' (arm64) > Process 13113 stopped > * thread #8, stop reason =3D exec > frame #0: 0x0000000100934950 dyld`_dyld_start > dyld`: > -> 0x100934950 <+0>: mov x0, sp > 0x100934954 <+4>: and sp, x0, #0xfffffffffffffff0 > 0x100934958 <+8>: mov x29, #0x0 > 0x10093495c <+12>: mov x30, #0x0 > Target 0: (emacs) stopped. > (lldb) thread list > Process 13113 stopped > * thread #8: tid =3D 0x37d5ee, 0x0000000100934950 dyld`_dyld_start, stop > reason =3D exec > (lldb) continue > Process 13113 resuming > 2022-12-22 21:09:48.439039-0500 emacs[13113:3659246] [assertion] Error > acquiring assertion: "Specified target process does not exist" > UserInfo=3D{NSLocalizedFailureReason=3DSpecified target process does not > exist}> > 2022-12-22 21:09:48.439086-0500 emacs[13113:3659246] [process] Failed > to acquire AppNap adapter assertion with error Error > Domain=3DRBSAssertionErrorDomain Code=3D2 "Specified target process does > not exist" UserInfo=3D{NSLocalizedFailureReason=3DSpecified target process= > does not exist} > 2022-12-22 21:09:48.439102-0500 emacs[13113:3659246] Task policy set > failed: 4 ((os/kern) invalid argument)