From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#45541: 28.0.50; Frequent crashes on ARM macOS Date: Wed, 30 Dec 2020 15:22:32 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45541@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 30 16:23:10 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 1kudJe-0001Kh-Gg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 16:23:10 +0100 Original-Received: from localhost ([::1]:33922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kudJd-0005D9-H3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 10:23:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kudJW-0005D1-Ei for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 10:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39106) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kudJW-0005Df-6U for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 10:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kudJW-0006Fm-3T for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 10:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Dec 2020 15:23:02 +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.160934176323997 (code B ref 45541); Wed, 30 Dec 2020 15:23:02 +0000 Original-Received: (at 45541) by debbugs.gnu.org; 30 Dec 2020 15:22:43 +0000 Original-Received: from localhost ([127.0.0.1]:50651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kudJD-0006Ey-Fz for submit@debbugs.gnu.org; Wed, 30 Dec 2020 10:22:43 -0500 Original-Received: from outbound.soverin.net ([116.202.65.218]:55231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kudJB-0006Ej-Sm for 45541@debbugs.gnu.org; Wed, 30 Dec 2020 10:22:42 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 7B6476008F for <45541@debbugs.gnu.org>; Wed, 30 Dec 2020 15:22:35 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1609341755; bh=h8jFIueWSJVjroO9e4lffgfHCUUiBB6r3dinKoRuH8E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n8BKJirIvz2thZVzNkXPmoCmfVqhizO5UvjJ0/2U3hRegUy/fymWDSd1HBwg6Fd8u AkDqa8rzt/MQ+qya3msKhhogonQwCr+Pn5L2e2z2BCMvuNRVl5bFiT0aI6QBe/3FQB +YAppUkyX1KCYq8/+3ggipM3xmOQhHq191p3YzODbizbODxzGGnmMW3/vbHNBipFgi nnXlb4lmWuGei3p6Un9iWxFpA8nOsp1HRwFJHLatrDdmdcDQMbPCqH0TA0XJgHPuSx PN3jNc2a77LX7H7crfpMbXOTB3N7kPWLPUV3buHCpsOCzLfBE3qsp8kFmrHHaIW3PK PVcbuC9xI6K5A== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 4AAD820295A3BA; Wed, 30 Dec 2020 15:22:32 +0000 (GMT) Mail-Followup-To: Alan Third , Philipp Stephani , 45541@debbugs.gnu.org Content-Disposition: inline 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:197035 Archived-At: On Wed, Dec 30, 2020 at 03:53:01PM +0100, Philipp Stephani wrote: > 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. Yes, I agree. -- Alan Third