all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
@ 2023-04-14  8:16 Sami Lahtinen
  2023-04-14 12:26 ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Sami Lahtinen @ 2023-04-14  8:16 UTC (permalink / raw)
  To: 62831



A three-finger tap in any Emacs frame crashes Emacs.

I use the pretest version from https://emacsformacosx.com on a M1
MacBook Pro.


In GNU Emacs 29.0.90 (build 1, aarch64-apple-darwin21.6.0, NS
appkit-2113.60 Version 12.6.1 (Build 21G217)) of 2023-04-11 built on
builder-m1-12.lan
Windowing system distributor 'Apple', version 10.3.2299
System Description:  macOS 13.3.1

Configured using:
'configure --with-ns '--enable-locallisppath=/Library/Application
Support/Emacs/${version}/site-lisp:/Library/Application
Support/Emacs/site-lisp' --with-modules --with-x-toolkit=no'

Configured features:
ACL GLIB GMP GNUTLS JPEG JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER
PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER ZLIB

Important settings:
  locale-coding-system: utf-8-unix

Major mode: Dashboard

Minor modes in effect:
  which-key-mode: t
  global-sl-mode: t
  nyan-mode: t
  minions-mode: t
  recentf-mode: t
  page-break-lines-mode: t
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  shell-dirtrack-mode: t
  electric-pair-mode: t
  ivy-prescient-mode: t
  counsel-mode: t
  ivy-rich-mode: t
  ivy-mode: t
  delete-selection-mode: t
  global-auto-revert-mode: t
  savehist-mode: t
  override-global-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  context-menu-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  buffer-read-only: t
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  abbrev-mode: t

Load-path shadows:
/Users/sami/.emacs.d/elpa/lispy-20230314.1738/elpa hides /Users/sami/.emacs.d/elpa/ivy-20220926.1250/elpa
/Users/sami/.emacs.d/elpa/transient-20230315.1520/transient hides /Applications/Emacs29.app/Contents/Resources/lisp/transient
/Users/sami/.emacs.d/elpa/use-package-20230203.2004/use-package-jump hides /Applications/Emacs29.app/Contents/Resources/lisp/use-package/use-package-jump
/Users/sami/.emacs.d/elpa/use-package-20230203.2004/use-package-ensure hides /Applications/Emacs29.app/Contents/Resources/lisp/use-package/use-package-ensure
/Users/sami/.emacs.d/elpa/use-package-20230203.2004/use-package-core hides /Applications/Emacs29.app/Contents/Resources/lisp/use-package/use-package-core
/Users/sami/.emacs.d/elpa/use-package-20230203.2004/use-package-delight hides /Applications/Emacs29.app/Contents/Resources/lisp/use-package/use-package-delight
/Users/sami/.emacs.d/elpa/use-package-20230203.2004/use-package-diminish hides /Applications/Emacs29.app/Contents/Resources/lisp/use-package/use-package-diminish
/Users/sami/.emacs.d/elpa/use-package-20230203.2004/use-package hides /Applications/Emacs29.app/Contents/Resources/lisp/use-package/use-package
/Users/sami/.emacs.d/elpa/use-package-20230203.2004/use-package-bind-key hides /Applications/Emacs29.app/Contents/Resources/lisp/use-package/use-package-bind-key
/Users/sami/.emacs.d/elpa/bind-key-20230203.2004/bind-key hides /Applications/Emacs29.app/Contents/Resources/lisp/use-package/bind-key
/Users/sami/.emacs.d/elpa/use-package-20230203.2004/use-package-lint hides /Applications/Emacs29.app/Contents/Resources/lisp/use-package/use-package-lint

Features:
(shadow sort mail-extr emacsbug which-key org-indent oc-basic ol-eww eww
url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect
gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr
pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start
gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 nnoo
gnus-spec gnus-int gnus-range gnus-win gnus nnheader range ol-docview
doc-view jka-compr image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m
ol-doi org-link-doi org-agenda outshine outshine-org-cmds outorg
rainbow-delimiters time chatgpt-shell let-alist view ielm goto-addr
eshell esh-mode esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg
esh-module esh-groups esh-util power-mode nyan-mode minions jazz-theme
color-theme-sanityinc-tomorrow gruvbox-theme gruvbox autothemer lisp-mnt
ef-themes doom-themes doom-themes-base dashboard dashboard-widgets
recentf tree-widget wid-edit ffap page-break-lines magit-bookmark
magit-submodule magit-blame magit-stash magit-reflog magit-bisect
magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit
magit-sequence magit-notes magit-worktree magit-tag magit-merge
magit-branch magit-reset magit-files magit-refs magit-status magit
magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff
smerge-mode diff diff-mode git-commit log-edit message sendmail
yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config
gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils
mailheader pcvs-util add-log magit-core magit-autorevert magit-margin
magit-transient magit-process with-editor magit-mode transient magit-git
magit-base magit-section crm all-the-icons all-the-icons-faces
data-material data-weathericons data-octicons data-fileicons
data-faicons data-alltheicons vterm bookmark pp term ehelp vterm-module
term/xterm xterm auto-dim-other-buffers face-remap restart-emacs desktop
frameset server ob-python python-el-fgallina-expansions python treesit
org-mouse rainbow-mode multiple-cursors mc-separate-operations
rectangular-region-mode mc-mark-pop mc-edit-lines
mc-hide-unmatched-lines-mode mc-mark-more mc-cycle-cursors
multiple-cursors-core rect expand-region text-mode-expansions
the-org-mode-expansions org-element org-persist org-id org-refile
avl-tree er-basic-expansions expand-region-core expand-region-custom
writeroom-mode visual-fill-column olivetti lorem-ipsum lispy hydra
advice lv lispy-inline thingatpt avy etags fileloop generator edebug
debug backtrace help-fns radix-tree lispy-tags mode-local zoutline org
ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint
org-pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp
ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys
oc org-loaddefs find-func org-version org-compat org-macs paredit
disp-table noutline outline icons sudo-edit tramp tramp-loaddefs
trampver tramp-integration files-x tramp-compat rx shell pcomplete
parse-time iso8601 ls-lisp format-spec elec-pair hl-line
display-line-numbers ivy-prescient prescient char-fold counsel xdg xref
project dired dired-loaddefs compile text-property-search comint
ansi-osc ansi-color swiper ivy-rich ivy delsel ring ivy-faces
ivy-overlay colir color edmacro kmacro no-littering compat compat-29
autorevert filenotify savehist diary-lib diary-loaddefs cal-menu
calendar cal-loaddefs time-date auto-package-update dash cl-extra
help-mode use-package use-package-ensure use-package-delight
use-package-diminish use-package-bind-key bind-key easy-mmode
use-package-core finder-inf zenburn-theme pcase gruvbox-theme-autoloads
autothemer-autoloads color-theme-sanityinc-tomorrow-autoloads
jazz-theme-autoloads zenburn-theme-autoloads info package browse-url url
url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x
map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode 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 lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads kqueue cocoa ns multi-tty
make-network-process emacs)

