Package: emacs;
Reported by: Kai Ma <justksqsf <at> gmail.com>
Date: Sat, 3 Dec 2022 08:22:02 UTC
Severity: normal
Merged with 64147
Found in versions 29.0.60, 30.0.50
Done: Daniel Martín <mardani29 <at> yahoo.es>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59794 in the body.
You can then email your comments to 59794 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
View this report as an mbox folder, status mbox, maintainer mbox
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sat, 03 Dec 2022 08:22:02 GMT) Full text and rfc822 format available.Kai Ma <justksqsf <at> gmail.com>
:bug-gnu-emacs <at> gnu.org
.
(Sat, 03 Dec 2022 08:22:02 GMT) Full text and rfc822 format available.Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Kai Ma <justksqsf <at> gmail.com> To: bug-gnu-emacs <at> gnu.org Subject: 29.0.60; NSport segfaults when a fullscreen frame is being closed Date: Fri, 02 Dec 2022 20:01:31 +0800
Emacs segfaults when a fullscreen frame is being deleted. Steps to reproduce on emacs -Q: 1. Launch an emacs instance. The default frame should be in the window mode for now. 2. C-x 5 2 3. In the new frame, M-x toggle-frame-fullscreen. 4. In the new frame, C-x 5 0 to delete the frame. Emacs then segfaults. LLDB trace: * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xc0) frame #0: 0x0000000100238ed5 emacs`-[EmacsView resetCursorRects](self=0x0000000102e3ddd0, _cmd=<unavailable>) at nsterm.m:6707:29 [opt] 6704 - (void)resetCursorRects 6705 { 6706 NSRect visible = [self visibleRect]; -> 6707 NSCursor *currentCursor = FRAME_POINTER_TYPE (emacsframe); 6708 NSTRACE ("[EmacsView resetCursorRects]"); 6709 6710 if (currentCursor == nil) Target 0: (emacs) stopped. warning: emacs was compiled with optimization - stepping may behave oddly; variables may not be available. (lldb) bt * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xc0) * frame #0: 0x0000000100238ed5 emacs`-[EmacsView resetCursorRects](self=0x0000000102e3ddd0, _cmd=<unavailable>) at nsterm.m:6707:29 [opt] frame #1: 0x00007ff819be1b95 AppKit`-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:] + 357 frame #2: 0x00007ff819e520f0 AppKit`_NSViewSubViewMutationSafeApply + 227 frame #3: 0x00007ff819be1c53 AppKit`-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:] + 547 frame #4: 0x00007ff819e520f0 AppKit`_NSViewSubViewMutationSafeApply + 227 frame #5: 0x00007ff819be1c53 AppKit`-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:] + 547 frame #6: 0x00007ff819bdfddf AppKit`-[_NSTrackingAreaAKManager displayCycleUpdateStructuralRegions] + 227 frame #7: 0x00007ff8195f4a84 AppKit`__NSWindowGetDisplayCycleObserverForUpdateStructuralRegions_block_invoke + 390 frame #8: 0x00007ff8195ef701 AppKit`NSDisplayCycleObserverInvoke + 142 frame #9: 0x00007ff8195ef331 AppKit`NSDisplayCycleFlush + 878 frame #10: 0x00007ff81de68f46 QuartzCore`CA::Transaction::run_commit_handlers(CATransactionPhase) + 98 frame #11: 0x00007ff81de67a10 QuartzCore`CA::Transaction::commit() + 380 frame #12: 0x00007ff81968cedf AppKit`__62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 285 frame #13: 0x00007ff819ea3513 AppKit`___NSRunLoopObserverCreateWithHandler_block_invoke + 41 frame #14: 0x00007ff81640d0e2 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 frame #15: 0x00007ff81640d00a CoreFoundation`__CFRunLoopDoObservers + 482 frame #16: 0x00007ff81640c590 CoreFoundation`__CFRunLoopRun + 870 frame #17: 0x00007ff81640bbb0 CoreFoundation`CFRunLoopRunSpecific + 560 frame #18: 0x00007ff81fcedbd6 HIToolbox`RunCurrentEventLoopInMode + 292 frame #19: 0x00007ff81fced9e6 HIToolbox`ReceiveNextEventCommon + 679 frame #20: 0x00007ff81fced723 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 70 frame #21: 0x00007ff81952eb37 AppKit`_DPSNextEvent + 909 frame #22: 0x00007ff81952d9b8 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1219 frame #23: 0x00007ff81951fff3 AppKit`-[NSApplication run] + 586 frame #24: 0x000000010023680d emacs`-[EmacsApp run](self=0x0000000102e09540, _cmd=<unavailable>) at nsterm.m:5818:7 [opt] frame #25: 0x0000000100235395 emacs`ns_select_1(nfds=0, readfds=0x00007ff7bfefdcb0, writefds=0x00007ff7bfefdc00, exceptfds=0x0000000000000000, timeout=0x00007ff7bfefddb0, sigmask=0x0000000000000000, run_loop_only=NO) at nsterm.m:4833:3 [opt] frame #26: 0x0000000100234f54 emacs`ns_select(nfds=<unavailable>, readfds=<unavailable>, writefds=<unavailable>, exceptfds=<unavailable>, timeout=<unavailable>, sigmask=<unavailable>) at nsterm.m:4885:10 [opt] frame #27: 0x00000001001e69b4 emacs`wait_reading_process_output(time_limit=<unavailable>, nsecs=<unavailable>, read_kbd=-1, do_display=true, wait_for_cell=0x0000000000000000, wait_proc=<unavailable>, just_wait_proc=0) at process.c:5689:18 [opt] frame #28: 0x000000010000a705 emacs`sit_for(timeout=<unavailable>, reading=true, display_option=1) at dispnew.c:6252:7 [opt] frame #29: 0x00000001000f7b3a emacs`read_char(commandflag=1, map=0x00000001071456f3, prev_event=0x0000000000000000, used_mouse_menu=0x00007ff7bfefe5df, end_time=0x0000000000000000) at keyboard.c:2872:11 [opt] frame #30: 0x00000001000f3d14 emacs`read_key_sequence(keybuf=<unavailable>, prompt=0x0000000000000000, dont_downcase_last=false, can_return_switch_frame=<unavailable>, fix_current_buffer=true, prevent_redisplay=<unavailable>) at keyboard.c:10074:12 [opt] frame #31: 0x00000001000f1d99 emacs`command_loop_1 at keyboard.c:1376:15 [opt] frame #32: 0x000000010018abf7 emacs`internal_condition_case(bfun=(emacs`command_loop_1 at keyboard.c:1270), handlers=<unavailable>, hfun=(emacs`cmd_error at keyboard.c:928)) at eval.c:1474:25 [opt] frame #33: 0x00000001000f19ce emacs`command_loop_2(handlers=0x0000000000000090) at keyboard.c:1125:11 [opt] frame #34: 0x000000010018a4c1 emacs`internal_catch(tag=<unavailable>, func=(emacs`command_loop_2 at keyboard.c:1121), arg=0x0000000000000090) at eval.c:1197:25 [opt] frame #35: 0x0000000100278ae8 emacs`recursive_edit_1.cold.1 at keyboard.c:1103:2 [opt] frame #36: 0x00000001000f127d emacs`recursive_edit_1 [inlined] command_loop at keyboard.c:1100:5 [opt] frame #37: 0x00000001000f1278 emacs`recursive_edit_1 at keyboard.c:712:9 [opt] frame #38: 0x00000001000f13f3 emacs`Frecursive_edit at keyboard.c:795:3 [opt] frame #39: 0x00000001000f039d emacs`main(argc=<unavailable>, argv=0x00007ff7bfefed40) at emacs.c:2523:3 [opt] frame #40: 0x00007ff816002310 dyld`start + 2432 The trace generated by MacOS is attached below. --8<---------------cut here---------------start------------->8--- ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: emacs [1499] Path: /Users/USER/*/emacs Identifier: emacs Version: ??? Code Type: X86-64 (Native) Parent Process: zsh [98663] Responsible: iTerm2 [85335] User ID: 501 Date/Time: 2022-12-02 19:51:08.8088 +0800 OS Version: macOS 13.0.1 (22A400) Report Version: 12 Bridge OS Version: 7.0 (20P420) Anonymous UUID: 8D5E2A2D-26F7-7169-F0E7-FCBCC909E77F Sleep/Wake UUID: E052EC9A-66FD-4AD3-B1B1-1FD2DF7D8528 Time Awake Since Boot: 600000 seconds Time Since Wake: 1920 seconds System Integrity Protection: disabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000000c0 Exception Codes: 0x0000000000000001, 0x00000000000000c0 VM Region Info: 0xc0 is not in any region. Bytes before following region: 140737487863616 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> shared memory 7ffffff88000-7ffffff89000 [ 4K] r-x/r-x SM=SHM Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x7ff8162fb30e __pthread_kill + 10 1 libsystem_pthread.dylib 0x7ff816332f7b pthread_kill + 263 2 libsystem_c.dylib 0x7ff81623f530 raise + 26 3 emacs 0x101b026e7 terminate_due_to_signal + 167 (emacs.c:464) 4 emacs 0x101b0301b emacs_abort + 15 (sysdep.c:2313) 5 emacs 0x101ac0672 ns_term_shutdown + 162 (nsterm.m:5765) 6 emacs 0x101977e93 shut_down_emacs + 339 (emacs.c:3009) 7 emacs 0x101b026b5 terminate_due_to_signal + 117 (emacs.c:447) 8 emacs 0x10199f9fe handle_fatal_signal + 14 (sysdep.c:1783) 9 emacs 0x10199fa81 deliver_thread_signal + 129 (sysdep.c:1775) 10 emacs 0x10199ddb9 deliver_fatal_thread_signal + 9 (sysdep.c:1795) 11 libsystem_platform.dylib 0x7ff81635dc1d _sigtramp + 29 12 ??? 0x600003c2d590 ??? 13 AppKit 0x7ff819be1b95 -[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:] + 357 14 AppKit 0x7ff819e520f0 _NSViewSubViewMutationSafeApply + 227 15 AppKit 0x7ff819be1c53 -[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:] + 547 16 AppKit 0x7ff819e520f0 _NSViewSubViewMutationSafeApply + 227 17 AppKit 0x7ff819be1c53 -[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:] + 547 18 AppKit 0x7ff819bdfddf -[_NSTrackingAreaAKManager displayCycleUpdateStructuralRegions] + 227 19 AppKit 0x7ff8195f4a84 __NSWindowGetDisplayCycleObserverForUpdateStructuralRegions_block_invoke + 390 20 AppKit 0x7ff8195ef701 NSDisplayCycleObserverInvoke + 142 21 AppKit 0x7ff8195ef331 NSDisplayCycleFlush + 878 22 QuartzCore 0x7ff81de68f46 CA::Transaction::run_commit_handlers(CATransactionPhase) + 98 23 QuartzCore 0x7ff81de67a10 CA::Transaction::commit() + 380 24 AppKit 0x7ff81968cedf __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 285 25 AppKit 0x7ff819ea3513 ___NSRunLoopObserverCreateWithHandler_block_invoke + 41 26 CoreFoundation 0x7ff81640d0e2 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 27 CoreFoundation 0x7ff81640d00a __CFRunLoopDoObservers + 482 28 CoreFoundation 0x7ff81640c590 __CFRunLoopRun + 870 29 CoreFoundation 0x7ff81640bbb0 CFRunLoopRunSpecific + 560 30 HIToolbox 0x7ff81fcedbd6 RunCurrentEventLoopInMode + 292 31 HIToolbox 0x7ff81fced806 ReceiveNextEventCommon + 199 32 HIToolbox 0x7ff81fced723 _BlockUntilNextEventMatchingListInModeWithFilter + 70 33 AppKit 0x7ff81952eb37 _DPSNextEvent + 909 34 AppKit 0x7ff81952d9b8 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1219 35 AppKit 0x7ff81951fff3 -[NSApplication run] + 586 36 emacs 0x101ac080d -[EmacsApp run] + 333 (nsterm.m:5818) 37 emacs 0x101ad72bd ns_read_socket_1 + 685 (nsterm.m:4698) 38 emacs 0x101988d50 gobble_input + 272 (keyboard.c:7417) 39 emacs 0x10198cb2b get_input_pending + 150 (keyboard.c:7373) [inlined] 40 emacs 0x10198cb2b detect_input_pending + 219 (keyboard.c:10877) 41 emacs 0x101a704fd wait_reading_process_output + 3613 (process.c:5563) 42 emacs 0x101894705 sit_for + 437 (dispnew.c:6252) 43 emacs 0x101981b3a read_char + 7034 (keyboard.c:2872) 44 emacs 0x10197dd14 read_key_sequence + 1620 (keyboard.c:10074) 45 emacs 0x10197bd99 command_loop_1 + 953 (keyboard.c:1376) 46 emacs 0x101a14bf7 internal_condition_case + 87 (eval.c:1474) 47 emacs 0x10197b9ce command_loop_2 + 46 (keyboard.c:1125) 48 emacs 0x101a144c1 internal_catch + 81 (eval.c:1197) 49 emacs 0x101b02ae8 recursive_edit_1.cold.1 + 72 (keyboard.c:1103) 50 emacs 0x10197b27d command_loop + 5 (keyboard.c:1100) [inlined] 51 emacs 0x10197b27d recursive_edit_1 + 333 (keyboard.c:712) 52 emacs 0x10197b3f3 Frecursive_edit + 323 (keyboard.c:795) 53 emacs 0x10197a39d main + 9373 (emacs.c:2523) 54 dyld 0x7ff816002310 start + 2432 Thread 1:: gmain 0 libsystem_kernel.dylib 0x7ff8162fd3b6 __select + 10 1 libglib-2.0.0.dylib 0x10296a527 g_poll + 505 2 libglib-2.0.0.dylib 0x10295dbe4 g_main_context_iterate + 349 3 libglib-2.0.0.dylib 0x10295dc95 g_main_context_iteration + 55 4 libglib-2.0.0.dylib 0x10295ed65 glib_worker_main + 30 5 libglib-2.0.0.dylib 0x102981266 g_thread_proxy + 66 6 libsystem_pthread.dylib 0x7ff816333259 _pthread_start + 125 7 libsystem_pthread.dylib 0x7ff81632ec7b thread_start + 15 Thread 2: 0 libsystem_kernel.dylib 0x7ff8162f9442 __pselect + 10 1 libsystem_kernel.dylib 0x7ff8162f9335 pselect$DARWIN_EXTSN + 42 2 emacs 0x101ac19d7 -[EmacsApp fd_handler:] + 263 (nsterm.m:6315) 3 Foundation 0x7ff81725d82c __NSThread__start__ + 1009 4 libsystem_pthread.dylib 0x7ff816333259 _pthread_start + 125 5 libsystem_pthread.dylib 0x7ff81632ec7b thread_start + 15 Thread 3:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x7ff8162f46a2 mach_msg2_trap + 10 1 libsystem_kernel.dylib 0x7ff81630267d mach_msg2_internal + 82 2 libsystem_kernel.dylib 0x7ff8162fb71a mach_msg_overwrite + 723 3 libsystem_kernel.dylib 0x7ff8162f4989 mach_msg + 19 4 CoreFoundation 0x7ff81640dd0e __CFRunLoopServiceMachPort + 145 5 CoreFoundation 0x7ff81640c77a __CFRunLoopRun + 1360 6 CoreFoundation 0x7ff81640bbb0 CFRunLoopRunSpecific + 560 7 AppKit 0x7ff81968e696 _NSEventThread + 132 8 libsystem_pthread.dylib 0x7ff816333259 _pthread_start + 125 9 libsystem_pthread.dylib 0x7ff81632ec7b thread_start + 15 Thread 4: 0 libsystem_pthread.dylib 0x7ff81632ec58 start_wqthread + 0 Thread 5: 0 libsystem_pthread.dylib 0x7ff81632ec58 start_wqthread + 0 Thread 6: 0 libsystem_pthread.dylib 0x7ff81632ec58 start_wqthread + 0 Thread 7: 0 libsystem_pthread.dylib 0x7ff81632ec58 start_wqthread + 0 Thread 8: 0 libsystem_pthread.dylib 0x7ff81632ec58 start_wqthread + 0 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x00007ff859c5e4c0 rcx: 0x00007ff7be6711a8 rdx: 0x0000000000000000 rdi: 0x0000000000000103 rsi: 0x0000000000000006 rbp: 0x00007ff7be6711d0 rsp: 0x00007ff7be6711a8 r8: 0x00007ffffffffff8 r9: 0x00000000000001ff r10: 0x00007ff859c5e4c0 r11: 0x0000000000000246 r12: 0x0000000000000103 r13: 0x00007ff815fc6e00 r14: 0x0000000000000006 r15: 0x0000000000000016 rip: 0x00007ff8162fb30e rfl: 0x0000000000000246 cr2: 0x0000000101b0300c Logical CPU: 0 Error Code: 0x02000148 Trap Number: 133 Thread 0 instruction stream: 00 66 2e 0f 1f 84 00 00-00 00 00 55 48 89 e5 b8 .f.........UH... 01 00 00 00 5d c3 0f 1f-44 00 00 55 48 89 e5 41 ....]...D..UH..A 56 53 48 83 ec 40 49 89-fe 48 85 ff 74 15 48 8b VSH..@I..H..t.H. 15 36 44 09 00 48 8d 7d-d0 4c 89 f6 e8 7a 79 04 .6D..H.}.L...zy. 00 eb 0b 0f 57 c0 0f 29-45 e0 0f 29 45 d0 48 8b ....W..)E..)E.H. 05 66 47 09 00 49 8b 04-06 48 8b 80 c8 01 00 00 .fG..I...H...... [48]8b 98 c0 00 00 00 48-85 db 75 17 48 8b 3d 38 H......H..u.H.=8 <== 45 09 00 48 8b 35 49 32-09 00 ff 15 2b 47 08 00 E..H.5I2....+G.. 48 89 c3 0f 28 45 d0 0f-28 4d e0 0f 11 4c 24 10 H...(E..(M...L$. 0f 11 04 24 e8 7e 6e 04-00 84 c0 75 24 48 8b 35 ...$.~n....u$H.5 27 31 09 00 0f 28 45 d0-0f 28 4d e0 0f 11 4c 24 '1...(E..(M...L$ 10 0f 11 04 24 4c 89 f7-48 89 da ff 15 ea 46 08 ....$L..H.....F. Binary Images: 0x7ff8162f3000 - 0x7ff81632cff7 libsystem_kernel.dylib (*) <0c2fd2c9-777c-3355-b70f-7b1b6e9d1b0b> /usr/lib/system/libsystem_kernel.dylib 0x7ff81632d000 - 0x7ff816338ff7 libsystem_pthread.dylib (*) <13b5e252-77d1-31e1-888d-1c5f4426ea87> /usr/lib/system/libsystem_pthread.dylib 0x7ff8161fb000 - 0x7ff816283fff libsystem_c.dylib (*) <5efaf10b-2ec1-32ed-b077-80125e552c8d> /usr/lib/system/libsystem_c.dylib 0x10188a000 - 0x101b45fff emacs (*) <c378d8f7-48cd-3c53-a238-3156010af5e4> /Users/USER/*/emacs 0x7ff81635a000 - 0x7ff816363ff7 libsystem_platform.dylib (*) <f07558db-8b15-3d96-93f9-3a61bbd52f25> /usr/lib/system/libsystem_platform.dylib 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ??? 0x7ff8194f0000 - 0x7ff81a4f4ff6 com.apple.AppKit (6.9) <817d572e-eb8c-3999-b7a0-68e1c4b47266> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x7ff81de65000 - 0x7ff81e1b4ffd com.apple.QuartzCore (1.11) <10a00482-d136-3e49-bbd5-e9691cc8f82d> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x7ff81638f000 - 0x7ff816827fff com.apple.CoreFoundation (6.9) <dbc459f3-81bb-398a-8f74-3f7392392bb7> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7ff81fcbe000 - 0x7ff81ffb5ff2 com.apple.HIToolbox (2.1.1) <ff73b93b-3c5b-3f73-948f-0a35a80f7fad> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x7ff815ffc000 - 0x7ff81609054f dyld (*) <28fd2071-57f3-3873-87bf-e4f674a82de6> /usr/lib/dyld 0x10292b000 - 0x102a0afff libglib-2.0.0.dylib (*) <71ee11e9-dcf4-3b7f-9389-ec9c6d78175c> /usr/local/Cellar/glib/2.74.0/lib/libglib-2.0.0.dylib 0x7ff817205000 - 0x7ff817c16ff6 com.apple.Foundation (6.9) <eca88952-d3af-357e-80d8-4d31b2dc0c26> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 15953 thread_create: 0 thread_set_state: 280 VM Region Summary: ReadOnly portion of Libraries: Total=469.2M resident=0K(0%) swapped_out_or_unallocated=469.2M(100%) Writable regions: Total=682.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=682.7M(100%) VIRTUAL REGION REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Accelerate framework 256K 2 Activity Tracing 256K 1 CG backing stores 3600K 8 CG image 472K 18 ColorSync 224K 25 CoreAnimation 1048K 46 CoreGraphics 16K 3 CoreImage 60K 5 CoreUI image data 1468K 11 Foundation 16K 1 Image IO 64K 1 Kernel Alloc Once 8K 1 MALLOC 278.7M 77 MALLOC guard page 32K 8 MALLOC_LARGE (reserved) 64K 1 reserved VM address space (unallocated) MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated) STACK GUARD 54.5M 9 Stack 13.6M 10 VM_ALLOCATE 328K 17 __CTF 756 1 __DATA 23.9M 391 __DATA_CONST 16.3M 251 __DATA_DIRTY 653K 108 __FONT_DATA 2352 1 __LINKEDIT 191.7M 50 __OBJC_RO 65.1M 1 __OBJC_RW 1982K 2 __TEXT 277.5M 413 dyld private memory 256K 1 mapped file 207.1M 33 shared memory 808K 23 =========== ======= ======= TOTAL 1.5G 1520 TOTAL, minus reserved VM space 1.1G 1520 ----------- Full Report ----------- {"app_name":"emacs","timestamp":"2022-12-02 19:51:10.00 +0800","app_version":"","slice_uuid":"c378d8f7-48cd-3c53-a238-3156010af5e4","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.0.1 (22A400)","roots_installed":0,"incident_id":"57CB4387-F14F-4EBE-9C21-863AC9EA3AAE","name":"emacs"} { "uptime" : 600000, "procRole" : "Foreground", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "MacBookPro15,1", "coalitionID" : 157187, "osVersion" : { "train" : "macOS 13.0.1", "build" : "22A400", "releaseType" : "User" }, "captureTime" : "2022-12-02 19:51:08.8088 +0800", "incident" : "57CB4387-F14F-4EBE-9C21-863AC9EA3AAE", "pid" : 1499, "cpuType" : "X86-64", "roots_installed" : 0, "bug_type" : "309", "procLaunch" : "2022-12-02 19:50:54.6123 +0800", "procStartAbsTime" : 601804513058053, "procExitAbsTime" : 601818708961946, "procName" : "emacs", "procPath" : "\/Users\/USER\/*\/emacs", "parentProc" : "zsh", "parentPid" : 98663, "coalitionName" : "com.googlecode.iterm2", "crashReporterKey" : "8D5E2A2D-26F7-7169-F0E7-FCBCC909E77F", "responsiblePid" : 85335, "responsibleProc" : "iTerm2", "wakeTime" : 1920, "bridgeVersion" : {"build":"20P420","train":"7.0"}, "sleepWakeUUID" : "E052EC9A-66FD-4AD3-B1B1-1FD2DF7D8528", "sip" : "disabled", "vmRegionInfo" : "0xc0 is not in any region. Bytes before following region: 140737487863616\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n shared memory 7ffffff88000-7ffffff89000 [ 4K] r-x\/r-x SM=SHM ", "exception" : {"codes":"0x0000000000000001, 0x00000000000000c0","rawCodes":[1,192],"type":"EXC_BAD_ACCESS","signal":"SIGABRT","subtype":"KERN_INVALID_ADDRESS at 0x00000000000000c0"}, "vmregioninfo" : "0xc0 is not in any region. Bytes before following region: 140737487863616\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n shared memory 7ffffff88000-7ffffff89000 [ 4K] r-x\/r-x SM=SHM ", "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":280,"task_for_pid":15953},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "faultingThread" : 0, "threads" : [{"triggered":true,"id":9665693,"instructionState":{"instructionStream":{"bytes":[0,102,46,15,31,132,0,0,0,0,0,85,72,137,229,184,1,0,0,0,93,195,15,31,68,0,0,85,72,137,229,65,86,83,72,131,236,64,73,137,254,72,133,255,116,21,72,139,21,54,68,9,0,72,141,125,208,76,137,246,232,122,121,4,0,235,11,15,87,192,15,41,69,224,15,41,69,208,72,139,5,102,71,9,0,73,139,4,6,72,139,128,200,1,0,0,72,139,152,192,0,0,0,72,133,219,117,23,72,139,61,56,69,9,0,72,139,53,73,50,9,0,255,21,43,71,8,0,72,137,195,15,40,69,208,15,40,77,224,15,17,76,36,16,15,17,4,36,232,126,110,4,0,132,192,117,36,72,139,53,39,49,9,0,15,40,69,208,15,40,77,224,15,17,76,36,16,15,17,4,36,76,137,247,72,137,218,255,21,234,70,8],"offset":96}},"threadState":{"r13":{"value":140703497481728,"symbolLocation":0,"symbol":"objc_msgSend"},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":140737488355320},"cr2":{"value":4323291148},"rdx":{"value":0},"r10":{"value":140704634758336,"symbolLocation":0,"symbol":"_main_thread"},"r9":{"value":511},"r15":{"value":22},"rbx":{"value":140704634758336,"symbolLocation":0,"symbol":"_main_thread"},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703500841742,"matchesCrashFrame":1},"rbp":{"value":140702028075472},"rsp":{"value":140702028075432},"r12":{"value":259},"rcx":{"value":140702028075432},"flavor":"x86_THREAD_STATE","rdi":{"value":259}},"queue":"com.apple.main-thread","frames":[{"imageOffset":33550,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":24443,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":279856,"symbol":"raise","symbolLocation":26,"imageIndex":2},{"imageOffset":2590439,"sourceLine":464,"sourceFile":"emacs.c","symbol":"terminate_due_to_signal","imageIndex":3,"symbolLocation":167},{"imageOffset":2592795,"sourceLine":2313,"sourceFile":"sysdep.c","symbol":"emacs_abort","imageIndex":3,"symbolLocation":15},{"imageOffset":2319986,"sourceLine":5765,"sourceFile":"nsterm.m","symbol":"ns_term_shutdown","imageIndex":3,"symbolLocation":162},{"imageOffset":974483,"sourceLine":3009,"sourceFile":"emacs.c","symbol":"shut_down_emacs","imageIndex":3,"symbolLocation":339},{"imageOffset":2590389,"sourceLine":447,"sourceFile":"emacs.c","symbol":"terminate_due_to_signal","imageIndex":3,"symbolLocation":117},{"imageOffset":1137150,"sourceLine":1783,"sourceFile":"sysdep.c","symbol":"handle_fatal_signal","imageIndex":3,"symbolLocation":14},{"imageOffset":1137281,"sourceLine":1775,"sourceFile":"sysdep.c","symbol":"deliver_thread_signal","imageIndex":3,"symbolLocation":129},{"imageOffset":1129913,"sourceLine":1795,"sourceFile":"sysdep.c","symbol":"deliver_fatal_thread_signal","imageIndex":3,"symbolLocation":9},{"imageOffset":15389,"symbol":"_sigtramp","symbolLocation":29,"imageIndex":4},{"imageOffset":105553179366800,"imageIndex":5},{"imageOffset":7281557,"symbol":"-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:]","symbolLocation":357,"imageIndex":6},{"imageOffset":9838832,"symbol":"_NSViewSubViewMutationSafeApply","symbolLocation":227,"imageIndex":6},{"imageOffset":7281747,"symbol":"-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:]","symbolLocation":547,"imageIndex":6},{"imageOffset":9838832,"symbol":"_NSViewSubViewMutationSafeApply","symbolLocation":227,"imageIndex":6},{"imageOffset":7281747,"symbol":"-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:]","symbolLocation":547,"imageIndex":6},{"imageOffset":7273951,"symbol":"-[_NSTrackingAreaAKManager displayCycleUpdateStructuralRegions]","symbolLocation":227,"imageIndex":6},{"imageOffset":1067652,"symbol":"__NSWindowGetDisplayCycleObserverForUpdateStructuralRegions_block_invoke","symbolLocation":390,"imageIndex":6},{"imageOffset":1046273,"symbol":"NSDisplayCycleObserverInvoke","symbolLocation":142,"imageIndex":6},{"imageOffset":1045297,"symbol":"NSDisplayCycleFlush","symbolLocation":878,"imageIndex":6},{"imageOffset":16198,"symbol":"CA::Transaction::run_commit_handlers(CATransactionPhase)","symbolLocation":98,"imageIndex":7},{"imageOffset":10768,"symbol":"CA::Transaction::commit()","symbolLocation":380,"imageIndex":7},{"imageOffset":1691359,"symbol":"__62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke","symbolLocation":285,"imageIndex":6},{"imageOffset":10171667,"symbol":"___NSRunLoopObserverCreateWithHandler_block_invoke","symbolLocation":41,"imageIndex":6},{"imageOffset":516322,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__","symbolLocation":23,"imageIndex":8},{"imageOffset":516106,"symbol":"__CFRunLoopDoObservers","symbolLocation":482,"imageIndex":8},{"imageOffset":513424,"symbol":"__CFRunLoopRun","symbolLocation":870,"imageIndex":8},{"imageOffset":510896,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":8},{"imageOffset":195542,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":9},{"imageOffset":194566,"symbol":"ReceiveNextEventCommon","symbolLocation":199,"imageIndex":9},{"imageOffset":194339,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":70,"imageIndex":9},{"imageOffset":256823,"symbol":"_DPSNextEvent","symbolLocation":909,"imageIndex":6},{"imageOffset":252344,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":1219,"imageIndex":6},{"imageOffset":196595,"symbol":"-[NSApplication run]","symbolLocation":586,"imageIndex":6},{"imageOffset":2320397,"sourceLine":5818,"sourceFile":"nsterm.m","symbol":"-[EmacsApp run]","imageIndex":3,"symbolLocation":333},{"imageOffset":2413245,"sourceLine":4698,"sourceFile":"nsterm.m","symbol":"ns_read_socket_1","imageIndex":3,"symbolLocation":685},{"imageOffset":1043792,"sourceLine":7417,"sourceFile":"keyboard.c","symbol":"gobble_input","imageIndex":3,"symbolLocation":272},{"symbol":"get_input_pending","inline":true,"imageIndex":3,"imageOffset":1059627,"symbolLocation":150,"sourceLine":7373,"sourceFile":"keyboard.c"},{"imageOffset":1059627,"sourceLine":10877,"sourceFile":"keyboard.c","symbol":"detect_input_pending","imageIndex":3,"symbolLocation":219},{"imageOffset":1991933,"sourceLine":5563,"sourceFile":"process.c","symbol":"wait_reading_process_output","imageIndex":3,"symbolLocation":3613},{"imageOffset":42757,"sourceLine":6252,"sourceFile":"dispnew.c","symbol":"sit_for","imageIndex":3,"symbolLocation":437},{"imageOffset":1014586,"sourceLine":2872,"sourceFile":"keyboard.c","symbol":"read_char","imageIndex":3,"symbolLocation":7034},{"imageOffset":998676,"sourceLine":10074,"sourceFile":"keyboard.c","symbol":"read_key_sequence","imageIndex":3,"symbolLocation":1620},{"imageOffset":990617,"sourceLine":1376,"sourceFile":"keyboard.c","symbol":"command_loop_1","imageIndex":3,"symbolLocation":953},{"imageOffset":1616887,"sourceLine":1474,"sourceFile":"eval.c","symbol":"internal_condition_case","imageIndex":3,"symbolLocation":87},{"imageOffset":989646,"sourceLine":1125,"sourceFile":"keyboard.c","symbol":"command_loop_2","imageIndex":3,"symbolLocation":46},{"imageOffset":1615041,"sourceLine":1197,"sourceFile":"eval.c","symbol":"internal_catch","imageIndex":3,"symbolLocation":81},{"imageOffset":2591464,"sourceLine":1103,"sourceFile":"keyboard.c","symbol":"recursive_edit_1.cold.1","imageIndex":3,"symbolLocation":72},{"symbol":"command_loop","inline":true,"imageIndex":3,"imageOffset":987773,"symbolLocation":5,"sourceLine":1100,"sourceFile":"keyboard.c"},{"imageOffset":987773,"sourceLine":712,"sourceFile":"keyboard.c","symbol":"recursive_edit_1","imageIndex":3,"symbolLocation":333},{"imageOffset":988147,"sourceLine":795,"sourceFile":"keyboard.c","symbol":"Frecursive_edit","imageIndex":3,"symbolLocation":323},{"imageOffset":983965,"sourceLine":2523,"sourceFile":"emacs.c","symbol":"main","imageIndex":3,"symbolLocation":9373},{"imageOffset":25360,"symbol":"start","symbolLocation":2432,"imageIndex":10}]},{"id":9665699,"name":"gmain","frames":[{"imageOffset":41910,"symbol":"__select","symbolLocation":10,"imageIndex":0},{"imageOffset":259367,"symbol":"g_poll","symbolLocation":505,"imageIndex":11},{"imageOffset":207844,"symbol":"g_main_context_iterate","symbolLocation":349,"imageIndex":11},{"imageOffset":208021,"symbol":"g_main_context_iteration","symbolLocation":55,"imageIndex":11},{"imageOffset":212325,"symbol":"glib_worker_main","symbolLocation":30,"imageIndex":11},{"imageOffset":352870,"symbol":"g_thread_proxy","symbolLocation":66,"imageIndex":11},{"imageOffset":25177,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":7291,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":9665715,"frames":[{"imageOffset":25666,"symbol":"__pselect","symbolLocation":10,"imageIndex":0},{"imageOffset":25397,"symbol":"pselect$DARWIN_EXTSN","symbolLocation":42,"imageIndex":0},{"imageOffset":2324951,"sourceLine":6315,"sourceFile":"nsterm.m","symbol":"-[EmacsApp fd_handler:]","imageIndex":3,"symbolLocation":263},{"imageOffset":362540,"symbol":"__NSThread__start__","symbolLocation":1009,"imageIndex":12},{"imageOffset":25177,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":7291,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":9665725,"name":"com.apple.NSEventThread","frames":[{"imageOffset":5794,"symbol":"mach_msg2_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":63101,"symbol":"mach_msg2_internal","symbolLocation":82,"imageIndex":0},{"imageOffset":34586,"symbol":"mach_msg_overwrite","symbolLocation":723,"imageIndex":0},{"imageOffset":6537,"symbol":"mach_msg","symbolLocation":19,"imageIndex":0},{"imageOffset":519438,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":145,"imageIndex":8},{"imageOffset":513914,"symbol":"__CFRunLoopRun","symbolLocation":1360,"imageIndex":8},{"imageOffset":510896,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":8},{"imageOffset":1697430,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":6},{"imageOffset":25177,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":7291,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":9665730,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":9665791,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":9665793,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":9665795,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":9665932,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]}], "usedImages" : [ { "source" : "P", "arch" : "x86_64", "base" : 140703500808192, "size" : 237560, "uuid" : "0c2fd2c9-777c-3355-b70f-7b1b6e9d1b0b", "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", "name" : "libsystem_kernel.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 140703501045760, "size" : 49144, "uuid" : "13b5e252-77d1-31e1-888d-1c5f4426ea87", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 140703499792384, "size" : 561152, "uuid" : "5efaf10b-2ec1-32ed-b077-80125e552c8d", "path" : "\/usr\/lib\/system\/libsystem_c.dylib", "name" : "libsystem_c.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 4320698368, "size" : 2867200, "uuid" : "c378d8f7-48cd-3c53-a238-3156010af5e4", "path" : "\/Users\/USER\/*\/emacs", "name" : "emacs" }, { "source" : "P", "arch" : "x86_64", "base" : 140703501230080, "size" : 40952, "uuid" : "f07558db-8b15-3d96-93f9-3a61bbd52f25", "path" : "\/usr\/lib\/system\/libsystem_platform.dylib", "name" : "libsystem_platform.dylib" }, { "size" : 0, "source" : "A", "base" : 0, "uuid" : "00000000-0000-0000-0000-000000000000" }, { "source" : "P", "arch" : "x86_64", "base" : 140703553224704, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.AppKit", "size" : 16797687, "uuid" : "817d572e-eb8c-3999-b7a0-68e1c4b47266", "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit", "name" : "AppKit", "CFBundleVersion" : "2299" }, { "source" : "P", "arch" : "x86_64", "base" : 140703630249984, "CFBundleShortVersionString" : "1.11", "CFBundleIdentifier" : "com.apple.QuartzCore", "size" : 3473406, "uuid" : "10a00482-d136-3e49-bbd5-e9691cc8f82d", "path" : "\/System\/Library\/Frameworks\/QuartzCore.framework\/Versions\/A\/QuartzCore", "name" : "QuartzCore", "CFBundleVersion" : "1042.20" }, { "source" : "P", "arch" : "x86_64h", "base" : 140703501447168, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.CoreFoundation", "size" : 4820992, "uuid" : "dbc459f3-81bb-398a-8f74-3f7392392bb7", "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation", "name" : "CoreFoundation", "CFBundleVersion" : "1953.1" }, { "source" : "P", "arch" : "x86_64", "base" : 140703662071808, "CFBundleShortVersionString" : "2.1.1", "CFBundleIdentifier" : "com.apple.HIToolbox", "size" : 3112947, "uuid" : "ff73b93b-3c5b-3f73-948f-0a35a80f7fad", "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox", "name" : "HIToolbox" }, { "source" : "P", "arch" : "x86_64", "base" : 140703497699328, "size" : 607568, "uuid" : "28fd2071-57f3-3873-87bf-e4f674a82de6", "path" : "\/usr\/lib\/dyld", "name" : "dyld" }, { "source" : "P", "arch" : "x86_64", "base" : 4338135040, "size" : 917504, "uuid" : "71ee11e9-dcf4-3b7f-9389-ec9c6d78175c", "path" : "\/usr\/local\/Cellar\/glib\/2.74.0\/lib\/libglib-2.0.0.dylib", "name" : "libglib-2.0.0.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 140703516610560, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.Foundation", "size" : 10559479, "uuid" : "eca88952-d3af-357e-80d8-4d31b2dc0c26", "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation", "name" : "Foundation", "CFBundleVersion" : "1953.1" } ], "sharedCache" : { "base" : 140703497093120, "size" : 21474836480, "uuid" : "840e528a-0c70-3c6a-b7b4-4f05f32ccc51" }, "vmSummary" : "ReadOnly portion of Libraries: Total=469.2M resident=0K(0%) swapped_out_or_unallocated=469.2M(100%)\nWritable regions: Total=682.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=682.7M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 256K 2 \nActivity Tracing 256K 1 \nCG backing stores 3600K 8 \nCG image 472K 18 \nColorSync 224K 25 \nCoreAnimation 1048K 46 \nCoreGraphics 16K 3 \nCoreImage 60K 5 \nCoreUI image data 1468K 11 \nFoundation 16K 1 \nImage IO 64K 1 \nKernel Alloc Once 8K 1 \nMALLOC 278.7M 77 \nMALLOC guard page 32K 8 \nMALLOC_LARGE (reserved) 64K 1 reserved VM address space (unallocated)\nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 54.5M 9 \nStack 13.6M 10 \nVM_ALLOCATE 328K 17 \n__CTF 756 1 \n__DATA 23.9M 391 \n__DATA_CONST 16.3M 251 \n__DATA_DIRTY 653K 108 \n__FONT_DATA 2352 1 \n__LINKEDIT 191.7M 50 \n__OBJC_RO 65.1M 1 \n__OBJC_RW 1982K 2 \n__TEXT 277.5M 413 \ndyld private memory 256K 1 \nmapped file 207.1M 33 \nshared memory 808K 23 \n=========== ======= ======= \nTOTAL 1.5G 1520 \nTOTAL, minus reserved VM space 1.1G 1520 \n", "legacyInfo" : { "threadTriggered" : { "queue" : "com.apple.main-thread" } }, "trialInfo" : { "rollouts" : [ { "rolloutId" : "5ffde50ce2aacd000d47a95f", "factorPackIds" : { }, "deploymentId" : 240000223 }, { "rolloutId" : "61fd92db295c182621ececc3", "factorPackIds" : { "SIRI_DIALOG_ASSETS" : "6357deb4892de80b72cc9b97" }, "deploymentId" : 240000215 } ], "experiments" : [ ] } } Model: MacBookPro15,1, BootROM 1916.40.8.0.0 (iBridge: 20.16.420.0.0,0), 6 processors, 6-Core Intel Core i7, 2.6 GHz, 16 GB, SMC Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In Graphics: Radeon Pro 555X, Radeon Pro 555X, PCIe, 4 GB Display: LV273HUPR, 3840 x 2160 (2160p/4K UHD 1 - Ultra High Definition), Main, MirrorOff, Online Display: DELL D2421DS, 1920 x 1080 (1080p FHD - Full High Definition), MirrorOff, Online Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, DDR4, 2400 MHz, SK Hynix, HMA81GS6AFR8N-UH Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, DDR4, 2400 MHz, SK Hynix, HMA81GS6AFR8N-UH AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Sep 14 2022 18:10:05 version 9.30.489.3.32.5.84 FWID 01-31bf0e8d Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports Network Service: AX88179A, Ethernet, en6 Network Service: Wi-Fi, AirPort, en0 USB Device: USB3.0 Hub USB Device: AX88179A USB Device: USB31Bus USB Device: 3-Port USB 2.1 Hub USB Device: USB2.0 Hub USB Device: USB Billboard Device USB Device: USB Receiver USB Device: T2Bus USB Device: Touch Bar Backlight USB Device: Touch Bar Display USB Device: Apple Internal Keyboard / Trackpad USB Device: Headset USB Device: Ambient Light Sensor USB Device: FaceTime HD Camera (Built-in) USB Device: Apple T2 Controller Thunderbolt Bus: MacBook Pro, Apple Inc., 47.5 Thunderbolt Bus: MacBook Pro, Apple Inc., 47.5 --8<---------------cut here---------------end--------------->8--- In GNU Emacs 29.0.60 (build 4, x86_64-apple-darwin22.1.0, NS appkit-2299.00 Version 13.0.1 (Build 22A400)) of 2022-11-29 built on Kais-MacBook.local Repository revision: 067c65578e02034d7605f1dcaf6a6d0c4bbdbda3 Repository branch: emacs-29 Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.0.1 Configured using: 'configure --with-xwidgets --with-json --with-native-compilation' Configured features: ACL DBUS GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS ZLIB Important settings: value of $LC_ALL: zh_CN.utf-8 value of $LANG: zh_CN.utf-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: global-wakatime-mode: t wakatime-mode: t popper-echo-mode: t popper-mode: t hl-todo-mode: t rainbow-delimiters-mode: t display-line-numbers-mode: t recentf-mode: t yas-global-mode: t yas-minor-mode: t winner-mode: t winum-mode: t which-key-mode: t corfu-popupinfo-mode: t global-corfu-mode: t corfu-mode: t marginalia-mode: t vertico-mouse-mode: t vertico-mode: t projectile-mode: t keyfreq-autosave-mode: t keyfreq-mode: t rime-regexp-mode: t prescient-persist-mode: t global-ligature-mode: t ligature-mode: t ns-auto-titlebar-mode: t electric-pair-mode: t override-global-mode: t global-auto-revert-mode: t global-so-long-mode: t delete-selection-mode: t pixel-scroll-precision-mode: t tooltip-mode: t global-eldoc-mode: t 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 column-number-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t hs-minor-mode: t Features: (shadow sort ecomplete mail-extr emacsbug message yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa epg rfc6068 epg-config mailabbrev gmm-utils mailheader sendmail vertico-directory cus-edit pp cus-start wakatime-mode autoinsert popper-echo popper hideshow hl-todo rainbow-delimiters display-line-numbers recentf tree-widget yasnippet winner winum which-key corfu-popupinfo kind-icon svg-lib color svg dom xml corfu-prescient corfu marginalia vertico-mouse vertico projectile project grep compile comint ansi-osc ansi-color ibuf-ext ibuffer ibuffer-loaddefs thingatpt pcase keyfreq prelude-erc prelude-apps rime-regexp rime rime-predicates xdg posframe popup dash prelude-mail gnus nnheader gnus-util text-property-search time-date mail-utils range wid-edit prelude-os prelude-help prelude-lang-zig prelude-lang-web prelude-lang-agda agda2 prelude-lang-haskell derived prelude-lang-js prelude-lang-ml prelude-lang-coq prelude-lang-rust prelude-lang-python prelude-lang-cc prelude-lang-lisp prelude-prog prelude-blog prelude-org prelude-tex prelude-git prelude-dired prelude-chinese prelude-project prelude-ibuffer prelude-completion orderless prescient char-fold prelude-search prelude-workspace prelude-ui ligature ns-auto-titlebar prelude-core elec-pair use-package-diminish diminish exec-path-from-shell use-package-ensure undohist edmacro kmacro use-package-bind-key bind-key easy-mmode autorevert filenotify so-long delsel no-littering compat compat-macs prelude-benchmark benchmark-init comp comp-cstr warnings icons advice prelude-common prelude-package quelpa-use-package cl-extra use-package-core quelpa mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr lisp-mnt monokai-theme pixel-scroll cua-base cus-load prelude-loaddefs helpful-autoloads geiser-guile-autoloads flycheck-grammarly-autoloads flymake-grammarly-autoloads eyebrowse-autoloads carbon-now-sh-autoloads benchmark-init-autoloads company-coq-autoloads elisp-demos-autoloads vertico-prescient-autoloads kind-icon-autoloads grammarly-autoloads w3m-autoloads pinyinlib-autoloads lsp-pyright-autoloads autothemer-autoloads d2-mode-autoloads org-roam-ui-autoloads elisp-refs-autoloads cdlatex-autoloads ns-auto-titlebar-autoloads rime-autoloads helm-swoop-autoloads highlight-indent-guides-autoloads paredit-autoloads vterm-autoloads treemacs-all-the-icons-autoloads clhs-autoloads popper-autoloads merlin-autoloads rainbow-identifiers-autoloads swift-mode-autoloads rainbow-delimiters-autoloads org-roam-bibtex-autoloads rustic-autoloads xterm-color-autoloads rust-mode-autoloads yaml-mode-autoloads multiple-cursors-autoloads websocket-autoloads dired-filter-autoloads auctex-autoloads tex-site company-math-autoloads company-autoloads zig-mode-autoloads ivy-autoloads debbugs-autoloads highlight-indentation-autoloads git-timemachine-autoloads org-noter-autoloads rotate-autoloads vundo-autoloads diredfl-autoloads embark-consult-autoloads embark-autoloads citre-autoloads nix-mode-autoloads request-autoloads agitate-autoloads helm-bibtex-autoloads helm-autoloads helm-core-autoloads org-download-autoloads async-autoloads wakatime-mode-autoloads deft-autoloads crdt-autoloads eat-autoloads cmake-mode-autoloads all-the-icons-dired-autoloads editorconfig-autoloads python-mode-autoloads dash-at-point-autoloads cape-autoloads elfeed-autoloads js2-mode-autoloads ripgrep-autoloads dumb-jump-autoloads rainbow-mode-autoloads blink-search-autoloads utop-autoloads tuareg-autoloads rx caml-autoloads modus-themes-autoloads simple-httpd-autoloads which-key-autoloads org-modern-autoloads quickrun-autoloads geiser-racket-autoloads geiser-impl help-fns radix-tree help-mode geiser-custom geiser-base ring geiser-autoloads project-autoloads org-ref-autoloads ox-pandoc-autoloads citeproc-autoloads queue-autoloads bibtex-completion-autoloads htmlize-autoloads speed-type-autoloads persp-mode-autoloads ccls-autoloads expand-region-autoloads modern-cpp-font-lock-autoloads cnfonts-autoloads ob-rust-autoloads biblio-autoloads biblio-core-autoloads org-latex-impatient-autoloads hyperbole-autoloads undohist-autoloads alert-autoloads gntp-autoloads string-inflection-autoloads catppuccin-theme-autoloads keyfreq-autoloads forge-autoloads magit-autoloads git-commit-autoloads with-editor-autoloads transient-autoloads closql-autoloads ormolu-autoloads reformatter-autoloads diminish-autoloads dired-hacks-utils-autoloads wgrep-autoloads diredful-autoloads meow-autoloads org-appear-autoloads orderless-autoloads nix-sandbox-autoloads web-mode-autoloads org-roam-autoloads magit-section-autoloads emacsql-sqlite-autoloads typescript-mode-autoloads flycheck-haskell-autoloads haskell-mode-autoloads flycheck-autoloads pkg-info-autoloads epl-autoloads xref-autoloads power-mode-autoloads google-translate-autoloads popup-autoloads ghub-autoloads treepy-autoloads quelpa-use-package-autoloads use-package-autoloads bind-key-autoloads quelpa-autoloads log4e-autoloads parsebib-autoloads treemacs-projectile-autoloads projectile-autoloads valign-autoloads visual-fill-column-autoloads smartparens-autoloads ef-themes-autoloads yasnippet-autoloads corfu-prescient-autoloads corfu-autoloads hl-todo-autoloads dockerfile-mode-autoloads dune-autoloads all-the-icons-ibuffer-autoloads all-the-icons-autoloads math-symbol-lists-autoloads sly-autoloads color-rg-autoloads typit-autoloads mmt-autoloads go-translate-autoloads nov-autoloads esxml-autoloads kv-autoloads proof-general-autoloads proof-site proof-autoloads vertico-posframe-autoloads vertico-autoloads indent-guide-autoloads pdf-tools-autoloads tablist-autoloads lsp-ui-autoloads no-littering-autoloads svg-lib-autoloads doom-themes-autoloads ligature-autoloads minimap-autoloads prescient-autoloads winum-autoloads marginalia-autoloads consult-autoloads compat-autoloads clojure-mode-autoloads emacsql-autoloads dap-mode-autoloads lsp-docker-autoloads yaml-autoloads lsp-treemacs-autoloads treemacs-autoloads cfrs-autoloads posframe-autoloads hydra-autoloads pfuture-autoloads ace-window-autoloads avy-autoloads bui-autoloads lsp-mode-autoloads lv-autoloads markdown-mode-autoloads spinner-autoloads ht-autoloads f-autoloads s-autoloads info dash-autoloads exec-path-from-shell-autoloads monokai-theme-autoloads 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 xwidget-internal dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 858873 299451) (symbols 48 24529 4) (strings 32 646221 60300) (string-bytes 1 37534266) (vectors 16 41125) (vector-slots 8 1445087 407399) (floats 8 368 969) (intervals 56 679 73) (buffers 992 12))
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sat, 03 Dec 2022 10:10:01 GMT) Full text and rfc822 format available.Message #8 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Po Lu <luangruo <at> yahoo.com> To: Kai Ma <justksqsf <at> gmail.com> Cc: 59794 <at> debbugs.gnu.org Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed Date: Sat, 03 Dec 2022 18:08:56 +0800
Kai Ma <justksqsf <at> gmail.com> writes: > Emacs segfaults when a fullscreen frame is being deleted. > > Steps to reproduce on emacs -Q: > > 1. Launch an emacs instance. The default frame should be in the window > mode for now. > > 2. C-x 5 2 > > 3. In the new frame, M-x toggle-frame-fullscreen. > > 4. In the new frame, C-x 5 0 to delete the frame. > > Emacs then segfaults. > > LLDB trace: > > * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xc0) > frame #0: 0x0000000100238ed5 emacs`-[EmacsView resetCursorRects](self=0x0000000102e3ddd0, _cmd=<unavailable>) at nsterm.m:6707:29 [opt] > 6704 - (void)resetCursorRects > 6705 { > 6706 NSRect visible = [self visibleRect]; > -> 6707 NSCursor *currentCursor = FRAME_POINTER_TYPE (emacsframe); > 6708 NSTRACE ("[EmacsView resetCursorRects]"); > 6709 > 6710 if (currentCursor == nil) > Target 0: (emacs) stopped. > warning: emacs was compiled with optimization - stepping may behave oddly; variables may not be available. > (lldb) bt > * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xc0) > * frame #0: 0x0000000100238ed5 emacs`-[EmacsView resetCursorRects](self=0x0000000102e3ddd0, _cmd=<unavailable>) at nsterm.m:6707:29 [opt] > frame #1: 0x00007ff819be1b95 AppKit`-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:] + 357 > frame #2: 0x00007ff819e520f0 AppKit`_NSViewSubViewMutationSafeApply + 227 > frame #3: 0x00007ff819be1c53 AppKit`-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:] + 547 > frame #4: 0x00007ff819e520f0 AppKit`_NSViewSubViewMutationSafeApply + 227 > frame #5: 0x00007ff819be1c53 AppKit`-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:] + 547 > frame #6: 0x00007ff819bdfddf AppKit`-[_NSTrackingAreaAKManager displayCycleUpdateStructuralRegions] + 227 > frame #7: 0x00007ff8195f4a84 AppKit`__NSWindowGetDisplayCycleObserverForUpdateStructuralRegions_block_invoke + 390 > frame #8: 0x00007ff8195ef701 AppKit`NSDisplayCycleObserverInvoke + 142 > frame #9: 0x00007ff8195ef331 AppKit`NSDisplayCycleFlush + 878 > frame #10: 0x00007ff81de68f46 QuartzCore`CA::Transaction::run_commit_handlers(CATransactionPhase) + 98 > frame #11: 0x00007ff81de67a10 QuartzCore`CA::Transaction::commit() + 380 > frame #12: 0x00007ff81968cedf AppKit`__62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 285 > frame #13: 0x00007ff819ea3513 AppKit`___NSRunLoopObserverCreateWithHandler_block_invoke + 41 > frame #14: 0x00007ff81640d0e2 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 > frame #15: 0x00007ff81640d00a CoreFoundation`__CFRunLoopDoObservers + 482 > frame #16: 0x00007ff81640c590 CoreFoundation`__CFRunLoopRun + 870 > frame #17: 0x00007ff81640bbb0 CoreFoundation`CFRunLoopRunSpecific + 560 > frame #18: 0x00007ff81fcedbd6 HIToolbox`RunCurrentEventLoopInMode + 292 > frame #19: 0x00007ff81fced9e6 HIToolbox`ReceiveNextEventCommon + 679 > frame #20: 0x00007ff81fced723 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 70 > frame #21: 0x00007ff81952eb37 AppKit`_DPSNextEvent + 909 > frame #22: 0x00007ff81952d9b8 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1219 > frame #23: 0x00007ff81951fff3 AppKit`-[NSApplication run] + 586 > frame #24: 0x000000010023680d emacs`-[EmacsApp run](self=0x0000000102e09540, _cmd=<unavailable>) at nsterm.m:5818:7 [opt] > frame #25: 0x0000000100235395 emacs`ns_select_1(nfds=0, readfds=0x00007ff7bfefdcb0, writefds=0x00007ff7bfefdc00, exceptfds=0x0000000000000000, timeout=0x00007ff7bfefddb0, sigmask=0x0000000000000000, run_loop_only=NO) at nsterm.m:4833:3 [opt] > frame #26: 0x0000000100234f54 emacs`ns_select(nfds=<unavailable>, readfds=<unavailable>, writefds=<unavailable>, exceptfds=<unavailable>, timeout=<unavailable>, sigmask=<unavailable>) at nsterm.m:4885:10 [opt] This time I cannot reproduce the bug on GNUstep. It looks as if a reference to the EmacsFrame is being kept even after the frame has been destroyed. Would someone who knows what `NSView resetCursorRects' does in Mac OS speak up?
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sat, 03 Dec 2022 10:29:02 GMT) Full text and rfc822 format available.Message #11 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Eli Zaretskii <eliz <at> gnu.org> To: Kai Ma <justksqsf <at> gmail.com> Cc: 59794 <at> debbugs.gnu.org Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed Date: Sat, 03 Dec 2022 12:27:50 +0200
> From: Kai Ma <justksqsf <at> gmail.com> > Date: Fri, 02 Dec 2022 20:01:31 +0800 > > > Emacs segfaults when a fullscreen frame is being deleted. > > Steps to reproduce on emacs -Q: > > 1. Launch an emacs instance. The default frame should be in the window > mode for now. > > 2. C-x 5 2 > > 3. In the new frame, M-x toggle-frame-fullscreen. > > 4. In the new frame, C-x 5 0 to delete the frame. > > Emacs then segfaults. It doesn't segfault on MS-Windows, so I guess this is NS-specific.
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sat, 03 Dec 2022 11:45:01 GMT) Full text and rfc822 format available.Message #14 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Gerd Möllmann <gerd.moellmann <at> gmail.com> To: eliz <at> gnu.org Cc: 59794 <at> debbugs.gnu.org, justksqsf <at> gmail.com Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed Date: Sat, 3 Dec 2022 12:44:06 +0100
FWIW, no crash here with dd7a7633bebc4db5caca3898bf318721f1f370c8 (master), macOS 13.0.1, ASAN enabled.
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sat, 03 Dec 2022 13:55:02 GMT) Full text and rfc822 format available.Message #17 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Gerd Möllmann <gerd.moellmann <at> gmail.com> To: Kai Ma <justksqsf <at> gmail.com> Cc: 59794 <at> debbugs.gnu.org, eliz <at> gnu.org Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed Date: Sat, 3 Dec 2022 14:53:53 +0100
[Message part 1 (text/plain, inline)]
On 03.12.22 14:03, Kai Ma wrote: > > >> On Dec 3, 2022, at 19:44, Gerd Möllmann <gerd.moellmann <at> gmail.com> wrote: >> >> FWIW, no crash here with dd7a7633bebc4db5caca3898bf318721f1f370c8 (master), macOS 13.0.1, ASAN enabled. > > Weird. I tested this commit with the default configure options and it segfaulted. How to enable ASAN? I forgot to mentions that I have an M1 here, maybe it's that. For simplicity, I attach a crude shell script that I use for building Emacs. Please search for "sanitize" in the script. You'll have to add something to CFLAGS and LDFLAGS. I'm using Xcode 14.1 for building.
[make-emacs (text/plain, attachment)]
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sat, 03 Dec 2022 20:33:02 GMT) Full text and rfc822 format available.Message #20 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Kai Ma <justksqsf <at> gmail.com> To: 59794 <at> debbugs.gnu.org Subject: Re: bug#59794: Acknowledgement (29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Sat, 03 Dec 2022 18:48:15 +0800
[Message part 1 (text/plain, inline)]
I did some investigation, but I was unable to identify the problem on the Emacs side. I traced the code, and found that even after [[view window] close] is called (nsterm.m L1626), [EmacsView resetCursorRects:] can still be invoked for that window. To my understanding, such calls are initiated by AppKit, not in the control of Emacs. Also, Emacs 27 and Emacs 28 (NS) also suffer from exactly the same issue (the same invalid access). I was unable to reproduce it using the Mac port. Given the severity of segfaults, I suspect it's very likely due to upstream Cocoa changes that only cause problems on newer versions of macOS. I'm currently using the trivial fix to prevent further data loss:
[0001-Prevent-a-segfault-when-deleting-a-fullscreen-frame-.patch (text/x-patch, attachment)]
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sat, 03 Dec 2022 20:33:03 GMT) Full text and rfc822 format available.Message #23 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Kai Ma <justksqsf <at> gmail.com> To: Gerd Möllmann <gerd.moellmann <at> gmail.com> Cc: 59794 <at> debbugs.gnu.org, eliz <at> gnu.org Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed Date: Sat, 3 Dec 2022 21:03:42 +0800
> On Dec 3, 2022, at 19:44, Gerd Möllmann <gerd.moellmann <at> gmail.com> wrote: > > FWIW, no crash here with dd7a7633bebc4db5caca3898bf318721f1f370c8 (master), macOS 13.0.1, ASAN enabled. Weird. I tested this commit with the default configure options and it segfaulted. How to enable ASAN?
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sat, 03 Dec 2022 20:52:01 GMT) Full text and rfc822 format available.Message #26 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Kai Ma <justksqsf <at> gmail.com> To: Gerd Möllmann <gerd.moellmann <at> gmail.com> Cc: 59794 <at> debbugs.gnu.org, eliz <at> gnu.org Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed Date: Sun, 4 Dec 2022 04:51:18 +0800
[Message part 1 (text/plain, inline)]
> On Dec 3, 2022, at 21:53, Gerd Möllmann <gerd.moellmann <at> gmail.com> wrote: > > On 03.12.22 14:03, Kai Ma wrote: >>> On Dec 3, 2022, at 19:44, Gerd Möllmann <gerd.moellmann <at> gmail.com> wrote: >>> >>> FWIW, no crash here with dd7a7633bebc4db5caca3898bf318721f1f370c8 (master), macOS 13.0.1, ASAN enabled. >> Weird. I tested this commit with the default configure options and it segfaulted. How to enable ASAN? > > I forgot to mentions that I have an M1 here, maybe it's that. Thanks! I tried again with your configure options, but Emacs still crashed here. :-( I guess this is indeed the reason.
[Message part 2 (text/html, inline)]
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sun, 04 Dec 2022 06:56:01 GMT) Full text and rfc822 format available.Message #29 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Eli Zaretskii <eliz <at> gnu.org> To: Kai Ma <justksqsf <at> gmail.com>, Gerd Möllmann <gerd.moellmann <at> gmail.com>, Po Lu <luangruo <at> yahoo.com> Cc: 59794 <at> debbugs.gnu.org Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Sun, 04 Dec 2022 08:54:28 +0200
> From: Kai Ma <justksqsf <at> gmail.com> > Date: Sat, 03 Dec 2022 18:48:15 +0800 > > I'm currently using the trivial fix to prevent further data loss: Maybe we should install this fix. Does anyone see a problem with it?
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sun, 04 Dec 2022 09:11:02 GMT) Full text and rfc822 format available.Message #32 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Po Lu <luangruo <at> yahoo.com> To: Eli Zaretskii <eliz <at> gnu.org> Cc: Gerd Möllmann <gerd.moellmann <at> gmail.com>, 59794 <at> debbugs.gnu.org, Kai Ma <justksqsf <at> gmail.com> Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Sun, 04 Dec 2022 17:10:05 +0800
Eli Zaretskii <eliz <at> gnu.org> writes: >> From: Kai Ma <justksqsf <at> gmail.com> >> Date: Sat, 03 Dec 2022 18:48:15 +0800 >> >> I'm currently using the trivial fix to prevent further data loss: > > Maybe we should install this fix. Does anyone see a problem with it? Could you please forward the patch in that message? Thanks.
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sun, 04 Dec 2022 10:25:02 GMT) Full text and rfc822 format available.Message #35 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Eli Zaretskii <eliz <at> gnu.org> To: Po Lu <luangruo <at> yahoo.com> Cc: gerd.moellmann <at> gmail.com, 59794 <at> debbugs.gnu.org, justksqsf <at> gmail.com Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Sun, 04 Dec 2022 12:24:15 +0200
[Message part 1 (text/plain, inline)]
> From: Po Lu <luangruo <at> yahoo.com> > Cc: Kai Ma <justksqsf <at> gmail.com>, Gerd Möllmann > <gerd.moellmann <at> gmail.com>, > 59794 <at> debbugs.gnu.org > Date: Sun, 04 Dec 2022 17:10:05 +0800 > > Eli Zaretskii <eliz <at> gnu.org> writes: > > >> From: Kai Ma <justksqsf <at> gmail.com> > >> Date: Sat, 03 Dec 2022 18:48:15 +0800 > >> > >> I'm currently using the trivial fix to prevent further data loss: > > > > Maybe we should install this fix. Does anyone see a problem with it? > > Could you please forward the patch in that message? Why, cannot you access debbugs? Anyway, attached below.
[0001-Prevent-a-segfault-when-deleting-a-fullscreen-frame-.patch (text/x-patch, attachment)]
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sun, 04 Dec 2022 12:00:02 GMT) Full text and rfc822 format available.Message #38 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Po Lu <luangruo <at> yahoo.com> To: Eli Zaretskii <eliz <at> gnu.org> Cc: gerd.moellmann <at> gmail.com, 59794 <at> debbugs.gnu.org, justksqsf <at> gmail.com Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Sun, 04 Dec 2022 19:59:34 +0800
Eli Zaretskii <eliz <at> gnu.org> writes: > Why, cannot you access debbugs? debbugs-browse-ephemeral-emacs-bug-group only included your reply to this bug, and not the patch you replied to. That happens once in a while for me. > Anyway, attached below. > >>From 8ea35a8099f34f482d090ea8068e89f52dcd29ac Mon Sep 17 00:00:00 2001 > From: Kai Ma <justksqsf <at> gmail.com> > Date: Sat, 3 Dec 2022 18:17:26 +0800 > Subject: [PATCH] Prevent a segfault when deleting a fullscreen frame on > NextStep. > > * nsterm.m ([EmacsView resetCursorRects:]): Be defensive when > accessing FRAME_OUTPUT_DATA. > --- > src/nsterm.m | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > > diff --git a/src/nsterm.m b/src/nsterm.m > index 507f2a9e7d..c09f743ec7 100644 > --- a/src/nsterm.m > +++ b/src/nsterm.m > @@ -6703,8 +6703,16 @@ - (BOOL)acceptsFirstResponder > > - (void)resetCursorRects > { > - NSRect visible = [self visibleRect]; > - NSCursor *currentCursor = FRAME_POINTER_TYPE (emacsframe); > + NSRect visible; > + NSCursor *currentCursor; > + > + /* On macOS 13, [resetCursorRects:] could be called even after the > + window is closed. */ > + if (! emacsframe || ! FRAME_OUTPUT_DATA (emacsframe)) > + return; > + > + visible = [self visibleRect]; > + currentCursor = FRAME_POINTER_TYPE (emacsframe); > NSTRACE ("[EmacsView resetCursorRects]"); > > if (currentCursor == nil) Thanks. I'm fine with installing this on the release branch, but the comment should be modified to say: [resetCursorRects:] can be called from the event loop after the frame is deleted. When this happens, emacsframe is NULL. This means there is an underlying leak of the EmacsView object! also, perhaps it should be omitted on master, at least until before Emacs 30 is released, to motivate other (hopefully more knowledgeable) people to provide the necessary information to fix it.
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sun, 04 Dec 2022 12:23:02 GMT) Full text and rfc822 format available.Message #41 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Eli Zaretskii <eliz <at> gnu.org> To: Po Lu <luangruo <at> yahoo.com> Cc: gerd.moellmann <at> gmail.com, 59794 <at> debbugs.gnu.org, justksqsf <at> gmail.com Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Sun, 04 Dec 2022 14:21:47 +0200
> From: Po Lu <luangruo <at> yahoo.com> > Cc: justksqsf <at> gmail.com, gerd.moellmann <at> gmail.com, 59794 <at> debbugs.gnu.org > Date: Sun, 04 Dec 2022 19:59:34 +0800 > > Eli Zaretskii <eliz <at> gnu.org> writes: > > > Why, cannot you access debbugs? > > debbugs-browse-ephemeral-emacs-bug-group only included your reply to > this bug, and not the patch you replied to. That happens once in a > while for me. I don't think I understand what that means, but the patch is accessible via a Web browser, by going to https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59794#20 > Thanks. I'm fine with installing this on the release branch, but the > comment should be modified to say: > > [resetCursorRects:] can be called from the event loop after the frame > is deleted. When this happens, emacsframe is NULL. This means there > is an underlying leak of the EmacsView object! > > also, perhaps it should be omitted on master, at least until before > Emacs 30 is released, to motivate other (hopefully more knowledgeable) > people to provide the necessary information to fix it. Will do, thanks.
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sun, 04 Dec 2022 12:24:02 GMT) Full text and rfc822 format available.Message #44 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Po Lu <luangruo <at> yahoo.com> To: Eli Zaretskii <eliz <at> gnu.org> Cc: gerd.moellmann <at> gmail.com, 59794 <at> debbugs.gnu.org, justksqsf <at> gmail.com Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Sun, 04 Dec 2022 20:23:07 +0800
Eli Zaretskii <eliz <at> gnu.org> writes: > I don't think I understand what that means, but the patch is accessible via > a Web browser, by going to > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59794#20 Thanks! I'd somehow forgotten about that.
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sun, 04 Dec 2022 12:46:02 GMT) Full text and rfc822 format available.Message #47 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Kai Ma <justksqsf <at> gmail.com> To: Eli Zaretskii <eliz <at> gnu.org> Cc: Po Lu <luangruo <at> yahoo.com>, Gerd Möllmann <gerd.moellmann <at> gmail.com>, 59794 <at> debbugs.gnu.org Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Sun, 4 Dec 2022 20:45:12 +0800
[Message part 1 (text/plain, inline)]
> On Dec 4, 2022, at 20:21, Eli Zaretskii <eliz <at> gnu.org> wrote: >> Thanks. I'm fine with installing this on the release branch, but the >> comment should be modified to say: >> >> [resetCursorRects:] can be called from the event loop after the frame >> is deleted. When this happens, emacsframe is NULL. This means there >> is an underlying leak of the EmacsView object! >> >> also, perhaps it should be omitted on master, at least until before >> Emacs 30 is released, to motivate other (hopefully more knowledgeable) >> people to provide the necessary information to fix it. > > Will do, thanks. I took a few liberties here. Attached is the revised patch.
[0001-Prevent-a-segfault-when-deleting-a-fullscreen-frame-.patch (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sun, 04 Dec 2022 12:55:01 GMT) Full text and rfc822 format available.Message #50 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Eli Zaretskii <eliz <at> gnu.org> To: Kai Ma <justksqsf <at> gmail.com> Cc: luangruo <at> yahoo.com, gerd.moellmann <at> gmail.com, 59794 <at> debbugs.gnu.org Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Sun, 04 Dec 2022 14:53:40 +0200
> From: Kai Ma <justksqsf <at> gmail.com> > Date: Sun, 4 Dec 2022 20:45:12 +0800 > Cc: Po Lu <luangruo <at> yahoo.com>, > Gerd Möllmann <gerd.moellmann <at> gmail.com>, > 59794 <at> debbugs.gnu.org > > > On Dec 4, 2022, at 20:21, Eli Zaretskii <eliz <at> gnu.org> wrote: > >> Thanks. I'm fine with installing this on the release branch, but the > >> comment should be modified to say: > >> > >> [resetCursorRects:] can be called from the event loop after the frame > >> is deleted. When this happens, emacsframe is NULL. This means there > >> is an underlying leak of the EmacsView object! > >> > >> also, perhaps it should be omitted on master, at least until before > >> Emacs 30 is released, to motivate other (hopefully more knowledgeable) > >> people to provide the necessary information to fix it. > > > > Will do, thanks. > > > I took a few liberties here. Attached is the revised patch. Thanks, I already pushed the change.
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sun, 04 Dec 2022 13:54:02 GMT) Full text and rfc822 format available.Message #53 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Daniel Martín <mardani29 <at> yahoo.es> To: Kai Ma <justksqsf <at> gmail.com> Cc: Po Lu <luangruo <at> yahoo.com>, Gerd Möllmann <gerd.moellmann <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>, 59794 <at> debbugs.gnu.org Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Sun, 04 Dec 2022 14:53:45 +0100
Kai Ma <justksqsf <at> gmail.com> writes: > > diff --git a/src/nsterm.m b/src/nsterm.m > index 507f2a9e7d..f99d7cde3c 100644 > --- a/src/nsterm.m > +++ b/src/nsterm.m > @@ -6703,8 +6703,18 @@ - (BOOL)acceptsFirstResponder > > - (void)resetCursorRects > { > - NSRect visible = [self visibleRect]; > - NSCursor *currentCursor = FRAME_POINTER_TYPE (emacsframe); > + NSRect visible; > + NSCursor *currentCursor; > + > + /* FIXME: [resetCursorRects:] can be called from the event loop > + after the frame is deleted. When this happens, > + emacsframe->output_data is NULL. This means there is an > + underlying leak of the EmacsView object! (bug#59794) */ > + if (! emacsframe || ! FRAME_OUTPUT_DATA (emacsframe)) Wouldn't it be more clear to check !FRAME_LIVE_P (emacsframe) instead? (I can't reproduce this bug, so I don't know if that would avoid the crash.) There is a similar check in - (void)windowWillExitFullScreen and - (void)windowDidExitFullScreen, for example.
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Sun, 04 Dec 2022 14:05:01 GMT) Full text and rfc822 format available.Message #56 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Kai Ma <justksqsf <at> gmail.com> To: Daniel Martín <mardani29 <at> yahoo.es> Cc: Po Lu <luangruo <at> yahoo.com>, Gerd Möllmann <gerd.moellmann <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>, 59794 <at> debbugs.gnu.org Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Sun, 4 Dec 2022 22:04:05 +0800
> On Dec 4, 2022, at 21:53, Daniel Martín <mardani29 <at> yahoo.es> wrote: > > Kai Ma <justksqsf <at> gmail.com> writes: > >> >> diff --git a/src/nsterm.m b/src/nsterm.m >> index 507f2a9e7d..f99d7cde3c 100644 >> --- a/src/nsterm.m >> +++ b/src/nsterm.m >> @@ -6703,8 +6703,18 @@ - (BOOL)acceptsFirstResponder >> >> - (void)resetCursorRects >> { >> - NSRect visible = [self visibleRect]; >> - NSCursor *currentCursor = FRAME_POINTER_TYPE (emacsframe); >> + NSRect visible; >> + NSCursor *currentCursor; >> + >> + /* FIXME: [resetCursorRects:] can be called from the event loop >> + after the frame is deleted. When this happens, >> + emacsframe->output_data is NULL. This means there is an >> + underlying leak of the EmacsView object! (bug#59794) */ >> + if (! emacsframe || ! FRAME_OUTPUT_DATA (emacsframe)) > > Wouldn't it be more clear to check !FRAME_LIVE_P (emacsframe) instead? > (I can't reproduce this bug, so I don't know if that would avoid the > crash.) There is a similar check in - (void)windowWillExitFullScreen > and - (void)windowDidExitFullScreen, for example. Indeed! I can confirm this check also fixes the crash here. Kai
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Mon, 05 Dec 2022 01:11:01 GMT) Full text and rfc822 format available.Message #59 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Po Lu <luangruo <at> yahoo.com> To: Daniel Martín <mardani29 <at> yahoo.es> Cc: Gerd Möllmann <gerd.moellmann <at> gmail.com>, 59794 <at> debbugs.gnu.org, Kai Ma <justksqsf <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org> Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Mon, 05 Dec 2022 09:10:04 +0800
Daniel Martín <mardani29 <at> yahoo.es> writes: > Kai Ma <justksqsf <at> gmail.com> writes: > >> >> diff --git a/src/nsterm.m b/src/nsterm.m >> index 507f2a9e7d..f99d7cde3c 100644 >> --- a/src/nsterm.m >> +++ b/src/nsterm.m >> @@ -6703,8 +6703,18 @@ - (BOOL)acceptsFirstResponder >> >> - (void)resetCursorRects >> { >> - NSRect visible = [self visibleRect]; >> - NSCursor *currentCursor = FRAME_POINTER_TYPE (emacsframe); >> + NSRect visible; >> + NSCursor *currentCursor; >> + >> + /* FIXME: [resetCursorRects:] can be called from the event loop >> + after the frame is deleted. When this happens, >> + emacsframe->output_data is NULL. This means there is an >> + underlying leak of the EmacsView object! (bug#59794) */ >> + if (! emacsframe || ! FRAME_OUTPUT_DATA (emacsframe)) > > Wouldn't it be more clear to check !FRAME_LIVE_P (emacsframe) instead? > (I can't reproduce this bug, so I don't know if that would avoid the > crash.) There is a similar check in - (void)windowWillExitFullScreen > and - (void)windowDidExitFullScreen, for example. Those other calls are a serious problem too. They obscure an underlying memory leak, and if emacsframe is not set to NULL by the point they are called, they could result in use-after-frees once GC deletes emacsframe entirely.
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Wed, 11 Jan 2023 01:15:01 GMT) Full text and rfc822 format available.Message #62 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Po Lu <luangruo <at> yahoo.com> To: "Steven E. Harris" <seh <at> panix.com> Cc: 59794 <at> debbugs.gnu.org, Gerd Moellmann <gerd <at> gnu.org> Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Wed, 11 Jan 2023 09:14:21 +0800
"Steven E. Harris" <seh <at> panix.com> writes: > Using Emacs version 30.0.50 on macOS, reported by "emacs-version" as > > GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2023-01-09 > > for the “emacs-nightly” Homebrew formula, I find that this failure still occurs regularly, whether or not the frame being closed was full-screen > or not. Specifically, when magit opens a new frame to capture a Git commit message, and I complete the message by pressing “C-c C-c,” the > frame closes, and then Emacs crashes. > > Please find the captured crash report attached here. Thanks, but please run Emacs under a debugger and send a backtrace from there instead. I suspect this is a different bug. GDB is supposedly not readily available for Mac OS anymore. Gerd, could you please explain to Steven how to debug Emacs with lldb? Thanks.
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Wed, 11 Jan 2023 04:39:02 GMT) Full text and rfc822 format available.Message #65 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Gerd Möllmann <gerd.moellmann <at> gmail.com> To: Po Lu <luangruo <at> yahoo.com> Cc: 59794 <at> debbugs.gnu.org, Gerd Moellmann <gerd <at> gnu.org>, "Steven E. Harris" <seh <at> panix.com> Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Wed, 11 Jan 2023 05:38:28 +0100
GDB’s support for macOS is limited to x86_64, it doesn’t run on Apple silicon. You can install GDB with Homebrew on x86_64. If you want to use LLDB anyway, etc/DEBUG has some instructions. Sent from my iPhone > On 11. Jan 2023, at 02:14, Po Lu <luangruo <at> yahoo.com> wrote: > > "Steven E. Harris" <seh <at> panix.com> writes: > >> Using Emacs version 30.0.50 on macOS, reported by "emacs-version" as >> >> GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2023-01-09 >> >> for the “emacs-nightly” Homebrew formula, I find that this failure still occurs regularly, whether or not the frame being closed was full-screen >> or not. Specifically, when magit opens a new frame to capture a Git commit message, and I complete the message by pressing “C-c C-c,” the >> frame closes, and then Emacs crashes. >> >> Please find the captured crash report attached here. > > Thanks, but please run Emacs under a debugger and send a backtrace from > there instead. I suspect this is a different bug. > > GDB is supposedly not readily available for Mac OS anymore. Gerd, could > you please explain to Steven how to debug Emacs with lldb? > > Thanks.
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Wed, 11 Jan 2023 11:13:03 GMT) Full text and rfc822 format available.Message #68 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: "Steven E. Harris" <seh <at> panix.com> To: luangruo <at> yahoo.com Cc: 59794 <at> debbugs.gnu.org Subject: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Tue, 10 Jan 2023 15:35:04 -0500
[Message part 1 (text/plain, inline)]
Using Emacs version 30.0.50 on macOS, reported by "emacs-version" as GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2023-01-09 for the “emacs-nightly” Homebrew formula, I find that this failure still occurs regularly, whether or not the frame being closed was full-screen or not. Specifically, when magit opens a new frame to capture a Git commit message, and I complete the message by pressing “C-c C-c,” the frame closes, and then Emacs crashes. Please find the captured crash report attached here. -- Steven E. Harris 
[Message part 2 (text/html, inline)]
[Emacs-x86_64-10_14-2023-01-10-145025.ips (application/octet-stream, attachment)]
[Message part 4 (text/html, inline)]
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Wed, 18 Jan 2023 01:48:01 GMT) Full text and rfc822 format available.Message #71 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: "Steven E. Harris" <seh <at> panix.com> To: Gerd Möllmann <gerd.moellmann <at> gmail.com> Cc: Po Lu <luangruo <at> yahoo.com>, 59794 <at> debbugs.gnu.org, Gerd Moellmann <gerd <at> gnu.org> Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Tue, 17 Jan 2023 16:37:03 -0500
[Message part 1 (text/plain, inline)]
On Jan 10, 2023, at 11:38 PM, Gerd Möllmann <gerd.moellmann <at> gmail.com> wrote: > > GDB’s support for macOS is limited to x86_64, it doesn’t run on Apple silicon. You can install GDB with Homebrew on x86_64. > > If you want to use LLDB anyway, etc/DEBUG has some instructions. Thank you for the suggestions. I didn’t get as far as applying them, as I’ve found over the last week that the nightly Emacs builds don’t seem to exhibit this problem any longer. (Today, emacs-version reports "GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2023-01-16.”) Can you think of any recent patches that may have fixed this problem deliberately? -- Steven E. Harris
[Message part 2 (text/html, inline)]
bug-gnu-emacs <at> gnu.org
:bug#59794
; Package emacs
.
(Wed, 18 Jan 2023 05:07:03 GMT) Full text and rfc822 format available.Message #74 received at 59794 <at> debbugs.gnu.org (full text, mbox):
From: Gerd Möllmann <gerd.moellmann <at> gmail.com> To: "Steven E. Harris" <seh <at> panix.com> Cc: Po Lu <luangruo <at> yahoo.com>, 59794 <at> debbugs.gnu.org, Gerd Moellmann <gerd <at> gnu.org> Subject: Re: bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed) Date: Wed, 18 Jan 2023 06:06:31 +0100
[Message part 1 (text/plain, inline)]
I have no idea, sorry. Sent from my iPhone > On 17. Jan 2023, at 22:37, Steven E. Harris <seh <at> panix.com> wrote: > > On Jan 10, 2023, at 11:38 PM, Gerd Möllmann <gerd.moellmann <at> gmail.com> wrote: >> >> GDB’s support for macOS is limited to x86_64, it doesn’t run on Apple silicon. You can install GDB with Homebrew on x86_64. >> >> If you want to use LLDB anyway, etc/DEBUG has some instructions. > > Thank you for the suggestions. I didn’t get as far as applying them, as I’ve found over the last week that the nightly Emacs builds don’t seem to exhibit this problem any longer. (Today, emacs-version reports "GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2023-01-16.”) > > Can you think of any recent patches that may have fixed this problem deliberately? > > -- > Steven E. Harris >
[Message part 2 (text/html, inline)]
Daniel Martín <mardani29 <at> yahoo.es>
to control <at> debbugs.gnu.org
.
(Sun, 18 Jun 2023 22:24:03 GMT) Full text and rfc822 format available.Debbugs Internal Request <help-debbugs <at> gnu.org>
to internal_control <at> debbugs.gnu.org
.
(Thu, 20 Jul 2023 11:24:08 GMT) Full text and rfc822 format available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.