From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#60220: 29.0.60; macOS 13.1 crash shortly after starting Emacs Date: Tue, 20 Dec 2022 10:59:20 -0500 Message-ID: References: <83y1r2axrn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4354"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60220@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 20 17:00:17 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 1p7f2O-0000xP-RW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Dec 2022 17:00:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7f2C-0003x5-Oc; Tue, 20 Dec 2022 11:00: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 1p7f2B-0003wq-Hm for bug-gnu-emacs@gnu.org; Tue, 20 Dec 2022 11:00: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 1p7f2B-0007mO-7v for bug-gnu-emacs@gnu.org; Tue, 20 Dec 2022 11:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p7f2A-0006DQ-Gy for bug-gnu-emacs@gnu.org; Tue, 20 Dec 2022 11:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Dec 2022 16:00: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.167155197923859 (code B ref 60220); Tue, 20 Dec 2022 16:00:02 +0000 Original-Received: (at 60220) by debbugs.gnu.org; 20 Dec 2022 15:59:39 +0000 Original-Received: from localhost ([127.0.0.1]:45684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7f1n-0006Cl-HN for submit@debbugs.gnu.org; Tue, 20 Dec 2022 10:59:39 -0500 Original-Received: from mail-pl1-f182.google.com ([209.85.214.182]:37441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7f1l-0006Cd-Ic for 60220@debbugs.gnu.org; Tue, 20 Dec 2022 10:59:37 -0500 Original-Received: by mail-pl1-f182.google.com with SMTP id m4so12700013pls.4 for <60220@debbugs.gnu.org>; Tue, 20 Dec 2022 07:59:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UzF4lx7ljks3db3ukwwc24KpZV2kpYyPx74UQLK9VWw=; b=lpoLC4XiFNS+7bI0wyNuEEJuhkZbAR+8sHC2oq3hZvyRVdsd5zrnUx5AoOUMb2IRji XKNNzp8HjTobcbTOSoMJsaD05Vv/GwUWv+jx0DXrxk/Dg4UfBKWp8tZysrXKfMyPXQ2J u6Y33s97dMspg4x91iSbEZx8+G6bQQ7LmFK03JpisWuXvWIGO3Agzg1UwEgWUr0WZHz1 cPjQgT2Hw0PzZBu71OKEmgCCKZgB+AiHbsFk8c6bp0ZfT3q0kvfBu0Puao+Cy1i12pfu FhfJfOrNczhFMSDRSfklR6MjUKkuiIUh0ZCiSJHlBMHh06Tq5dCXpvW9hcIpCGL2hXeJ QsHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UzF4lx7ljks3db3ukwwc24KpZV2kpYyPx74UQLK9VWw=; b=dqrAznWM7KShw8+Ihm2sge1efMLwYHYJYkOGHcVCMmqgkTiJn9V+O98M9TylRyB3o0 FPHgBFjvPOgRSVTzUi2d+JQKSdkbCV53E1UZwUj8VqqSfS3bqcf1Z8x3AmwZa+yWGuHm wLfXNbsSj+NXXZg7T+jsxpBcaGqe/cehWj1MJpAbTKrtAVhYJkGNZNbQa3pxVOY4RW7l hu0/XQ/zkWGnMXKd6hPN5LZ0WftZlLSmzD8GCHgXSh104ig7etY7dS0I8K2/f5FKf6D7 21zvBKrZNEHUFnDyiWRD/sLP/etvc2D43Z0xAv9w9AIKpWyf3Nh/vw86oAjEAfDrH9zC jEWA== X-Gm-Message-State: AFqh2kqHiMcn6Qfo/bhKMVM76ifCGHqEd8Q3BryBUyAEodEydgE3VRU7 BB36sWJXjYUcSNIixjj0qv470wSNdUqJA6IG3kxI8oh7vpDpHA== X-Google-Smtp-Source: AMrXdXv0ZAid5Xq7j+U9u821OlcKPjifF7hK+Dx27fOdDWikZY+BmQYIqqAIJ37sLK9xQ4AnXhzO48jZ/JLau9Xn2rw= X-Received: by 2002:a17:90a:c208:b0:212:e24e:16b3 with SMTP id e8-20020a17090ac20800b00212e24e16b3mr1500470pjt.69.1671551971727; Tue, 20 Dec 2022 07:59:31 -0800 (PST) In-Reply-To: <83y1r2axrn.fsf@gnu.org> 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:251528 Archived-At: On Tue, Dec 20, 2022 at 10:40 AM Eli Zaretskii wrote: > > > From: Aaron Jensen > > Date: Tue, 20 Dec 2022 10:25:39 -0500 > > > > Here is another trace I just got during a restart. It's slightly > > different. This one seems to point to rng-loc at least as part of the > > trace. > > AFAIU, it says that Emacs was _loading_ rng-loc. That doesn't mean > the problem is in rng-loc's code. The fatal signal comes from the > maxOS implementation of dlopen, so I suspect that the way we restart > Emacs messes up some OS data structures regarding loaded shared > libraries or something. > > Note that the previous crash you posted also crashes inside dlopen. > > So I think it's safe to say that restarting Emacs makes loading of > *.eln files (and maybe share libraries in general) fragile and tending > to crash, for some reason. Maybe we should explicitly unload all the > *.eln files when we restart? Interesting. If I restart while launched from lldb, I get the below. It happens right away and it doesn't actually restart. This is not the behavior I see if I launch it normally or in xcode. I should note that occasionally when I restart Emacs it just quits and does not restart. I have to restart it manually. Perhaps this is all connected to the issue you're suggesting. (lldb) process launch Process 19414 launched: 'src/emacs' (arm64) Process 19414 stopped * thread #8, stop reason = exec frame #0: 0x0000000100b2c950 dyld`_dyld_start dyld`: -> 0x100b2c950 <+0>: mov x0, sp 0x100b2c954 <+4>: and sp, x0, #0xfffffffffffffff0 0x100b2c958 <+8>: mov x29, #0x0 0x100b2c95c <+12>: mov x30, #0x0 Target 0: (emacs) stopped. (lldb) thread list Process 19414 stopped * thread #8: tid = 0x3026c, 0x0000000100b2c950 dyld`_dyld_start, stop reason = exec (lldb) thread backtrace * thread #8, stop reason = exec * frame #0: 0x0000000100b2c950 dyld`_dyld_start (lldb) continue Process 19414 resuming Process 19414 exited with status = 14 (0x0000000e) Terminated due to signal 14