all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Sami Lahtinen <sami.lahtinen@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, 62831@debbugs.gnu.org
Subject: bug#62831: 29.0.90; Emacs-pretest-29.0.90 aarch64 on macOS crashes when receiving a three-finger tap.
Date: Sun, 16 Apr 2023 16:56:54 +0200	[thread overview]
Message-ID: <m1ttxfri2x.fsf_-_@yahoo.es> (raw)
In-Reply-To: <CAK_WPLvb7d0747K3HWAMSerbGoeWue2R+dHRfpv6Rcf4OwDa9A@mail.gmail.com> (Sami Lahtinen's message of "Sun, 16 Apr 2023 09:43:52 +0300")

[-- 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

  reply	other threads:[~2023-04-16 14:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1ttxfri2x.fsf_-_@yahoo.es \
    --to=bug-gnu-emacs@gnu.org \
    --cc=62831@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=mardani29@yahoo.es \
    --cc=sami.lahtinen@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.