Memory information:
((conses 16 638637 307781)
(symbols 48 46851 6)
(strings 32 206694 43476)
(string-bytes 1 5824205)
(vectors 16 88871)
(vector-slots 8 1802685 582609)
(floats 8 1384 1741)
(intervals 56 1215 529)
(buffers 984 17))





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
  2023-04-14  8:16 bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap Sami Lahtinen
@ 2023-04-14 12:26 ` Eli Zaretskii
       [not found]   ` <CAK_WPLuPi14nG9QB5z8J6guEwvx+ZGhoEws2rAUG7AKWYhitdw@mail.gmail.com>
  0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2023-04-14 12:26 UTC (permalink / raw)
  To: Sami Lahtinen; +Cc: 62831

> From: Sami Lahtinen <sami.lahtinen@gmail.com>
> Date: Fri, 14 Apr 2023 11:16:13 +0300
> 
> 
> A three-finger tap in any Emacs frame crashes Emacs.

Please show a backtrace from the crash.

> I use the pretest version from https://emacsformacosx.com on a M1
> MacBook Pro.

Is this the upstream version, or does it include any local changes?





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
       [not found]   ` <CAK_WPLuPi14nG9QB5z8J6guEwvx+ZGhoEws2rAUG7AKWYhitdw@mail.gmail.com>
@ 2023-04-14 13:44     ` Eli Zaretskii
  2023-04-14 14:06       ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-04-15 16:49       ` Sami Lahtinen
  0 siblings, 2 replies; 13+ messages in thread
From: Eli Zaretskii @ 2023-04-14 13:44 UTC (permalink / raw)
  To: Sami Lahtinen; +Cc: 62831

> From: Sami Lahtinen <sami.lahtinen@gmail.com>
> Date: Fri, 14 Apr 2023 15:46:28 +0300
> 
> I will attach an .ips file from ~/Library/Logs/DiagnosticReports/ I hope this is what you are looking for,
> if not, can you please specify?

I meant the backtrace reported by a debugger.  Run Emacs under a
debugger, either GDB (preferred) or LLDB, and when Emacs crashes
produce the backtrace and post it.  In GDB, the command to display a
backtrace is "backtrace", or "bt" in short.  I don't know what is the
command in LLDB, sorry.

> My Emacs is the binary from emacsformacosx.com as-is. As far as I know, it is compiled without
> changes.

Does that site say anywhere if there are some changes?





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
  2023-04-14 13:44     ` Eli Zaretskii
@ 2023-04-14 14:06       ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-04-15 16:49       ` Sami Lahtinen
  1 sibling, 0 replies; 13+ messages in thread
From: Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-04-14 14:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Sami Lahtinen, 62831

[-- Attachment #1: Type: text/plain, Size: 478 bytes --]


> On Apr 14, 2023, at 21:46, Eli Zaretskii <eliz@gnu.org> wrote:
> 
> 
>> 
>> From: Sami Lahtinen <sami.lahtinen@gmail.com>
>> Date: Fri, 14 Apr 2023 15:46:28 +0300
> 

> […]
> 
>> My Emacs is the binary from emacsformacosx.com as-is. As far as I know, it is compiled without
>> changes.
> 
> Does that site say anywhere if there are some changes?

According to https://emacsformacosx.com/about, there are no changes from emacs.git. 

--
Best,


RY

[-- Attachment #2: Type: text/html, Size: 1380 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
  2023-04-14 13:44     ` Eli Zaretskii
  2023-04-14 14:06       ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-04-15 16:49       ` Sami Lahtinen
  2023-04-15 19:50         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 13+ messages in thread
From: Sami Lahtinen @ 2023-04-15 16:49 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 62831

[-- Attachment #1: Type: text/plain, Size: 1575 bytes --]

Unfortunately I am unable to run GDB, as it seems that GDB doesn't run on
aarch64.

I tried to debug using LLDB, but since I have no experience with these
things I was unable to do so. I can try to find some time to learn the
process next week, but it might take a while, as I have never done any
debugging before. Maybe someone with more experience has access to an Apple
silicon machine and can replicate the bug?

ps. Maybe I should explain, that the three-finger tap is a macOS feature
that can search for a dictionary definition, web search etc. on a
highlighted word as well as display info about files in the file browser
etc. I'm just explaining this as it is a os-specific utility that some
people might not be aware of. I have no idea how it works "under the hood".

pe 14. huhtik. 2023 klo 16.44 Eli Zaretskii (eliz@gnu.org) kirjoitti:

> > From: Sami Lahtinen <sami.lahtinen@gmail.com>
> > Date: Fri, 14 Apr 2023 15:46:28 +0300
> >
> > I will attach an .ips file from ~/Library/Logs/DiagnosticReports/ I hope
> this is what you are looking for,
> > if not, can you please specify?
>
> I meant the backtrace reported by a debugger.  Run Emacs under a
> debugger, either GDB (preferred) or LLDB, and when Emacs crashes
> produce the backtrace and post it.  In GDB, the command to display a
> backtrace is "backtrace", or "bt" in short.  I don't know what is the
> command in LLDB, sorry.
>
> > My Emacs is the binary from emacsformacosx.com as-is. As far as I know,
> it is compiled without
> > changes.
>
> Does that site say anywhere if there are some changes?
>

[-- Attachment #2: Type: text/html, Size: 2222 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
  2023-04-15 16:49       ` Sami Lahtinen
@ 2023-04-15 19:50         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-04-16  6:43           ` Sami Lahtinen
  0 siblings, 1 reply; 13+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-04-15 19:50 UTC (permalink / raw)
  To: Sami Lahtinen; +Cc: Eli Zaretskii, 62831

Sami Lahtinen <sami.lahtinen@gmail.com> writes:

> Unfortunately I am unable to run GDB, as it seems that GDB doesn't run on
> aarch64.
>
> I tried to debug using LLDB, but since I have no experience with these
> things I was unable to do so. I can try to find some time to learn the
> process next week, but it might take a while, as I have never done any
> debugging before. Maybe someone with more experience has access to an Apple
> silicon machine and can replicate the bug?

If you open Console.app, you should see the Emacs crash there, under
Crash Reports.  Could you upload the report to this bug thread?

I can't reproduce the issue, but I am on macOS 12, not macOS 13.  Do you
reproduce the issue if you start Emacs from a terminal with "emacs -Q"?

>
> ps. Maybe I should explain, that the three-finger tap is a macOS feature
> that can search for a dictionary definition, web search etc. on a
> highlighted word as well as display info about files in the file browser
> etc. I'm just explaining this as it is a os-specific utility that some
> people might not be aware of. I have no idea how it works "under the hood".
>

Is this the setting you can configure at System Preferences, Trackpad,
Point & Click, Look up & data detectors, Tap with three fingers?





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
  2023-04-15 19:50         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-04-16  6:43           ` Sami Lahtinen
  2023-04-16 14:56             ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 13+ messages in thread
From: Sami Lahtinen @ 2023-04-16  6:43 UTC (permalink / raw)
  To: Daniel Martín; +Cc: Eli Zaretskii, 62831


