From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60220: 29.0.60; macOS 13.1 crash shortly after starting Emacs Date: Wed, 21 Dec 2022 14:22:06 +0200 Message-ID: <83bknxaqvl.fsf@gnu.org> References: <83y1r2axrn.fsf@gnu.org> <83r0wuat1n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27408"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60220@debbugs.gnu.org To: Aaron Jensen , Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 21 13:23:21 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 1p7y7z-0006v9-Sb for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Dec 2022 13:23:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7y7j-00060n-GW; Wed, 21 Dec 2022 07:23:03 -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 1p7y7i-00060V-5L for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 07:23:02 -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 1p7y7h-0005IK-S2 for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 07:23:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p7y7h-0006hb-My for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2022 07:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Dec 2022 12:23:01 +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.167162533825726 (code B ref 60220); Wed, 21 Dec 2022 12:23:01 +0000 Original-Received: (at 60220) by debbugs.gnu.org; 21 Dec 2022 12:22:18 +0000 Original-Received: from localhost ([127.0.0.1]:51531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7y6z-0006gs-P1 for submit@debbugs.gnu.org; Wed, 21 Dec 2022 07:22:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7y6x-0006gk-Ud for 60220@debbugs.gnu.org; Wed, 21 Dec 2022 07:22:17 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7y6s-0005FS-Is; Wed, 21 Dec 2022 07:22:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=rQR46MVp1JIGtrz6ZKOOS2y5wxCYP4L220Di99tA+cQ=; b=WeCRlcv4UPsWxNI3de8/ fRNMF4EqLijgHhjC6g8h00YCX9CN5Bd2DDJcRSdNAM86opXVit44+7RXYiXVVuSkV5nCvxX9UR4xN 0bVHzO0wuvmur/2PCAoDZerxJXX2r/hTPGg9PZjRWLqoNSpHGcMNStkdN3qJ6mOokGcstbYKX4txX ydhwRimSPPnnbPprki5eJHYObawc1Xe56NPYi6ZqbaZuZL43bz+V7xx3v1GirnaIvmnSno3HY6ShK yjK8hVeR/t9BuV4b6WzyIVkR0LAtcG2OBfOsk5R7CbMCGmiW8cCIWzdb1bcq5oG6DnBNrckb0youx nAJARjD8GUbWzQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7y6s-0008Jw-3h; Wed, 21 Dec 2022 07:22:10 -0500 In-Reply-To: (message from Aaron Jensen on Tue, 20 Dec 2022 22:47:46 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251589 Archived-At: > From: Aaron Jensen > Date: Tue, 20 Dec 2022 22:47:46 -0500 > Cc: 60220@debbugs.gnu.org > > > > Process 19414 exited with status = 14 (0x0000000e) Terminated due to signal 14 > > > > What is "signal 14" on macOS? > > This is all I could find: > > 14 SIGALRM terminate process real-time timer expired > > 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. 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. Once again, this might mean we are not cleaning up the process state before calling execvp. But that is just a speculation. > > 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. > > > > Or maybe the way we load the *.eln files causes this, triggered by > > 'execvp'? > > This is out of my depth. Mine as well. Gerd, any ideas or hints? > I did a tiny bit of digging and didn't find anything. Likewise. > > 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. > > 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. OK, thanks.