From unknown Fri Sep 05 08:41:48 2025
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
Content-Type: text/plain; charset=utf-8
From: bug#45541 <45541@debbugs.gnu.org>
To: bug#45541 <45541@debbugs.gnu.org>
Subject: Status: 28.0.50; Frequent crashes on ARM macOS
Reply-To: bug#45541 <45541@debbugs.gnu.org>
Date: Fri, 05 Sep 2025 15:41:48 +0000
retitle 45541 28.0.50; Frequent crashes on ARM macOS
reassign 45541 emacs
submitter 45541 Philipp
severity 45541 normal
thanks
From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 29 17:32:53 2020
Received: (at submit) by debbugs.gnu.org; 29 Dec 2020 22:32:53 +0000
Received: from localhost ([127.0.0.1]:40463 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1kuNXw-00079K-Js
for submit@debbugs.gnu.org; Tue, 29 Dec 2020 17:32:52 -0500
Received: from lists.gnu.org ([209.51.188.17]:56498)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1kuNXv-00079C-3n
for submit@debbugs.gnu.org; Tue, 29 Dec 2020 17:32:51 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:48292)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1kuNXu-0004Mr-Rf
for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2020 17:32:50 -0500
Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:37720)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1kuNXs-0002oj-Dc
for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2020 17:32:50 -0500
Received: by mail-wm1-x330.google.com with SMTP id q75so3342892wme.2
for ; Tue, 29 Dec 2020 14:32:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version;
bh=VBfV6bkHCWQTuPrNG2PQObBuZJjdnwncsS34twMoiDs=;
b=JzBjX/pkjQ2ksXWtNoZQNn5q92ZOPERzDw336ODZJMRUR25YgDqH2tWreN8rw/DsBQ
lbfsnG6znUtMjK9dOml6ceFh9TGogyTiWPnM9S6iJqi1HKaR2mDlVOc0jb6p36/6cS31
LmKejN6tpOlXrNRtARl3dqKRWyPWN9Ryj8Du5AR7ipJt/fyGtt7TjNK5q4bMvIY5m57U
1Xda5QB/wVIY89EcPymj7eFRtTtFwvUjTtQLmgPNhF/CJS+EdAoiZ0G4wnlJh1tgzpy1
btXQ/ODcRKrG4h9N2Z1BzSOLRcCC6qggx14Y2jRgkyBzZ4Rs91foTalVISWXyh2vdnGm
2SYw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
bh=VBfV6bkHCWQTuPrNG2PQObBuZJjdnwncsS34twMoiDs=;
b=IJDGxm4sNwQpzwZL/lbgu7/rCFOmctCyHyJgwCVc+B8kvmzInPtN+6YxSejlc7R0T/
vkJmTzaF2PHBCQuQUCub1m0DDFXDBlt+Sy6x4k4EVk3zpT0VcZe1x+hJYXp9TGSMA+yX
0e4TLwedqhlqWfS+fAjvWTMRBbjMKDK19X/Y3OePR/u93RPdDXX49GnSWcssfm0kDSSP
lGG/9/jG/ogVVwMTKAbmj1PNhlrfjE9c4bH78s1DTRbfDGIyPU+brtYkEc4K33rCIvyN
kdTLOSpGEtOKU2TshMignLCrL3boRiSdAb5y5kBOToHjV0BA2a9lBTIYhOVpqoaVp9v3
ZD+w==
X-Gm-Message-State: AOAM531zGaDDYy1Y5mNPgnRoklVPBGTo+n4ZA/EkwjnOKjgK9lMYNcVP
tJlvZ0wFViNyP2LQi0HQmh+9SsssZbvHQw==
X-Google-Smtp-Source: ABdhPJwPBOC04Q3B+iq47AUJw6QwnBaTMWu0rC3RGH0RAx7YejgbGombSQZF5qQN4rPd2vbt5n+i4g==
X-Received: by 2002:a7b:ce96:: with SMTP id q22mr5127878wmj.164.1609281166149;
Tue, 29 Dec 2020 14:32:46 -0800 (PST)
Received: from MacBook-Pro.fritz.box (p57997ac3.dip0.t-ipconnect.de.
[87.153.122.195])
by smtp.gmail.com with ESMTPSA id v7sm5200998wma.26.2020.12.29.14.32.45
for
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 29 Dec 2020 14:32:45 -0800 (PST)
From: Philipp
To: bug-gnu-emacs@gnu.org
Subject: 28.0.50; Frequent crashes on ARM macOS
Date: Tue, 29 Dec 2020 23:32:43 +0100
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::330;
envelope-from=p.stephani2@gmail.com; helo=mail-wm1-x330.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -2.1 (--)
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:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000038d0
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x38d0:
-->
__TEXT 1042fc000-10453c000 [ 2304K] r-x/r-x SM=COW /Applications/Emacs.app/Contents/MacOS/Emacs
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x000000018d20fcec __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018d240c24 pthread_kill + 292
2 libsystem_c.dylib 0x000000018d1204d0 raise + 32
3 org.gnu.Emacs 0x00000001044fa394 terminate_due_to_signal + 188 (emacs.c:409)
4 org.gnu.Emacs 0x00000001044fab4c emacs_abort + 20 (sysdep.c:2455)
5 org.gnu.Emacs 0x00000001044c949c ns_term_shutdown + 144 (nsterm.m:5560)
6 org.gnu.Emacs 0x00000001043b60d8 shut_down_emacs + 328 (emacs.c:2491)
7 org.gnu.Emacs 0x00000001044fa35c terminate_due_to_signal + 132 (emacs.c:392)
8 org.gnu.Emacs 0x00000001043d4fb4 handle_fatal_signal + 16 (sysdep.c:1795)
9 org.gnu.Emacs 0x00000001043d502c deliver_thread_signal + 120 (sysdep.c:1769)
10 org.gnu.Emacs 0x00000001043d3a68 deliver_fatal_thread_signal + 12 (sysdep.c:1807)
11 libsystem_platform.dylib 0x000000018d288c44 _sigtramp + 56
12 org.gnu.Emacs 0x00000001044d475c ns_mouse_position + 248 (nsterm.m:2519)
13 org.gnu.Emacs 0x000000010430d2c8 Fmouse_pixel_position + 136 (frame.c:2498)
14 org.gnu.Emacs 0x000000010443be48 funcall_subr + 188 (eval.c:2866)
15 org.gnu.Emacs 0x000000010443b420 Ffuncall + 948 (eval.c:2795)
16 org.gnu.Emacs 0x000000010447c208 exec_byte_code + 1560 (bytecode.c:633)
17 org.gnu.Emacs 0x000000010443b3a8 Ffuncall + 828
18 org.gnu.Emacs 0x000000010443bb0c call1 + 44 (eval.c:2655)
19 org.gnu.Emacs 0x00000001043bcc1c show_help_echo + 308 (keyboard.c:2093)
20 org.gnu.Emacs 0x00000001043bd30c read_char + 1648 (keyboard.c:3117)
21 org.gnu.Emacs 0x00000001043bb220 read_key_sequence + 1880 (keyboard.c:9554)
22 org.gnu.Emacs 0x00000001043b9cd0 command_loop_1 + 1128 (keyboard.c:1350)
23 org.gnu.Emacs 0x0000000104439a6c internal_condition_case + 248 (eval.c:1356)
24 org.gnu.Emacs 0x00000001043c86ac command_loop_2 + 44 (keyboard.c:1091)
25 org.gnu.Emacs 0x0000000104439354 internal_catch + 248 (eval.c:1117)
26 org.gnu.Emacs 0x00000001044fa690 recursive_edit_1.cold.1 + 80 (keyboard.c:1070)
27 org.gnu.Emacs 0x00000001043b8dc0 command_loop + 4 (keyboard.c:1067) [inlined]
28 org.gnu.Emacs 0x00000001043b8dc0 recursive_edit_1 + 248 (keyboard.c:714)
29 org.gnu.Emacs 0x00000001043b8f68 Frecursive_edit + 388 (keyboard.c:786)
30 org.gnu.Emacs 0x00000001043b83b0 main + 8836 (emacs.c:2066)
31 libdyld.dylib 0x000000018d25cf34 start + 4
Looks like a crash in ns_mouse_position.
In GNU Emacs 28.0.50 (build 28, aarch64-apple-darwin20.2.0, NS appkit-2022.20 Version 11.1 (Build 20C69))
of 2020-12-29
Repository revision: 90bd3b3d69d40339127b4744c459cedb7eb962b0
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2022
System Description: macOS 11.1
Configured using:
'configure --with-modules --without-xml2 --without-pop --with-mailutils
--enable-gcc-warnings=warn-only --enable-checking=all
--enable-check-lisp-object-type 'CFLAGS=-ggdb3 -O0''
Configured features:
PNG NOTIFY KQUEUE ACL GNUTLS ZLIB TOOLKIT_SCROLL_BARS XIM NS MODULES
THREADS JSON PDUMPER LCMS2
Important settings:
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc dired dired-loaddefs rfc822
mml easymenu mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs
time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils phst skeleton derived edmacro kmacro pcase ffap
thingatpt url url-proxy url-privacy url-expand url-methods url-history
url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json map url-vars
mailcap rx gnutls puny dbus xml subr-x seq byte-opt gv bytecomp
byte-compile cconv compile text-property-search comint ansi-color ring
cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize
mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button
loaddefs faces cus-face macroexp files window text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads kqueue cocoa ns lcms2
multi-tty make-network-process emacs)
Memory information:
((conses 16 70926 5579)
(symbols 48 8581 1)
(strings 32 23907 1885)
(string-bytes 1 779937)
(vectors 16 14984)
(vector-slots 8 198319 4285)
(floats 8 26 28)
(intervals 56 209 0)
(buffers 984 10))
From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 29 19:10:42 2020
Received: (at 45541) by debbugs.gnu.org; 30 Dec 2020 00:10:42 +0000
Received: from localhost ([127.0.0.1]:40506 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1kuP4b-0001CI-Rl
for submit@debbugs.gnu.org; Tue, 29 Dec 2020 19:10:42 -0500
Received: from outbound.soverin.net ([116.202.65.218]:48019)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1kuP4Z-0001C4-6l
for 45541@debbugs.gnu.org; Tue, 29 Dec 2020 19:10:40 -0500
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 7D4C76008F
for <45541@debbugs.gnu.org>; Wed, 30 Dec 2020 00:10:32 +0000 (UTC)
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=1609287032; bh=dChETrRBJxUIZpdQ9lKn4i9hb436HRTAoVLmY+IPUds=;
h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
b=ajgG36KRasmcfJXo1BMFI8veejHM62+TIHrQI5ppZ9peb7tAtF6RWcnZ2lWYrglXm
nHgHuM9R6wAyHqYHdLuRKSVQZO/m5MP0paVc9JEfagv0otanngR/aDn55hi/byQ3ip
KokvxXMMwpeCcZKraFEOrT1HypEMmrIyAbpr3UHMdlnJKSMW/x4jHni3B0v22hWzUE
Q5GhFsGfBAPptDHV3kpL+iFCORxTsdRaGEaRyErYd6C+5tJgAjZyBzN8rZ2jbytu9+
2o1g+rup8nbcrBOPs8BuwtHNp2MvVVlZAmDj5iqwJubxJQzQLOKqsbhyduxb0NxmXS
9CXEJT4YmYIIQ==
Received: by breton.holly.idiocy.org (Postfix, from userid 501)
id C33DA202952174; Wed, 30 Dec 2020 00:10:30 +0000 (GMT)
Date: Wed, 30 Dec 2020 00:10:30 +0000
From: Alan Third
To: Philipp
Subject: Re: bug#45541: 28.0.50; Frequent crashes on ARM macOS
Message-ID:
Mail-Followup-To: Alan Third ,
Philipp , 45541@debbugs.gnu.org
References:
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To:
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 45541
Cc: 45541@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.7 (-)
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)
--
Alan Third
From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 30 08:01:39 2020
Received: (at 45541) by debbugs.gnu.org; 30 Dec 2020 13:01:39 +0000
Received: from localhost ([127.0.0.1]:42121 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1kub6h-00044D-Bc
for submit@debbugs.gnu.org; Wed, 30 Dec 2020 08:01:39 -0500
Received: from mail-oo1-f45.google.com ([209.85.161.45]:43511)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1kub6e-000440-VB
for 45541@debbugs.gnu.org; Wed, 30 Dec 2020 08:01:38 -0500
Received: by mail-oo1-f45.google.com with SMTP id y14so3667358oom.10
for <45541@debbugs.gnu.org>; Wed, 30 Dec 2020 05:01:36 -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=xFYR/RAinYXsY5GPPjLd2grvuRJmhdfDqBWb8rWD+Kc=;
b=akOy9bpKbVhf+IFU+ghTPpZUXFCksWuKOyhYn4LUug1UyE0LMvkoi7iQ2lqBMDz4c5
9tLx8he2suGfsKzHVUEwa3VBZ3tqfQGSFnOf8Kq7UwERRgsmKp3xr3kk8VO0zP302R5i
pflN5QD557fnu8R5V9x0RNKhIvOPXMvMQzJ18ugbSsoJRrri+AohSkIpsQLXZ+uu1CfI
eI2fNWjmHqLjeyEIFCdUvAISm1HODA6dabepez6Uw0vl49mQHZrk9IzH86EYpvdSWaJw
wVLNvQ05UjemlX8YZDVz0i3BVrqsIw9p/Q4BF5u2zt6lzHdwa6Jizh/g2fbO2KYNNwtm
RJXA==
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=xFYR/RAinYXsY5GPPjLd2grvuRJmhdfDqBWb8rWD+Kc=;
b=LL5n9DTsZ5b6h7f4utw7KPxbs8dixelX9Mk2xeMEIA/PcaoeNJKhiLTohr2+85HR9p
ZPaGgQdsRtAuOr8xSDw7JiZTFBc2x0D07qSc03Q/B4KxxJh37dg6CtzSMd631XnUA/FC
t4LUS95lixY6VTfKA/ogWIy0C74rEKsxWZsHyCfrgq7n4x5RRXm8HPNIO3VwhiWBQidp
+xcxtdv9H81MoOVBT9T/yKO21eSSVrDymj1fDSo5lE+y3uSEyMCDpMA9Nj3ejMS7q2u7
xNGo4FB0B7zqSWeoQyYc5Kk9UECvIILvpEcK7G3gpt7k+oI2GTPH2wh1vRL4/n8Q/TTt
sH3Q==
X-Gm-Message-State: AOAM5312AvYek2s7lVhw4++Iaw8CCpawnn+68xBs9kQBGniSNp1h2RAe
Ml8N6hqwg60CApGXFv0UO8MGF0VtZEfmWPRKKtE=
X-Google-Smtp-Source: ABdhPJyn24uZXgQOHZDE2Le5rCnRALObStQZNluMrX1cvOhgMQ2Mk7b0aYuE7ZoGrZAHeJkL4fhUHo7aIya+5TzInZI=
X-Received: by 2002:a4a:e8d1:: with SMTP id h17mr35833720ooe.71.1609333289835;
Wed, 30 Dec 2020 05:01:29 -0800 (PST)
MIME-Version: 1.0
References:
In-Reply-To:
From: Philipp Stephani
Date: Wed, 30 Dec 2020 14:01:18 +0100
Message-ID:
Subject: Re: bug#45541: 28.0.50; Frequent crashes on ARM macOS
To: Alan Third , Philipp ,
45541@debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 45541
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.7 (/)
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?
From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 30 09:06:00 2020
Received: (at 45541) by debbugs.gnu.org; 30 Dec 2020 14:06:00 +0000
Received: from localhost ([127.0.0.1]:45451 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1kuc6y-0000QL-BI
for submit@debbugs.gnu.org; Wed, 30 Dec 2020 09:06:00 -0500
Received: from outbound.soverin.net ([116.202.65.218]:41173)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1kuc6r-0000OQ-5p
for 45541@debbugs.gnu.org; Wed, 30 Dec 2020 09:05:58 -0500
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 0E8526008F
for <45541@debbugs.gnu.org>; Wed, 30 Dec 2020 14:05:47 +0000 (UTC)
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=1609337146; bh=9R0ag4a0dgduBiuZAau5GhYiVuSEu9Jz3Yu5NF4XHXM=;
h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
b=K1F9fijVXKL3+kncQwajVYDsHmiGAkXOzsFJhQwIp47Y+J5cSIwpyl+sClOUBtw08
RVUSfZQJLRFVkWt70nzl2vIOm5i38DVK9sQh8ajwqc/E5ywU39a6Cwu41MxlwMFFfd
/0DMv3XBRZAQl4auI1hy4+dLnl60vKTgWMajl+aYDirkAo3t6CKgCVwU4D/4omHXIl
/D8TTqMvCKu6GoXnGZI6xmVdSd5yIU+UtMjXir1w38TQjLQj7MIuv6zDo1Z7sa5R6L
ZC/fL/Wn8aV9N7DTfPBUb2n/khf05+Y2lLjRQIPgy8DUV1emUIttWyGF6Fasr1Q9dn
ohLGr57cHe+qw==
Received: by breton.holly.idiocy.org (Postfix, from userid 501)
id 274FD20295A120; Wed, 30 Dec 2020 14:05:44 +0000 (GMT)
Date: Wed, 30 Dec 2020 14:05:44 +0000
From: Alan Third
To: Philipp Stephani
Subject: Re: bug#45541: 28.0.50; Frequent crashes on ARM macOS
Message-ID:
Mail-Followup-To: Alan Third ,
Philipp Stephani , 45541@debbugs.gnu.org
References:
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To:
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 45541
Cc: 45541@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.7 (-)
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?
--
Alan Third
From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 30 09:42:44 2020
Received: (at 45541) by debbugs.gnu.org; 30 Dec 2020 14:42:44 +0000
Received: from localhost ([127.0.0.1]:48853 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1kucgV-0004YS-K8
for submit@debbugs.gnu.org; Wed, 30 Dec 2020 09:42:43 -0500
Received: from mail-oi1-f176.google.com ([209.85.167.176]:37654)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1kucgT-0004Y7-HU
for 45541@debbugs.gnu.org; Wed, 30 Dec 2020 09:42:42 -0500
Received: by mail-oi1-f176.google.com with SMTP id l207so18843833oib.4
for <45541@debbugs.gnu.org>; Wed, 30 Dec 2020 06:42:41 -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=HgiwAs7biZG+b/2RT1YZ0MKiP6LbOITTe0iRXBWPk90=;
b=iTG5F9bd8zxJLylCc5tIFKXepRVYWg4nG/gaI32/I9iKWkjE4T193yu99JQCYZl6Vs
4GfhTAPk7UPxneBr6EU+lpJMTICXkgfnJ1GXUimNwL+TYoeP3RvgQaxSbAbPGdnXIQ+P
KTYKUknvjW+5NqpSm8yQ/f4RsehHCg6jhJzPnimy2BI+0J70tUXH/dZQDi1RKC21DmEF
Dp3CC6Kvi3VY/lrFiloiuIR3BWm80euC3qghSG2ZES90aQegFZJ8fl48utFw1AUX6Y9d
JFBXggJcKTOk0eibJZ7wduwLfWQutpB5ejC09l1/MhdHXJQdA+KjnE3qX/W3g2Q+Ujgi
VAkQ==
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=HgiwAs7biZG+b/2RT1YZ0MKiP6LbOITTe0iRXBWPk90=;
b=iA2rRFEAi2tsfaa5zbc1g92jZ2FJaKRqe2iLm0L1FeefiXkibkgbm9RelEF7Y1dNB8
v/mw0t4n6paMkwcGuA9u/YE8vSgJPOvVOByy9gyfDiNCOPQaY2y5zjl8BBNSFFO/KcYr
aoSEDKSI5kNs6Q9qvRHTZ8EgN/g8pZVKzjgsWy9Ko7JVGCAP4Yd0eGbnuT0A/GV3NRMb
jua9ulzZZ3pxlc+fVFARmhGA1L3JF+o65I9ley4fRDlyceOqL5BtN0xGATm30TS/8ao3
zVphHjFpTyaombGuIZNJes9cl0ylOOQUtDAWsZd9Twk7J75MAEXyyPOTZ2KagOuXXpPx
nVMQ==
X-Gm-Message-State: AOAM532+Sn1rFLwd2OwrqqIDRsmnsW2rZDsBZvV/7cIUesZWySMUOWmO
LbFOLLemufrvUunKRDZHbkO29ldyVcSIpBzwc0M=
X-Google-Smtp-Source: ABdhPJwGN2+HFA1F17btF7gi3i4o4mBgqf4fwEcBMNBKWTgEf/Z3HoZj/HKIvAhP952lJrbZbiRRO7RzuA4dxhVhdmE=
X-Received: by 2002:aca:3b03:: with SMTP id i3mr5396699oia.170.1609339355812;
Wed, 30 Dec 2020 06:42:35 -0800 (PST)
MIME-Version: 1.0
References:
In-Reply-To:
From: Philipp Stephani
Date: Wed, 30 Dec 2020 15:42:24 +0100
Message-ID:
Subject: Re: bug#45541: 28.0.50; Frequent crashes on ARM macOS
To: Alan Third , Philipp Stephani ,
45541@debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 45541
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.8 (/)
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.
Interestingly I can only reproduce the issue in optimized builds.
The LLDB backtrace is:
* thread #1, queue = 'com.apple.main-thread', stop reason =
EXC_BAD_ACCESS (code=1, address=0x38d0)
frame #0: 0x00000001001d87fc
emacs`ns_mouse_position(fp=, insist=,
bar_window=, part=, x=,
y=, time=) at nsterm.m:2538:12 [opt]
2535 && FRAME_LIVE_P (dpyinfo->last_mouse_frame))
2536 f = dpyinfo->last_mouse_frame;
2537
-> 2538 if (f && FRAME_NS_P (f))
2539 {
2540 view = FRAME_NS_VIEW (f);
2541
Target 0: (emacs) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason =
EXC_BAD_ACCESS (code=1, address=0x38d0)
* frame #0: 0x00000001001d87fc
emacs`ns_mouse_position(fp=, insist=,
bar_window=, part=, x=,
y=, time=) at nsterm.m:2538:12 [opt]
frame #1: 0x00000001000112c8 emacs`Fmouse_pixel_position at
frame.c:2498:7 [opt]
frame #2: 0x000000010013fe48
emacs`funcall_subr(subr=0x0000000100251778, numargs=,
args=) at eval.c:2866:19 [opt]
frame #3: 0x000000010013f420 emacs`Ffuncall(nargs=,
args=) at eval.c:2795:11 [opt]
frame #4: 0x0000000100180208
emacs`exec_byte_code(bytestr=, vector=,
maxdepth=, args_template=,
nargs=4611686018813263872, args=) at bytecode.c:633:12
[opt]
frame #5: 0x00000001001403c0
emacs`funcall_lambda(fun=, nargs=,
arg_vector=) at eval.c:2990:11 [opt] [artificial]
frame #6: 0x000000010013f3a8 emacs`Ffuncall(nargs=,
args=) at eval.c:0 [opt]
frame #7: 0x000000010013fb0c emacs`call1(fn=0x00000000000094b0,
arg1=0x00000001160244d4) at eval.c:2655:10 [opt]
frame #8: 0x00000001000c0c1c
emacs`show_help_echo(help=0x00000001160244d4, window=,
object=, pos=) at keyboard.c:2093:14 [opt]
frame #9: 0x00000001000c130c
emacs`read_char(commandflag=, map=,
prev_event=0x0000000000000000, used_mouse_menu=,
end_time=) at keyboard.c:3117:7 [opt]
frame #10: 0x00000001000bf220
emacs`read_key_sequence(keybuf=0x000000016fdff1e0,
prompt=0x0000000000000000, dont_downcase_last=false,
can_return_switch_frame=true, fix_current_buffer=true,
prevent_redisplay=) at keyboard.c:9554:12 [opt]
frame #11: 0x00000001000bdcd0 emacs`command_loop_1 at
keyboard.c:1350:15 [opt]
frame #12: 0x000000010013da6c
emacs`internal_condition_case(bfun=(emacs`command_loop_1 at
keyboard.c:1236), handlers=0x0000000000000090, hfun=(emacs`cmd_error
at keyboard.c:919)) at eval.c:1356:25 [opt]
frame #13: 0x00000001000cc6ac
emacs`command_loop_2(ignore=0x0000000000000000) at keyboard.c:1091:11
[opt]
frame #14: 0x000000010013d354
emacs`internal_catch(tag=, func=(emacs`command_loop_2 at
keyboard.c:1087), arg=0x0000000000000000) at eval.c:1117:25 [opt]
frame #15: 0x00000001001fe690 emacs`recursive_edit_1.cold.1 at
keyboard.c:1070:2 [opt]
frame #16: 0x00000001000bcdc0 emacs`recursive_edit_1 [inlined]
command_loop at keyboard.c:1067:5 [opt]
frame #17: 0x00000001000bcdbc emacs`recursive_edit_1 at keyboard.c:714 [opt]
frame #18: 0x00000001000bcf68 emacs`Frecursive_edit at
keyboard.c:786:3 [opt]
frame #19: 0x00000001000bc3b0 emacs`main(argc=,
argv=) at emacs.c:2066:3 [opt]
frame #20: 0x000000018d25cf34 libdyld.dylib`start + 4
From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 30 09:49:31 2020
Received: (at 45541) by debbugs.gnu.org; 30 Dec 2020 14:49:32 +0000
Received: from localhost ([127.0.0.1]:48964 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1kucn5-0004pT-Mp
for submit@debbugs.gnu.org; Wed, 30 Dec 2020 09:49:31 -0500
Received: from mail-ot1-f52.google.com ([209.85.210.52]:39889)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1kucn3-0004ot-GN
for 45541@debbugs.gnu.org; Wed, 30 Dec 2020 09:49:29 -0500
Received: by mail-ot1-f52.google.com with SMTP id d8so15530889otq.6
for <45541@debbugs.gnu.org>; Wed, 30 Dec 2020 06:49:29 -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=eHZ/agQNaaCJ/Y7xd7zJAA/CA52SuAkEwwZoEgG/Ca4=;
b=qMPwHjGSAYpDz/wob1a0pF/VUq+fTHopll93K0/aJSyV1tfSGFcROu2b3MCHuvCRO6
Loy69QnmJ7tEC/4zXoKdzMtS6V3wK8JMc4z+ZiL3sw+b8yXrmp2ycv2yleiMB28GCK3Q
DihgbHAV7IMz2kDgN3uWev+beZZ/lV/A6EY4vQOkuVp5Pz7areV5eniUQ7FnjnrYv51V
oSE8imyRvkHXG+YGa3Gj30HrwaFeHoAyfJKvmDgYmwmmvLQD+/r0ARcoDROff+FNDgSS
5/GdJDdehqraDyxWFEMrMml8IEWa2O2o5lCQUveMBqSe6s5UuFENxW+J+61AaOxanTBc
4tlA==
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=eHZ/agQNaaCJ/Y7xd7zJAA/CA52SuAkEwwZoEgG/Ca4=;
b=jMiX8IeN4nwValPPyww+NwiLamCsjJDI9e5Td3rDvbT3o853u450f/DcFD+OnHUsPn
wu9re7Vj2hBrYBQE1+B0bSrCoGvUGUSVYIgjAYXQ4DadGOTW3AiE76IJN/mnVIJzjYiB
mDhb1VhDfEGfncjNFJCkLf4RJg6+DJ96VxqsCyjfETahmo/Rry+Goe9jFntoHOoBsnPe
7DMVQ7A77hXcmUHTnE3fv9t+Yskv6mRpHyG3Q1uS6ukTK/IwiWZR5HAB2GPRWZfFKdrY
q4Zk3PD1YVmVkqawVZuBptLd02BQwhWlFineLpNWpXvu9yFWJxbdsvquqTxnOQh1+w9e
6kqw==
X-Gm-Message-State: AOAM533CyJQVByM2aFXiWwuhRwkuFB08I3Y6mYT3nDi56mEVhTv84+ZC
6kpWfWbtaeSbmXt6tuNSb8eLkwxwVFyAiPajIHo=
X-Google-Smtp-Source: ABdhPJzdmrBrRlwVMcx6uALYfkx/nmXlFiVgCAwpZq7E/Il3icN354futBeOJh9cPE1XLaIO4Qh0mzYGZKhre70A8VA=
X-Received: by 2002:a9d:694a:: with SMTP id p10mr22054005oto.149.1609339762353;
Wed, 30 Dec 2020 06:49:22 -0800 (PST)
MIME-Version: 1.0
References:
In-Reply-To:
From: Philipp Stephani
Date: Wed, 30 Dec 2020 15:49:11 +0100
Message-ID:
Subject: Re: bug#45541: 28.0.50; Frequent crashes on ARM macOS
To: Alan Third , Philipp Stephani ,
45541@debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 45541
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.7 (/)
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?
From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 30 09:53:21 2020
Received: (at 45541) by debbugs.gnu.org; 30 Dec 2020 14:53:21 +0000
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
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
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)
MIME-Version: 1.0
References:
In-Reply-To:
From: Philipp Stephani
Date: Wed, 30 Dec 2020 15:53:01 +0100
Message-ID:
Subject: Re: bug#45541: 28.0.50; Frequent crashes on ARM macOS
To: Alan Third , Philipp Stephani ,
45541@debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 45541
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.7 (/)
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.
From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 30 10:22:43 2020
Received: (at 45541) by debbugs.gnu.org; 30 Dec 2020 15:22:43 +0000
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
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
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)
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==
Received: by breton.holly.idiocy.org (Postfix, from userid 501)
id 4AAD820295A3BA; Wed, 30 Dec 2020 15:22:32 +0000 (GMT)
Date: Wed, 30 Dec 2020 15:22:32 +0000
From: Alan Third
To: Philipp Stephani
Subject: Re: bug#45541: 28.0.50; Frequent crashes on ARM macOS
Message-ID:
Mail-Followup-To: Alan Third ,
Philipp Stephani , 45541@debbugs.gnu.org
References:
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To:
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 45541
Cc: 45541@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.7 (-)
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
From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 30 15:35:39 2020
Received: (at 45541) by debbugs.gnu.org; 30 Dec 2020 20:35:39 +0000
Received: from localhost ([127.0.0.1]:51164 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1kuiC2-0005oF-Sg
for submit@debbugs.gnu.org; Wed, 30 Dec 2020 15:35:39 -0500
Received: from eggs.gnu.org ([209.51.188.92]:60710)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1kuiC0-0005o1-Es
for 45541@debbugs.gnu.org; Wed, 30 Dec 2020 15:35:37 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34259)
by eggs.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1kuiBu-0000Od-Ll; Wed, 30 Dec 2020 15:35:30 -0500
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4391
helo=home-c4e4a596f7)
by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
(Exim 4.82) (envelope-from )
id 1kuiBs-0003jV-Fd; Wed, 30 Dec 2020 15:35:29 -0500
Date: Wed, 30 Dec 2020 22:35:23 +0200
Message-Id: <83ft3nhw1g.fsf@gnu.org>
From: Eli Zaretskii
To: Philipp Stephani
In-Reply-To:
(message from Philipp Stephani on Wed, 30 Dec 2020 15:42:24 +0100)
Subject: Re: bug#45541: 28.0.50; Frequent crashes on ARM macOS
References:
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 45541
Cc: alan@idiocy.org, 45541@debbugs.gnu.org, p.stephani2@gmail.com
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
> From: Philipp Stephani
> Date: Wed, 30 Dec 2020 15:42:24 +0100
>
> I'm now able to reproduce this consistently. It happens when a tooltip
> appears and you hover over that tooltip
How is that possible? Tooltips are supposed to pop down as soon as
you move the mouse. Are those native NS tooltips, and if so, do they
behave differently in this regard?
> 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.
Maybe, if the tooltip popped down, we need to test whether f is a live
frame?
From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 30 16:10:34 2020
Received: (at 45541) by debbugs.gnu.org; 30 Dec 2020 21:10:34 +0000
Received: from localhost ([127.0.0.1]:51188 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1kuijq-0007Go-IX
for submit@debbugs.gnu.org; Wed, 30 Dec 2020 16:10:34 -0500
Received: from mail-oi1-f176.google.com ([209.85.167.176]:46875)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1kuijp-0007GZ-7u
for 45541@debbugs.gnu.org; Wed, 30 Dec 2020 16:10:33 -0500
Received: by mail-oi1-f176.google.com with SMTP id q205so19942189oig.13
for <45541@debbugs.gnu.org>; Wed, 30 Dec 2020 13:10:33 -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
:cc; bh=apck0QLSkHJZAhc9kLoBeR248GOlI6CXbamUhURXM40=;
b=vGF/QZEKDXrNEYhjaHxgjTERghc04Eq56yMVo5ryGTCl4/V4bxNFs9o+ryye5ff9ko
AKZNaPyyuxozczwOtkKHRsL3QaAa/APPl0nOjCVcBI6lw7d5SKi28LZrgTHuyMEng8nv
+RPixTY4NKprMiMk63A2GbFC8ST4V6G22ewFXKOsr1DNPUgaDnaSX+8sXDbB2GecaDI1
gS19mMGEWxGtyAvcVIU3qWuxWlxMCEU47HYpd7Dtr/YOfXVAVE39q34E6r3d2PIxu7GG
ffRWn+qmi7ATSs7zc3D+TiZxFT+NVOBNQrcqA/dFYMrFcgLK6vrzwru7VUg74gH4zvue
nPbw==
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:cc;
bh=apck0QLSkHJZAhc9kLoBeR248GOlI6CXbamUhURXM40=;
b=kuZT/BfWnFTwQM0yEICj924yH9TlPsZtm3PtUDIpgRMmXMajM3cf/UhO7odLgxFROK
kJI9m6bwBggN6BlKuMBH0NUrQ2euu1VCVnUKCrXWCE55KqQ1RVCl9hDZlVHeI2FVhEwQ
ZksSk/Ml0Q5D6138nLFCPaQ6wthk4ocu7cvGBai9gVwJfv9er0Unjm2mLG6jAQFAQ5cZ
diB6B1svveG1z8v78/6wS4/uAUEpYP/Db5DzLZyo+C3LM7ddDv/80dq1bURkE6HhkWcB
lKhzI/O0KFl2dggJs/I2Agx0k9J8OEP4qht22QC28iJ+ZwF9BEqchd/xmuU9ZXtvz8ZW
XmsQ==
X-Gm-Message-State: AOAM533XBsa3kSlY/U77fMLXcQ7hvSx/VAjE5sIfNfRWHJp2io81po9f
bbtVsb9ccfVsCm3tboR4UUbr0j+dAwMYGB5awLBtpVchETU=
X-Google-Smtp-Source: ABdhPJxhEDz4aHHVeSvX9B5uoink+p2+Tz9Yazw6RBkGHk8iRO2d+5p9DiybPp6ESIuVr6Em0lyAamZTVaecVJoyRIo=
X-Received: by 2002:a54:4881:: with SMTP id r1mr6234824oic.9.1609362627444;
Wed, 30 Dec 2020 13:10:27 -0800 (PST)
MIME-Version: 1.0
References:
<83ft3nhw1g.fsf@gnu.org>
In-Reply-To: <83ft3nhw1g.fsf@gnu.org>
From: Philipp Stephani
Date: Wed, 30 Dec 2020 22:10:16 +0100
Message-ID:
Subject: Re: bug#45541: 28.0.50; Frequent crashes on ARM macOS
To: Eli Zaretskii
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 45541
Cc: Alan Third , 45541@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"