[-- Attachment #1.1: Type: text/plain, Size: 1991 bytes --]

la 15. huhtik. 2023 klo 22.51 Daniel Martín (mardani29@yahoo.es) kirjoitti:

> Sami Lahtinen <sami.lahtinen@gmail.com> writes:
>
> > Unfortunately I am unable to run GDB, as it seems that GDB doesn't run on
> > aarch64.
> >
> > I tried to debug using LLDB, but since I have no experience with these
> > things I was unable to do so. I can try to find some time to learn the
> > process next week, but it might take a while, as I have never done any
> > debugging before. Maybe someone with more experience has access to an
> Apple
> > silicon machine and can replicate the bug?
>
> If you open Console.app, you should see the Emacs crash there, under
> Crash Reports.  Could you upload the report to this bug thread?
>
> I will attach it to this email.

I can't reproduce the issue, but I am on macOS 12, not macOS 13.  Do you
> reproduce the issue if you start Emacs from a terminal with "emacs -Q"?
>
> I ran "/Applications/Emacs29.app/Content/MacOS/Emacs -Q" and
"/Applications/Emacs29.app/Content/MacOS/Emacs-arm64-11 -Q" and could not
reproduce the bug, which is surprising as I thought that I had trier that
before and thus thought the bug was not related to my dotfiles. Still, the
same dotfiles do not result in this bug in my older version of Emacs.

I can try to pinpont the part of my init.el that is causing this bug, but
it will take a day or two.

>
> > ps. Maybe I should explain, that the three-finger tap is a macOS feature
> > that can search for a dictionary definition, web search etc. on a
> > highlighted word as well as display info about files in the file browser
> > etc. I'm just explaining this as it is a os-specific utility that some
> > people might not be aware of. I have no idea how it works "under the
> hood".
> >
>
> Is this the setting you can configure at System Preferences, Trackpad,
> Point & Click, Look up & data detectors, Tap with three fingers?
>

Yes.With that setting off the bug does not happen.

[-- Attachment #1.2: Type: text/html, Size: 3542 bytes --]

[-- Attachment #2: Emacs-arm64-11-2023-04-16-094019.ips --]
[-- Type: application/octet-stream, Size: 20234 bytes --]

{"app_name":"Emacs-arm64-11","timestamp":"2023-04-16 09:40:19.00 +0300","app_version":"","slice_uuid":"00000000-0000-0000-0000-000000000000","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.3.1 (22E261)","roots_installed":0,"incident_id":"33106A45-08E9-4548-9B21-8487CD0AD39B","name":"Emacs-arm64-11"}
{
  "uptime" : 62000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,3",
  "coalitionID" : 2288,
  "osVersion" : {
    "train" : "macOS 13.3.1",
    "build" : "22E261",
    "releaseType" : "User"
  },
  "captureTime" : "2023-04-16 09:40:18.9434 +0300",
  "incident" : "33106A45-08E9-4548-9B21-8487CD0AD39B",
  "pid" : 79012,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-04-16 09:40:13.1077 +0300",
  "procStartAbsTime" : 1491886175744,
  "procExitAbsTime" : 1492025872772,
  "procName" : "Emacs-arm64-11",
  "procPath" : "\/Applications\/Emacs29.app\/Contents\/MacOS\/Emacs-arm64-11",
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "org.gnu.Emacs",
  "crashReporterKey" : "9881E08E-8258-2A27-C2FA-59A771335D0F",
  "codeSigningID" : "Emacs-arm64-11",
  "codeSigningTeamID" : "5BRAQAFB8B",
  "codeSigningFlags" : 570491649,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 0,
  "wakeTime" : 1108,
  "sleepWakeUUID" : "FAEBE653-7B10-480F-B75D-56F19B735277",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x000000019d96d560","rawCodes":[1,6938875232],"type":"EXC_BREAKPOINT","signal":"SIGABRT"},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":913162,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":105553172308512},{"value":0},{"value":35},{"value":1760},{"value":11680285746423098061},{"value":11680285752097747341},{"value":1},{"value":211199457},{"value":1},{"value":0},{"value":6489030656},{"value":10028564480},{"value":328},{"value":8103350048},{"value":0},{"value":6},{"value":8024546112,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":8024546336,"symbolLocation":224,"symbol":"_main_thread"},{"value":0},{"value":8026310976,"symbolLocation":8,"symbol":"OBJC_CLASS_$_WebHTMLView"},{"value":6170500464},{"value":11},{"value":7981855988,"symbolLocation":0,"symbol":"runtimeLock"},{"value":8024546336,"symbolLocation":224,"symbol":"_main_thread"}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6493223976},"cpsr":{"value":1073745920},"fp":{"value":6170496640},"sp":{"value":6170496608},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6492997412,"matchesCrashFrame":1},"far":{"value":10737549312}},"queue":"com.apple.main-thread","frames":[{"imageOffset":38692,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":3},{"imageOffset":27688,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":4},{"imageOffset":259180,"symbol":"raise","symbolLocation":32,"imageIndex":5},{"imageOffset":4298761852,"symbol":"terminate_due_to_signal","symbolLocation":208,"imageIndex":6},{"imageOffset":4298762792,"symbol":"emacs_abort","symbolLocation":20,"imageIndex":6},{"imageOffset":4298524192,"symbol":"ns_term_shutdown","symbolLocation":168,"imageIndex":6},{"imageOffset":4297259532,"symbol":"shut_down_emacs","symbolLocation":328,"imageIndex":6},{"imageOffset":4298761796,"symbol":"terminate_due_to_signal","symbolLocation":152,"imageIndex":6},{"imageOffset":4297418120,"symbol":"handle_fatal_signal","symbolLocation":16,"imageIndex":6},{"imageOffset":4297418244,"symbol":"deliver_thread_signal","symbolLocation":124,"imageIndex":6},{"imageOffset":4297410420,"symbol":"deliver_fatal_thread_signal","symbolLocation":12,"imageIndex":6},{"imageOffset":14980,"symbol":"_sigtramp","symbolLocation":56,"imageIndex":7},{"imageOffset":6497044,"symbol":"JSC::SecureARM64EHashPins::initializeAtStartup()","symbolLocation":76,"imageIndex":8},{"imageOffset":17767904,"symbol":"JSC::initialize()::$_11::operator()() const","symbolLocation":60,"imageIndex":8},{"imageOffset":87712,"symbol":"std::__1::__call_once(unsigned long volatile&, void*, void (*)(void*))","symbolLocation":180,"imageIndex":9},{"imageOffset":17731852,"symbol":"JSC::initialize()","symbolLocation":84,"imageIndex":8},{"imageOffset":57572,"symbol":"+[WebHTMLView initialize]","symbolLocation":80,"imageIndex":10},{"imageOffset":45040,"symbol":"CALLING_SOME_+initialize_METHOD","symbolLocation":24,"imageIndex":11},{"imageOffset":44188,"symbol":"initializeNonMetaClass","symbolLocation":904,"imageIndex":11},{"imageOffset":151784,"symbol":"initializeAndMaybeRelock(objc_class*, objc_object*, locker_mixin<lockdebug::lock_mixin<objc_lock_base_t>>&, bool)","symbolLocation":156,"imageIndex":11},{"imageOffset":42436,"symbol":"lookUpImpOrForward","symbolLocation":884,"imageIndex":11},{"imageOffset":40804,"symbol":"_objc_msgSend_uncached","symbolLocation":68,"imageIndex":11},{"imageOffset":76772,"symbol":"objc_retainAutorelease","symbolLocation":16,"imageIndex":11},{"imageOffset":65032,"symbol":"__getWebHTMLViewClassNoCatalyst_block_invoke","symbolLocation":196,"imageIndex":12},{"imageOffset":17408,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":13},{"imageOffset":23616,"symbol":"_dispatch_once_callout","symbolLocation":32,"imageIndex":13},{"imageOffset":64832,"symbol":"getWebHTMLViewClassNoCatalyst","symbolLocation":80,"imageIndex":12},{"imageOffset":64216,"symbol":"+[LUWebFrameViewTextAccessor WebHTMLViewAtLocation:]","symbolLocation":76,"imageIndex":12},{"imageOffset":65428,"symbol":"+[LUWebFrameViewTextAccessor canAccessTextAtLocation:]","symbolLocation":44,"imageIndex":12},{"imageOffset":65952,"symbol":"+[LUTextAccessor textAccessorForScreenLocation:]","symbolLocation":464,"imageIndex":12},{"imageOffset":72824,"symbol":"-[LUExtractor focusTermAndLocation:options:]","symbolLocation":352,"imageIndex":12},{"imageOffset":71924,"symbol":"+[LULookupDefinitionModule _focusTermUsingQueue:handler:]","symbolLocation":144,"imageIndex":12},{"imageOffset":27604,"symbol":"-[LULookupDefinitionModule showDefinitionByHotKey]","symbolLocation":364,"imageIndex":12},{"imageOffset":8932576,"symbol":"_routeLookupEvent","symbolLocation":344,"imageIndex":14},{"imageOffset":1466808,"symbol":"-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]","symbolLocation":584,"imageIndex":14},{"imageOffset":1465756,"symbol":"-[NSWindow(NSEventRouting) sendEvent:]","symbolLocation":284,"imageIndex":14},{"imageOffset":3896648,"symbol":"-[NSApplication _handleHotKeyRelease:]","symbolLocation":272,"imageIndex":14},{"imageOffset":2485196,"symbol":"routeSystemDefinedEvent","symbolLocation":64,"imageIndex":14},{"imageOffset":1462132,"symbol":"-[NSApplication(NSEvent) sendEvent:]","symbolLocation":1192,"imageIndex":14},{"imageOffset":4298525492,"symbol":"-[EmacsApp sendEvent:]","symbolLocation":476,"imageIndex":6},{"imageOffset":3887344,"symbol":"-[NSApplication _handleEvent:]","symbolLocation":60,"imageIndex":14},{"imageOffset":181628,"symbol":"-[NSApplication run]","symbolLocation":500,"imageIndex":14},{"imageOffset":4298524684,"symbol":"-[EmacsApp run]","symbolLocation":376,"imageIndex":6},{"imageOffset":4298519568,"symbol":"ns_select_1","symbolLocation":988,"imageIndex":6},{"imageOffset":4298220856,"symbol":"wait_reading_process_output","symbolLocation":4292,"imageIndex":6},{"imageOffset":4297300260,"symbol":"read_char","symbolLocation":9704,"imageIndex":6},{"imageOffset":4297282356,"symbol":"read_key_sequence","symbolLocation":1456,"imageIndex":6},{"imageOffset":4297275040,"symbol":"command_loop_1","symbolLocation":888,"imageIndex":6},{"imageOffset":4297865384,"symbol":"internal_condition_case","symbolLocation":92,"imageIndex":6},{"imageOffset":4297274132,"symbol":"command_loop_2","symbolLocation":52,"imageIndex":6},{"imageOffset":4297863556,"symbol":"internal_catch","symbolLocation":84,"imageIndex":6},{"imageOffset":4297272092,"symbol":"command_loop","symbolLocation":264,"imageIndex":6},{"imageOffset":4297271624,"symbol":"recursive_edit_1","symbolLocation":164,"imageIndex":6},{"imageOffset":4297272516,"symbol":"Frecursive_edit","symbolLocation":372,"imageIndex":6},{"imageOffset":4297268856,"symbol":"main","symbolLocation":9240,"imageIndex":6},{"imageOffset":24360,"symbol":"start","symbolLocation":2236,"imageIndex":15}]},{"id":913163,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]},{"id":913165,"name":"gmain","frames":[{"imageOffset":49136,"symbol":"__select","symbolLocation":8,"imageIndex":3},{"imageOffset":4313152068,"symbol":"g_poll","symbolLocation":452,"imageIndex":6},{"imageOffset":4313087852,"symbol":"g_main_context_iterate","symbolLocation":448,"imageIndex":6},{"imageOffset":4313088172,"symbol":"g_main_context_iteration","symbolLocation":116,"imageIndex":6},{"imageOffset":4313097048,"symbol":"glib_worker_main","symbolLocation":48,"imageIndex":6},{"imageOffset":4313262572,"symbol":"g_thread_proxy","symbolLocation":68,"imageIndex":6},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":4},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":4}]},{"id":913173,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]},{"id":913238,"frames":[{"imageOffset":29164,"symbol":"__pselect","symbolLocation":8,"imageIndex":3},{"imageOffset":28868,"symbol":"pselect$DARWIN_EXTSN","symbolLocation":64,"imageIndex":3},{"imageOffset":4298529528,"symbol":"-[EmacsApp fd_handler:]","symbolLocation":528,"imageIndex":6},{"imageOffset":353852,"symbol":"__NSThread__start__","symbolLocation":716,"imageIndex":16},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":4},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":4}]},{"id":913265,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]},{"id":913277,"name":"com.apple.NSEventThread","frames":[{"imageOffset":3860,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":3},{"imageOffset":78400,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":3},{"imageOffset":39800,"symbol":"mach_msg_overwrite","symbolLocation":604,"imageIndex":3},{"imageOffset":4752,"symbol":"mach_msg","symbolLocation":24,"imageIndex":3},{"imageOffset":522424,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":17},{"imageOffset":516504,"symbol":"__CFRunLoopRun","symbolLocation":1208,"imageIndex":17},{"imageOffset":513420,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":17},{"imageOffset":1455368,"symbol":"_NSEventThread","symbolLocation":172,"imageIndex":14},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":4},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":4}]},{"id":913393,"name":"JavaScriptCore libpas scavenger","frames":[{"imageOffset":18192,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":3},{"imageOffset":30068,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":4},{"imageOffset":2603472,"symbol":"scavenger_thread_main","symbolLocation":1428,"imageIndex":8},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":4},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":4}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4601561088,
    "size" : 49152,
    "uuid" : "80f14f3d-d099-3693-a8e0-eb9a526b1790",
    "path" : "\/usr\/lib\/libobjc-trampolines.dylib",
    "name" : "libobjc-trampolines.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4628692992,
    "size" : 32768,
    "uuid" : "8bb970a1-b8b7-3645-952d-fd1355dfcea2",
    "path" : "\/Users\/USER\/*\/vterm-module.so",
    "name" : "vterm-module.so"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4628889600,
    "size" : 49152,
    "uuid" : "e86c6720-3d87-3db0-add1-8402f8d0b821",
    "path" : "\/opt\/homebrew\/*\/libvterm.0.dylib",
    "name" : "libvterm.0.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6492958720,
    "size" : 237544,
    "uuid" : "7acbd9bc-d056-310e-858d-81b116cf6d28",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6493196288,
    "size" : 53248,
    "uuid" : "b401cfb3-8dfe-32db-92b3-ba8af0f8ca6e",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6491746304,
    "size" : 520184,
    "uuid" : "9277aff7-3cc3-30d0-99b7-c62680da95cf",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6493401088,
    "size" : 28660,
    "uuid" : "756cd10d-62a0-3283-9e57-cbaa810c95ac",
    "path" : "\/usr\/lib\/system\/libsystem_platform.dylib",
    "name" : "libsystem_platform.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6932377600,
    "CFBundleShortVersionString" : "18615",
    "CFBundleIdentifier" : "com.apple.JavaScriptCore",
    "size" : 24150016,
    "uuid" : "296c4d4b-246e-38db-99c4-b3de1a1352de",
    "path" : "\/System\/Library\/Frameworks\/JavaScriptCore.framework\/Versions\/A\/JavaScriptCore",
    "name" : "JavaScriptCore",
    "CFBundleVersion" : "18615.1.26.11.23"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6492266496,
    "size" : 577528,
    "uuid" : "79cab92f-5e03-31e7-b2bd-feafdfd2bbde",
    "path" : "\/usr\/lib\/libc++.1.dylib",
    "name" : "libc++.1.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6897426432,
    "CFBundleShortVersionString" : "18615",
    "CFBundleIdentifier" : "com.apple.WebKitLegacy",
    "size" : 1835008,
    "uuid" : "99d95d66-d43d-3b32-bf34-658824ea7fb9",
    "path" : "\/System\/Library\/Frameworks\/WebKit.framework\/Versions\/A\/Frameworks\/WebKitLegacy.framework\/Versions\/A\/WebKitLegacy",
    "name" : "WebKitLegacy",
    "CFBundleVersion" : "18615.1.26.11.23"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6489407488,
    "size" : 286528,
    "uuid" : "25a3d3ea-8a9e-3a8f-becc-0199e4ed6f94",
    "path" : "\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7142526976,
    "CFBundleShortVersionString" : "1.2",
    "CFBundleIdentifier" : "com.apple.LookupFramework",
    "size" : 114688,
    "uuid" : "9f11a9b3-95cd-3ef3-961b-245347f7c96e",
    "path" : "\/System\/Library\/PrivateFrameworks\/Lookup.framework\/Versions\/A\/Lookup",
    "name" : "Lookup",
    "CFBundleVersion" : "306"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6491439104,
    "size" : 294912,
    "uuid" : "8e87dc0e-a570-3933-b37d-5e05ad516206",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6546452480,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15790080,
    "uuid" : "cc3e5215-4cd7-364c-8750-6eb7002720ce",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2299.50.120"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6489694208,
    "size" : 582972,
    "uuid" : "ac277a36-1808-327a-8761-cca585421212",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6509969408,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 10248192,
    "uuid" : "b7d67e5a-dce2-3f6b-b2b8-895a3669e3ec",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "1971"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6493614080,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5087232,
    "uuid" : "b4fdaece-9727-3969-b014-27f7f24c8e01",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1971"
  }
],
  "sharedCache" : {
  "base" : 6489030656,
  "size" : 3539533824,
  "uuid" : "ebddd61c-5dcf-399c-a88b-759edf197103"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.4G resident=0K(0%) swapped_out_or_unallocated=1.4G(100%)\nWritable regions: Total=2.2G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.2G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nCG backing stores                 4864K        4 \nCG image                            80K        4 \nColorSync                          560K       25 \nCoreAnimation                      208K        6 \nCoreGraphics                        32K        2 \nCoreGraphics (reserved)             16K        1         reserved VM address space (unallocated)\nCoreServices                       416K        2 \nCoreUI image data                  960K        6 \nFoundation                          16K        1 \nImage IO                           528K        2 \nJS JIT generated code            512.0M        3 \nKernel Alloc Once                   32K        1 \nMALLOC                           350.3M       71 \nMALLOC guard page                  192K       12 \nMALLOC_MEDIUM (reserved)         816.0M        7         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       54.5M        8 \nStack                             13.3M        9 \nVM_ALLOCATE                        192K       12 \nWebKit Malloc                    160.1M        5 \n__AUTH                            1604K      323 \n__AUTH_CONST                      26.6M      536 \n__CTF                               824        1 \n__DATA                            17.5M      575 \n__DATA_CONST                      28.2M      588 \n__DATA_DIRTY                      1873K      206 \n__FONT_DATA                        2352        1 \n__INFO_FILTER                         8        1 \n__LINKEDIT                       811.4M       52 \n__OBJC_RO                         66.2M        1 \n__OBJC_RW                         2011K        1 \n__TEXT                           598.8M      609 \ndyld private memory                272K        2 \nmapped file                      387.7M       35 \nshared memory                      880K       16 \n===========                     =======  ======= \nTOTAL                              4.1G     3131 \nTOTAL, minus reserved VM space     3.0G     3131 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "19ff7e2d90a89e9a1d3ac60b8125ed1c2f15ebe0",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "5f72dc58705eff005a46b3a9",
      "factorPackIds" : {

      },
      "deploymentId" : 240000015
    },
    {
      "rolloutId" : "63508950b3714d3622fc77f7",
      "factorPackIds" : {
        "SIRI_MEMORY_SYNC_CONFIG" : "63508beab3714d3622fc7808"
      },
      "deploymentId" : 240000004
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "c28e4ee6-1b08-4f90-8e05-2809e78310a3",
      "experimentId" : "6317d2003d24842ff850182a",
      "deploymentId" : 400000013
    }
  ]
}
}

