From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#45541: 28.0.50; Frequent crashes on ARM macOS Date: Wed, 30 Dec 2020 15:53:01 +0100 Message-ID: References: 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="40297"; mail-complaints-to="usenet@ciao.gmane.io" To: Alan Third , Philipp Stephani , 45541@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 30 15:54:11 2020 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 1kucrb-000ANE-E9 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 15:54:11 +0100 Original-Received: from localhost ([::1]:52906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kucra-0007NB-Fr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 09:54:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kucrS-0007MS-As for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 09:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37473) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kucrS-0003IQ-2Q for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 09:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kucrS-0004zX-0r for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 09:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Dec 2020 14:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45541 X-GNU-PR-Package: emacs Original-Received: via spool by 45541-submit@debbugs.gnu.org id=B45541.160934000119064 (code B ref 45541); Wed, 30 Dec 2020 14:54:01 +0000 Original-Received: (at 45541) by debbugs.gnu.org; 30 Dec 2020 14:53:21 +0000 Original-Received: from localhost ([127.0.0.1]:48995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kucqn-0004xQ-7R for submit@debbugs.gnu.org; Wed, 30 Dec 2020 09:53:21 -0500 Original-Received: from mail-oo1-f41.google.com ([209.85.161.41]:39002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kucqk-0004wn-Gx for 45541@debbugs.gnu.org; Wed, 30 Dec 2020 09:53:19 -0500 Original-Received: by mail-oo1-f41.google.com with SMTP id k9so3731498oop.6 for <45541@debbugs.gnu.org>; Wed, 30 Dec 2020 06:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=S7smEyGRbXOkjVuhYxynlovxymMtuSHNcFITY21WjkM=; b=QQVOnExP1pdY2Dt5+6gGOUk7hU3mAZuSemO4tPLPGwSkSSXH5WPJtopxPFpjvJexJ8 1ZpzY5sV+AwkuGxbm6gFxulyU4Do85DMp8yBTCaYHfhCv4Zt6/EvIBwzzF0dBlkQbnj2 0rhHsr1n2rXaktqJCJj10xmejZmfJuWaJOw5tN3TEPLaNiMh6ok3QHsGcPTJ/9gHEe5t bMGfqt6rJGTA4vIVpa77eoH7fRTOV+HZcB9GqFzILW6vjn+4w+eXJ1g2Pi8gCuobippg KVerSEYkTEPH+MiCEGJic+7LCe6KyrTLgVFOXelr2eJCVjZBjLadeG0oXuxYS1aLZyGc Y3vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=S7smEyGRbXOkjVuhYxynlovxymMtuSHNcFITY21WjkM=; b=Pibml79HQqFfnyh9kXB6UtPR+QcUTFVNU2duLeQySjv6IDmGaQLQKiquqVwN9Bbmfl 6KzkAF6cK/e+wJh16M06XJOJQwd54JzeRBIvnPdyn8jfXERovbWyedWTwHk9skHkLI5j G6VfXaihmJNniW7aFKhjIW4hWqL+cPuh4rTFoCNt40KZHYHXtR/h8GMEthUcbpXFfX/c N4gTi50ogCt0TEJ41M2NMugcj1I1S3Abq8O8mEjI8r3GXYPSo8Yqin+QenSC7eVN87Ut hEqzqGX5ea7r86kjIBg4UA6rlWyEn0jJfaNqYFriXfvfvUds0e73AthkNvzGuAGMiW0S PuOw== X-Gm-Message-State: AOAM530Z82KYgqX8EX84Z624r8bGWRp/h3hlPVWGoRREF6KX4n1o4FTU OQ+Y8ouyVJFgMnT3hXFkvX74jNnV5yLJ5/lRgaI= X-Google-Smtp-Source: ABdhPJyKmNW9i3tjYyTYHbY+bTiBQYVGFbY+FsgItX/CycrJfV43qKDFoYPnhj7kWNmoFGUiD/eM6QYs/XLnw73Hhg0= X-Received: by 2002:a4a:97a3:: with SMTP id w32mr36632767ooi.81.1609339992864; Wed, 30 Dec 2020 06:53:12 -0800 (PST) In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:197033 Archived-At: Am Mi., 30. Dez. 2020 um 15:49 Uhr schrieb Philipp Stephani : > > Am Mi., 30. Dez. 2020 um 15:42 Uhr schrieb Philipp Stephani > : > > > > Am Mi., 30. Dez. 2020 um 15:05 Uhr schrieb Alan Third : > > > > > > On Wed, Dec 30, 2020 at 02:01:18PM +0100, Philipp Stephani wrote: > > > > Am Mi., 30. Dez. 2020 um 01:10 Uhr schrieb Alan Third : > > > > > > > > > > On Tue, Dec 29, 2020 at 11:32:43PM +0100, Philipp wrote: > > > > > > > > > > > > With an Emacs built from the emacs-27 branch I get frequent crashes on > > > > > > ARM64 macOS (Big Sur). I haven't managed to produce an Elisp stacktrace > > > > > > yet, but here's the crash report: > > > > > > > > > > > Looks like a crash in ns_mouse_position. > > > > > > > > > > Can you check that the build includes this? > > > > > > > > > > 6aa9fe3e1b4052b2acde86404a90e35893ebfa00? > > > > > Fix crash in ns_mouse_position (bug#44313) > > > > > > > > Yes, according to "git branch --contains" the commit is present. The > > > > exception report makes me think that NSApp is null or invalid, but how > > > > should that be possible? > > > > > > I have no idea... What's happening when the crash occurs? I take it > > > the mouse is being moved, but are frames opening and closing or > > > anything? > > > > I'm now able to reproduce this consistently. It happens when a tooltip > > appears and you hover over that tooltip (try M-x locate and move the > > mouse around). > > The crash is in the line > > if (f && FRAME_NS_P (f)) > > in nsterm.m in ns_mouse_position, so apparently "f" is not NULL, but > > also not valid. > > Looks like "f" isn't initialized to NULL in that function? This was probably fixed with commit b4911a6f0da0bfae3832b3aa0c111db4bb2f49d5 on master. I guess we should backport the one-line initialization change onto the release branch, since the crash is nasty and the fix is trivial.