From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <83leiufy57.fsf@gnu.org> <83h6tifuhy.fsf@gnu.org> Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39389"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cc: Eli Zaretskii , 62831@debbugs.gnu.org To: Sami Lahtinen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 16 16:58:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1po3pZ-000A36-9b for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Apr 2023 16:58:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1po3pL-0005Xl-Ku; Sun, 16 Apr 2023 10:58:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1po3pK-0005XS-9c for bug-gnu-emacs@gnu.org; Sun, 16 Apr 2023 10:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1po3pK-0000kr-21 for bug-gnu-emacs@gnu.org; Sun, 16 Apr 2023 10:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1po3pJ-0005TR-Jr for bug-gnu-emacs@gnu.org; Sun, 16 Apr 2023 10:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Apr 2023 14:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62831 X-GNU-PR-Package: emacs Original-Received: via spool by 62831-submit@debbugs.gnu.org id=B62831.168165702520967 (code B ref 62831); Sun, 16 Apr 2023 14:58:01 +0000 Original-Received: (at 62831) by debbugs.gnu.org; 16 Apr 2023 14:57:05 +0000 Original-Received: from localhost ([127.0.0.1]:52309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1po3oO-0005S5-9h for submit@debbugs.gnu.org; Sun, 16 Apr 2023 10:57:04 -0400 Original-Received: from sonic305-20.consmr.mail.ir2.yahoo.com ([77.238.177.82]:36696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1po3oM-0005RT-1S for 62831@debbugs.gnu.org; Sun, 16 Apr 2023 10:57:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1681657016; bh=yL20NR1XNCQzIZRXwOi9T/v4eIhAlYX0KsbDzahLYKA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=j8SGS5mFRHh/+eL9LFRPGvKIAb0ONW8qzy62ShvW6EpXFP9acaEppUGKJtBCezziRO16w+7Pi620PkeBdwCY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aQ9z1h43OaXG4WJtSR5r4YJ9Su_oVrhgZfYwpwauk7yKd2dg4eDUb_rNrLXl0Ji NGtGm32CJa9U_d9BiK.bpejeOXQNhw7IqdgLYq33xsQzBUGVAWzi_diQdQ7LbnxQK9gCwPWTTY.I r53DVY2s.dLbi..zmgkHHtVruKksMmFG4Fwjy.ELLALdOaGFK3ZWPIbsqmH9zGtffy6R8s3OQo1f UGkLOAQvSqGpOU86h.K8ArVPr2BIdlQ6IVOrTBXhyQwkFAw.DaL1CBvr867ZH0I8PwUiMhxOXiOP nXesLFYhYTbvCE2a1pQK.W3dick.3Bd15AfSGBEDJy9n4hCxZMFVxHZBLLGexweAphv7u_GZVauE gTwk.UV6u_5PRaxqN3uloUpH5nRjxCGGJS0BgcffpQh0ymICZ8dJ97ydHzvtWmFkudKgoGwgTPTn 3xmjMrlGXVm1WP7P18dop5FOZmHETU2gM2TeelUJkVpbQts6X_YHIeGcw1WrouGRcND8IeEfOInc 1eSp6y4NRldJZRkTTHO2cUBZfUdLbdIT2FcopD5Wyl X-Sonic-MF: X-Sonic-ID: 6cfe44a3-399e-4703-a108-10b624ee3520 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ir2.yahoo.com with HTTP; Sun, 16 Apr 2023 14:56:56 +0000 Original-Received: by hermes--production-ir2-74cd8fc864-w4pg2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1acef32f65aa7582b1b9e3e80891cad6; Sun, 16 Apr 2023 14:56:55 +0000 (UTC) In-Reply-To: (Sami Lahtinen's message of "Sun, 16 Apr 2023 09:43:52 +0300") X-Mailer: WebService/1.1.21365 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260134 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tags 62831 + unreproducible quit Sami Lahtinen writes: > la 15. huhtik. 2023 klo 22.51 Daniel Mart=C3=ADn (mardani29@yahoo.es) kir= joitti: > >> Sami Lahtinen 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. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=Backtrace.txt 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>&, 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 /opt/homebrew/*/libvterm.0.dylib 0x18302b000 - 0x183064fe7 libsystem_kernel.dylib arm64e <7acbd9bcd056310e858d81b116cf6d28> /usr/lib/system/libsystem_kernel.dylib 0x183065000 - 0x183071fff libsystem_pthread.dylib arm64e /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 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x182d0e000 - 0x182d9c53b dyld arm64e /usr/lib/dyld 0x184064000 - 0x184a29fff Foundation arm64e /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x1830cb000 - 0x1835a4fff CoreFoundation arm64e /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation --=-=-=--