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: Wed, 21 Dec 2022 14:29:27 +0100 Message-ID: <2A22C718-57EA-4B8C-B931-5A3A87191DCD@gmail.com> References: <83bknxaqvl.fsf@gnu.org> 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="23452"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60220@debbugs.gnu.org, Aaron Jensen To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 21 14:42:02 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 1p7zM9-0005yv-Ml for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Dec 2022 14:42:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7zAb-00051L-0U; Wed, 21 Dec 2022 08:30:05 -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 1p7zAZ-00050J-8n for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 08:30: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 1p7zAY-00009o-NX for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 08:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p7zAY-0003iH-3A for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 08:30: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: Wed, 21 Dec 2022 13:30: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.167162938714240 (code B ref 60220); Wed, 21 Dec 2022 13:30:02 +0000 Original-Received: (at 60220) by debbugs.gnu.org; 21 Dec 2022 13:29:47 +0000 Original-Received: from localhost ([127.0.0.1]:51887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7zAJ-0003hc-0e for submit@debbugs.gnu.org; Wed, 21 Dec 2022 08:29:47 -0500 Original-Received: from mail-wm1-f43.google.com ([209.85.128.43]:35470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7zAH-0003hW-B5 for 60220@debbugs.gnu.org; Wed, 21 Dec 2022 08:29:45 -0500 Original-Received: by mail-wm1-f43.google.com with SMTP id r126-20020a1c4484000000b003d6b8e8e07fso1330572wma.0 for <60220@debbugs.gnu.org>; Wed, 21 Dec 2022 05:29:45 -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=9zGjUEgRRFjoMeHlQbSBTECsH76koN9pn8ZtcxBPrhU=; b=CatOe9vSxYgS03EFEOVMZSZKQAegvEVGFU6IRdHJA4LohXoj9Bsa8Rr+ALnnrLB8pl rn9HJSgqaDL9tIDtklhhvpiq+3pT8pXeshVnTcvr3hhZKt9yhJ+zMPGzLtqrXa6RVYKN wEd4UpZjvcKhwQdDna0UBXL4JcY/ELkMkvFcU3NVrBVfCxOjp5UVLTVc8ll2jwTocTfc vfX8+s6GUPy4ZwD6TGyNZZeHgTvhJJICEqG6CTCsJDSg9mD3H9R0jDdYH9KeQlmbAHoG tikJ75MkQ0D2QHQ0/wHmcp49tAr6CggvAiC2ChTTRPCfSMMSlr0o52BCo1oaOqJWKzd/ tefQ== 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=9zGjUEgRRFjoMeHlQbSBTECsH76koN9pn8ZtcxBPrhU=; b=Swgv1z1lSl/8+4DcFjKvwX1CHo79ASpyHO3wPATWSLc/uoj6V/5cKVeEDUI6szlcPr mjJhhPWX/qrljK0lKEmteOH0wmjqR3aqJ/5BLYBKXSyR/DDh5GtGbqRk/pedgAp1wLmZ lDAxiLswk9hGqQA9QWtAegH9giLFZiA3S3dKoEZ2Sr0jlGUV6IArLedpWepx7R+h3NNs njqLlxqCAcXeucy0utMkE7/in2Kapl4CQPxxR3dbZtWvKZjr+SHNwkI72p+/6aNm7CdV 9RECxuMuLzFULaMUQ/1gsK5s4vcxikmf+27p9X7B4TnMfQWn1ZM9KjyfbRc/HbA6mMg5 3Hrw== X-Gm-Message-State: AFqh2kpN6PkX8GFyDK3vEgz3VGewWaMC3nv6YuWun4D+mq3j63RAg7wg MTw7C0MrgxV08m5i6sjjGVE= X-Google-Smtp-Source: AMrXdXsGPd1u25N7z+zS04KZttJKRsgjZFKe2jtLPM7fNr1Z5nPKdL40lAGsgqm93hqnzwFSQMn/XA== X-Received: by 2002:a05:600c:4c21:b0:3d3:468e:cedf with SMTP id d33-20020a05600c4c2100b003d3468ecedfmr1688504wmp.16.1671629379425; Wed, 21 Dec 2022 05:29:39 -0800 (PST) Original-Received: from smtpclient.apple (pd9e369d0.dip0.t-ipconnect.de. [217.227.105.208]) by smtp.gmail.com with ESMTPSA id az17-20020a05600c601100b003cfa81e2eb4sm2298232wmb.38.2022.12.21.05.29.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Dec 2022 05:29:38 -0800 (PST) In-Reply-To: <83bknxaqvl.fsf@gnu.org> 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:251599 Archived-At: If I remember that correctly, installed signal handlers don=E2=80=99t surviv= e process replacement. The man pages for execve and sigaction should tell.=20= If that=E2=80=99s the case the new process has a default handler for SIGALRM= which terminates.=20 But please check the man pages if that=E2=80=99s true.=20 Sent from my iPhone > On 21. Dec 2022, at 13:22, Eli Zaretskii wrote: >=20 > =EF=BB=BF >>=20 >> From: Aaron Jensen >> Date: Tue, 20 Dec 2022 22:47:46 -0500 >> Cc: 60220@debbugs.gnu.org >>=20 >>>> Process 19414 exited with status =3D 14 (0x0000000e) Terminated due to s= ignal 14 >>>=20 >>> What is "signal 14" on macOS? >>=20 >> This is all I could find: >>=20 >> 14 SIGALRM terminate process real-time timer expired >>=20 >> I'm able to reproduce the above without native compilation as well. >> This particular thing only happens when in a lldb and doesn't affect >> me in practice. >=20 > The only place we use SIGALRM in Emacs is in interval timesr (see > atimer.c), which are used for stuff like hour-glass cursor and input > polling. >=20 > Once again, this might mean we are not cleaning up the process state > before calling execvp. But that is just a speculation. >=20 >>> Anyway, look at the code: we restart by calling execvp. You or >>> someone who knowns macOS internals should take a look at what that >>> means for shared libraries which were loaded by the program that calls >>> execvp -- what happens with those libraries in the execvp'ed process. >>> I'm guessing that they are not being unloaded and re-loaded by the new >>> process, or something to that effect. >>>=20 >>> Or maybe the way we load the *.eln files causes this, triggered by >>> 'execvp'? >>=20 >> This is out of my depth. >=20 > Mine as well. Gerd, any ideas or hints? >=20 >> I did a tiny bit of digging and didn't find anything. >=20 > Likewise. >=20 >>> Can you try running for a while Emacs built without native compilation >>> and restarting it? That could tell us whether the *.eln files are the >>> problem. >>=20 >> I wasn't able to reproduce it w/o native compilation. I'm going to try >> running w/ native compilation for a while *without* doing any restarts >> and see if I can get it to crash. I've seen crashes take an hour+ >> after a restart (though most happen w/in 30 seconds). I can't say >> definitively that all crashes have happened in a restarted process. >=20 > OK, thanks.