^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
  2023-04-16  6:43           ` Sami Lahtinen
@ 2023-04-16 14:56             ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-04-16 17:07               ` Sami Lahtinen
  0 siblings, 1 reply; 13+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-04-16 14:56 UTC (permalink / raw)
  To: Sami Lahtinen; +Cc: Eli Zaretskii, 62831

[-- Attachment #1: Type: text/plain, Size: 1430 bytes --]

tags 62831 + unreproducible
quit

Sami Lahtinen <sami.lahtinen@gmail.com> writes:

> la 15. huhtik. 2023 klo 22.51 Daniel Martín (mardani29@yahoo.es) kirjoitti:
>
>> Sami Lahtinen <sami.lahtinen@gmail.com> writes:
>>
>> > Unfortunately I am unable to run GDB, as it seems that GDB doesn't run on
>> > aarch64.
>> >
>> > I tried to debug using LLDB, but since I have no experience with these
>> > things I was unable to do so. I can try to find some time to learn the
>> > process next week, but it might take a while, as I have never done any
>> > debugging before. Maybe someone with more experience has access to an
>> Apple
>> > silicon machine and can replicate the bug?
>>
>> If you open Console.app, you should see the Emacs crash there, under
>> Crash Reports.  Could you upload the report to this bug thread?
>>
>> I will attach it to this email.

I have taken a look at the backtrace and it shows that the crash is in
Apple WebKit when it tries to initialize the JS VM (the dictionary popup
is apparently implemented using a web viewer).  I've converted the
backtrace to plain text and attached it to this bug report.

>
> I can try to pinpont the part of my init.el that is causing this bug, but
> it will take a day or two.
>

Yes, that'd be helpful.  If anyone has a detailed recipe to reproduce
this bug, feel free to comment.  For know, I've tagged the bug as
unreproducible.


[-- Attachment #2: Backtrace.txt --]
[-- Type: text/plain, Size: 10945 bytes --]

Incident Identifier: 33106A45-08E9-4548-9B21-8487CD0AD39B
CrashReporter Key:   9881E08E-8258-2A27-C2FA-59A771335D0F
Hardware Model:      MacBookPro18,3
Process:             Emacs-arm64-11 [79012]
Path:                /Applications/Emacs29.app/Contents/MacOS/Emacs-arm64-11
Report Version:      104
Code Type:           ARM-64 (Native(?))
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           org.gnu.Emacs [2288]

Date/Time:           2023-04-16 09:40:18.9434 +0300
Launch Time:         2023-04-16 09:40:13.1077 +0300
OS Version:          macOS 13.3.1 (22E261)
Release Type:        User
Baseband Version:    

Exception Type:  EXC_BREAKPOINT (SIGABRT)
Exception Codes: 0x0000000000000001, 0x000000019d96d560
Triggered by Thread:  0


Thread 0 name:  com.apple.main-thread
Thread 0 Crashed:
0    libsystem_kernel.dylib                  0x183034724 __pthread_kill + 8
1    libsystem_pthread.dylib                 0x18306bc28 pthread_kill + 288
2    libsystem_c.dylib                       0x182f4246c raise + 32
3                                            0x10039e67c terminate_due_to_signal + 208
4                                            0x10039ea28 emacs_abort + 20
5                                            0x100364620 ns_term_shutdown + 168
6                                            0x10022fa0c shut_down_emacs + 328
7                                            0x10039e644 terminate_due_to_signal + 152
8                                            0x100256588 handle_fatal_signal + 16
9                                            0x100256604 deliver_thread_signal + 124
10                                           0x100254774 deliver_fatal_thread_signal + 12
11   libsystem_platform.dylib                0x18309aa84 _sigtramp + 56
12   JavaScriptCore                          0x19d96d314 JSC::SecureARM64EHashPins::initializeAtStartup() + 76
13   JavaScriptCore                          0x19e42cde0 JSC::initialize()::$_11::operator()() const + 60
14   libc++.1.dylib                          0x182f976a0 std::__1::__call_once(unsigned long volatile&, void*, void (*)(void*)) + 180
15   JavaScriptCore                          0x19e42410c JSC::initialize() + 84
16   WebKitLegacy                            0x19b1f40e4 +[WebHTMLView initialize] + 80
17   libobjc.A.dylib                         0x182cd2ff0 CALLING_SOME_+initialize_METHOD + 24
18   libobjc.A.dylib                         0x182cd2c9c initializeNonMetaClass + 904
19   libobjc.A.dylib                         0x182ced0e8 initializeAndMaybeRelock(objc_class*, objc_object*, locker_mixin<lockdebug::lock_mixin<objc_lock_base_t>>&, bool) + 156
20   libobjc.A.dylib                         0x182cd25c4 lookUpImpOrForward + 884
21   libobjc.A.dylib                         0x182cd1f64 _objc_msgSend_uncached + 68
22   libobjc.A.dylib                         0x182cdabe4 objc_retainAutorelease + 16
23   Lookup                                  0x1a9bb4e08 __getWebHTMLViewClassNoCatalyst_block_invoke + 196
24   libdispatch.dylib                       0x182ebc400 _dispatch_client_callout + 20
25   libdispatch.dylib                       0x182ebdc40 _dispatch_once_callout + 32
26   Lookup                                  0x1a9bb4d40 getWebHTMLViewClassNoCatalyst + 80
27   Lookup                                  0x1a9bb4ad8 +[LUWebFrameViewTextAccessor WebHTMLViewAtLocation:] + 76
28   Lookup                                  0x1a9bb4f94 +[LUWebFrameViewTextAccessor canAccessTextAtLocation:] + 44
29   Lookup                                  0x1a9bb51a0 +[LUTextAccessor textAccessorForScreenLocation:] + 464
30   Lookup                                  0x1a9bb6c78 -[LUExtractor focusTermAndLocation:options:] + 352
31   Lookup                                  0x1a9bb68f4 +[LULookupDefinitionModule _focusTermUsingQueue:handler:] + 144
32   Lookup                                  0x1a9babbd4 -[LULookupDefinitionModule showDefinitionByHotKey] + 364
33   AppKit                                  0x186bb3ce0 _routeLookupEvent + 344
34   AppKit                                  0x1864951b8 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 584
35   AppKit                                  0x186494d9c -[NSWindow(NSEventRouting) sendEvent:] + 284
36   AppKit                                  0x1866e6548 -[NSApplication _handleHotKeyRelease:] + 272
37   AppKit                                  0x18658dbcc routeSystemDefinedEvent + 64
38   AppKit                                  0x186493f74 -[NSApplication(NSEvent) sendEvent:] + 1192
39                                           0x100364b34 -[EmacsApp sendEvent:] + 476
40   AppKit                                  0x1866e40f0 -[NSApplication _handleEvent:] + 60
41   AppKit                                  0x18635b57c -[NSApplication run] + 500
42                                           0x10036480c -[EmacsApp run] + 376
43                                           0x100363410 ns_select_1 + 988
44                                           0x10031a538 wait_reading_process_output + 4292
45                                           0x100239924 read_char + 9704
46                                           0x100235334 read_key_sequence + 1456
47                                           0x1002336a0 command_loop_1 + 888
48                                           0x1002c38a8 internal_condition_case + 92
49                                           0x100233314 command_loop_2 + 52
50                                           0x1002c3184 internal_catch + 84
51                                           0x100232b1c command_loop + 264
52                                           0x100232948 recursive_edit_1 + 164
53                                           0x100232cc4 Frecursive_edit + 372
54                                           0x100231e78 main + 9240
55   dyld                                    0x182d13f28 start + 2236

Thread 1:
0    libsystem_pthread.dylib                 0x183066d8c start_wqthread + 0

Thread 2 name:  gmain
Thread 2:
0    libsystem_kernel.dylib                  0x183036ff0 __select + 8
1                                            0x101157a44 g_poll + 452
2                                            0x101147f6c g_main_context_iterate + 448
3                                            0x1011480ac g_main_context_iteration + 116
4                                            0x10114a358 glib_worker_main + 48
5                                            0x1011729ec g_thread_proxy + 68
6    libsystem_pthread.dylib                 0x18306bfa8 _pthread_start + 148
7    libsystem_pthread.dylib                 0x183066da0 thread_start + 8

Thread 3:
0    libsystem_pthread.dylib                 0x183066d8c start_wqthread + 0

Thread 4:
0    libsystem_kernel.dylib                  0x1830321ec __pselect + 8
1    libsystem_kernel.dylib                  0x1830320c4 pselect$DARWIN_EXTSN + 64
2                                            0x100365af8 -[EmacsApp fd_handler:] + 528
3    Foundation                              0x1840ba63c __NSThread__start__ + 716
4    libsystem_pthread.dylib                 0x18306bfa8 _pthread_start + 148
5    libsystem_pthread.dylib                 0x183066da0 thread_start + 8

Thread 5:
0    libsystem_pthread.dylib                 0x183066d8c start_wqthread + 0

Thread 6 name:  com.apple.NSEventThread
Thread 6:
0    libsystem_kernel.dylib                  0x18302bf14 mach_msg2_trap + 8
1    libsystem_kernel.dylib                  0x18303e240 mach_msg2_internal + 80
2    libsystem_kernel.dylib                  0x183034b78 mach_msg_overwrite + 604
3    libsystem_kernel.dylib                  0x18302c290 mach_msg + 24
4    CoreFoundation                          0x18314a8b8 __CFRunLoopServiceMachPort + 160
5    CoreFoundation                          0x183149198 __CFRunLoopRun + 1208
6    CoreFoundation                          0x18314858c CFRunLoopRunSpecific + 612
7    AppKit                                  0x186492508 _NSEventThread + 172
8    libsystem_pthread.dylib                 0x18306bfa8 _pthread_start + 148
9    libsystem_pthread.dylib                 0x183066da0 thread_start + 8

Thread 7 name:  JavaScriptCore libpas scavenger
Thread 7:
0    libsystem_kernel.dylib                  0x18302f710 __psynch_cvwait + 8
1    libsystem_pthread.dylib                 0x18306c574 _pthread_cond_wait + 1232
2    JavaScriptCore                          0x19d5b69d0 scavenger_thread_main + 1428
3    libsystem_pthread.dylib                 0x18306bfa8 _pthread_start + 148
4    libsystem_pthread.dylib                 0x183066da0 thread_start + 8

Binary Images:
0x112464000 - 0x11246ffff libobjc-trampolines.dylib arm64e <80f14f3dd0993693a8e0eb9a526b1790> /usr/lib/libobjc-trampolines.dylib
0x113e44000 - 0x113e4bfff vterm-module.so arm64 <8bb970a1b8b73645952dfd1355dfcea2> /Users/USER/*/vterm-module.so
0x113e74000 - 0x113e7ffff libvterm.0.dylib arm64 <e86c67203d873db0add18402f8d0b821> /opt/homebrew/*/libvterm.0.dylib
0x18302b000 - 0x183064fe7 libsystem_kernel.dylib arm64e <7acbd9bcd056310e858d81b116cf6d28> /usr/lib/system/libsystem_kernel.dylib
0x183065000 - 0x183071fff libsystem_pthread.dylib arm64e <b401cfb38dfe32db92b3ba8af0f8ca6e> /usr/lib/system/libsystem_pthread.dylib
0x182f03000 - 0x182f81ff7 libsystem_c.dylib arm64e <9277aff73cc330d099b7c62680da95cf> /usr/lib/system/libsystem_c.dylib
0x0 - 0xffffffffffffffff   <00000000000000000000000000000000> 
0x183097000 - 0x18309dff3 libsystem_platform.dylib arm64e <756cd10d62a032839e57cbaa810c95ac> /usr/lib/system/libsystem_platform.dylib
0x19d33b000 - 0x19ea42fff JavaScriptCore arm64e <296c4d4b246e38db99c4b3de1a1352de> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
0x182f82000 - 0x18300eff7 libc++.1.dylib arm64e <79cab92f5e0331e7b2bdfeafdfd2bbde> /usr/lib/libc++.1.dylib
0x19b1e6000 - 0x19b3a5fff WebKitLegacy arm64e <99d95d66d43d3b32bf34658824ea7fb9> /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebKitLegacy.framework/Versions/A/WebKitLegacy
0x182cc8000 - 0x182d0df3f libobjc.A.dylib arm64e <25a3d3ea8a9e3a8fbecc0199e4ed6f94> /usr/lib/libobjc.A.dylib
0x1a9ba5000 - 0x1a9bc0fff Lookup arm64e <9f11a9b395cd3ef3961b245347f7c96e> /System/Library/PrivateFrameworks/Lookup.framework/Versions/A/Lookup
0x182eb8000 - 0x182efffff libdispatch.dylib arm64e <8e87dc0ea5703933b37d5e05ad516206> /usr/lib/system/libdispatch.dylib
0x18632f000 - 0x18723dfff AppKit arm64e <cc3e52154cd7364c87506eb7002720ce> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x182d0e000 - 0x182d9c53b dyld arm64e <ac277a361808327a8761cca585421212> /usr/lib/dyld
0x184064000 - 0x184a29fff Foundation arm64e <b7d67e5adce23f6bb2b8895a3669e3ec> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x1830cb000 - 0x1835a4fff CoreFoundation arm64e <b4fdaece97273969b01427f7f24c8e01> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
  2023-04-16 14:56             ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-04-16 17:07               ` Sami Lahtinen
  2023-04-16 17:21                 ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Sami Lahtinen @ 2023-04-16 17:07 UTC (permalink / raw)
  To: Daniel Martín; +Cc: Eli Zaretskii, 62831


[-- Attachment #1.1: Type: text/plain, Size: 1789 bytes --]

I think I pinpointed the problem.
I was able to reproduce the bug with a minimal init configuration that only
loads the vterm package.

I'll attach the init file here, hope this helps!

Sami

su 16. huhtik. 2023 klo 17.56 Daniel Martín (mardani29@yahoo.es) kirjoitti:

> tags 62831 + unreproducible
> quit
>
> Sami Lahtinen <sami.lahtinen@gmail.com> writes:
>
> > la 15. huhtik. 2023 klo 22.51 Daniel Martín (mardani29@yahoo.es)
> kirjoitti:
> >
> >> Sami Lahtinen <sami.lahtinen@gmail.com> writes:
> >>
> >> > Unfortunately I am unable to run GDB, as it seems that GDB doesn't
> run on
> >> > aarch64.
> >> >
> >> > I tried to debug using LLDB, but since I have no experience with these
> >> > things I was unable to do so. I can try to find some time to learn the
> >> > process next week, but it might take a while, as I have never done any
> >> > debugging before. Maybe someone with more experience has access to an
> >> Apple
> >> > silicon machine and can replicate the bug?
> >>
> >> If you open Console.app, you should see the Emacs crash there, under
> >> Crash Reports.  Could you upload the report to this bug thread?
> >>
> >> I will attach it to this email.
>
> I have taken a look at the backtrace and it shows that the crash is in
> Apple WebKit when it tries to initialize the JS VM (the dictionary popup
> is apparently implemented using a web viewer).  I've converted the
> backtrace to plain text and attached it to this bug report.
>
> >
> > I can try to pinpont the part of my init.el that is causing this bug, but
> > it will take a day or two.
> >
>
> Yes, that'd be helpful.  If anyone has a detailed recipe to reproduce
> this bug, feel free to comment.  For know, I've tagged the bug as
> unreproducible.
>
>

[-- Attachment #1.2: Type: text/html, Size: 2971 bytes --]

[-- Attachment #2: bug-only-init.el --]
[-- Type: application/octet-stream, Size: 837 bytes --]

;; This seems to be the minimum init file that I can use to replicate the bug discussed in "bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap."
;;
;; Running this init file with:
;; /Applications/Emacs29.app/Contents/MacOS/Emacs -Q --load="~/.emacs.d/bug-only-init.el"
;; seems to cause a crash in connection with the macOS three-finger-tap functionality, that can be enabled in:
;; System Preferences -> Trackpad -> Point & Click -> Look up & data detectors, Tap with three fingers.
;;
;; Version of Emacs I used to replicate the bug:
;;
;; GNU Emacs 29.0.90 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6.1 (Build 21G217)) of 2023-04-11

(package-initialize)
(package-refresh-contents)
(package-install 'use-package)

(require 'use-package)

(use-package vterm)

^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
  2023-04-16 17:07               ` Sami Lahtinen
@ 2023-04-16 17:21                 ` Eli Zaretskii
  2023-04-16 17:29                   ` Sami Lahtinen
  0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2023-04-16 17:21 UTC (permalink / raw)
  To: Sami Lahtinen; +Cc: 62831, mardani29

> From: Sami Lahtinen <sami.lahtinen@gmail.com>
> Date: Sun, 16 Apr 2023 20:07:11 +0300
> Cc: Eli Zaretskii <eliz@gnu.org>, 62831@debbugs.gnu.org
> 
> I think I pinpointed the problem.
> I was able to reproduce the bug with a minimal init configuration that only loads the vterm package.
> 
> I'll attach the init file here, hope this helps!

Thanks.

vterm is not part of Emacs, so I suggest to report this to the vterm
developers first.





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
  2023-04-16 17:21                 ` Eli Zaretskii
@ 2023-04-16 17:29                   ` Sami Lahtinen
  2023-04-16 18:16                     ` Sami Lahtinen
  0 siblings, 1 reply; 13+ messages in thread
From: Sami Lahtinen @ 2023-04-16 17:29 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: mardani29, 62831

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

su 16.4.2023 klo 20.21 Eli Zaretskii <eliz@gnu.org> kirjoitti:

> > From: Sami Lahtinen <sami.lahtinen@gmail.com>
> > Date: Sun, 16 Apr 2023 20:07:11 +0300
> > Cc: Eli Zaretskii <eliz@gnu.org>, 62831@debbugs.gnu.org
> >
> > I think I pinpointed the problem.
> > I was able to reproduce the bug with a minimal init configuration that
> only loads the vterm package.
> >
> > I'll attach the init file here, hope this helps!
>
> Thanks.
>
> vterm is not part of Emacs, so I suggest to report this to the vterm
> developers first.
>

I can do that. But I don’t know if the bug is in vterm as such or just
something that the vterm package installation “enables” in this particular
setup, as actually using vterm is not required to replicate the bug. The
crash happens after simply loading the package. There might be other ways
of causing this bug as well that might not be related to vterm.

Sami

[-- Attachment #2: Type: text/html, Size: 1628 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
  2023-04-16 17:29                   ` Sami Lahtinen
@ 2023-04-16 18:16                     ` Sami Lahtinen
  2023-09-11 23:24                       ` Stefan Kangas
  0 siblings, 1 reply; 13+ messages in thread
From: Sami Lahtinen @ 2023-04-16 18:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: mardani29, 62831

[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]

It seems that installing vterm compiles something called "vterm-module".
This seems to be necessary to reproduce the bug.
So, indeed it seems this is a vterm bug. I will notify vterm developers.
My apologies if reporting this issue here was/is inappropriate.
Thank you,

Sami



su 16. huhtik. 2023 klo 20.29 Sami Lahtinen (sami.lahtinen@gmail.com)
kirjoitti:

>
>
> su 16.4.2023 klo 20.21 Eli Zaretskii <eliz@gnu.org> kirjoitti:
>
>> > From: Sami Lahtinen <sami.lahtinen@gmail.com>
>> > Date: Sun, 16 Apr 2023 20:07:11 +0300
>> > Cc: Eli Zaretskii <eliz@gnu.org>, 62831@debbugs.gnu.org
>> >
>> > I think I pinpointed the problem.
>> > I was able to reproduce the bug with a minimal init configuration that
>> only loads the vterm package.
>> >
>> > I'll attach the init file here, hope this helps!
>>
>> Thanks.
>>
>> vterm is not part of Emacs, so I suggest to report this to the vterm
>> developers first.
>>
>
> I can do that. But I don’t know if the bug is in vterm as such or just
> something that the vterm package installation “enables” in this particular
> setup, as actually using vterm is not required to replicate the bug. The
> crash happens after simply loading the package. There might be other ways
> of causing this bug as well that might not be related to vterm.
>
> Sami
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 2939 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
  2023-04-16 18:16                     ` Sami Lahtinen
@ 2023-09-11 23:24                       ` Stefan Kangas
  0 siblings, 0 replies; 13+ messages in thread
From: Stefan Kangas @ 2023-09-11 23:24 UTC (permalink / raw)
  To: Sami Lahtinen; +Cc: Eli Zaretskii, 62831, mardani29

tags 62831 notabug
close 62831
thanks

Sami Lahtinen <sami.lahtinen@gmail.com> writes:

> It seems that installing vterm compiles something called "vterm-module". This seems to be necessary to reproduce the bug.
> So, indeed it seems this is a vterm bug. I will notify vterm developers.
> My apologies if reporting this issue here was/is inappropriate.
> Thank you,

This seems not to be a bug in Emacs, so I'm closing it.





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-09-11 23:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-14  8:16 bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap Sami Lahtinen
2023-04-14 12:26 ` Eli Zaretskii
     [not found]   ` <CAK_WPLuPi14nG9QB5z8J6guEwvx+ZGhoEws2rAUG7AKWYhitdw@mail.gmail.com>
2023-04-14 13:44     ` Eli Zaretskii
2023-04-14 14:06       ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-15 16:49       ` Sami Lahtinen
2023-04-15 19:50         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-16  6:43           ` Sami Lahtinen
2023-04-16 14:56             ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-16 17:07               ` Sami Lahtinen
2023-04-16 17:21                 ` Eli Zaretskii
2023-04-16 17:29                   ` Sami Lahtinen
2023-04-16 18:16                     ` Sami Lahtinen
2023-09-11 23:24                       ` Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.