* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed
@ 2022-12-02 12:01 Kai Ma
2022-12-03 10:08 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
` (3 more replies)
0 siblings, 4 replies; 24+ messages in thread
From: Kai Ma @ 2022-12-02 12:01 UTC (permalink / raw)
To: 59794
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))
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed
2022-12-02 12:01 bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed Kai Ma
@ 2022-12-03 10:08 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-03 10:27 ` Eli Zaretskii
` (2 subsequent siblings)
3 siblings, 0 replies; 24+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-12-03 10:08 UTC (permalink / raw)
To: Kai Ma; +Cc: 59794
Kai Ma <justksqsf@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?
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed
2022-12-02 12:01 bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed Kai Ma
2022-12-03 10:08 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-12-03 10:27 ` Eli Zaretskii
2022-12-03 11:44 ` Gerd Möllmann
[not found] ` <handler.59794.B.167005568724588.ack@debbugs.gnu.org>
2023-01-10 20:35 ` Steven E. Harris
3 siblings, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2022-12-03 10:27 UTC (permalink / raw)
To: Kai Ma; +Cc: 59794
> From: Kai Ma <justksqsf@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.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed
2022-12-03 10:27 ` Eli Zaretskii
@ 2022-12-03 11:44 ` Gerd Möllmann
2022-12-03 13:03 ` Kai Ma
0 siblings, 1 reply; 24+ messages in thread
From: Gerd Möllmann @ 2022-12-03 11:44 UTC (permalink / raw)
To: eliz; +Cc: 59794, justksqsf
FWIW, no crash here with dd7a7633bebc4db5caca3898bf318721f1f370c8
(master), macOS 13.0.1, ASAN enabled.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed
2022-12-03 11:44 ` Gerd Möllmann
@ 2022-12-03 13:03 ` Kai Ma
2022-12-03 13:53 ` Gerd Möllmann
0 siblings, 1 reply; 24+ messages in thread
From: Kai Ma @ 2022-12-03 13:03 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: 59794, eliz
> On Dec 3, 2022, at 19:44, Gerd Möllmann <gerd.moellmann@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?
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed
2022-12-03 13:03 ` Kai Ma
@ 2022-12-03 13:53 ` Gerd Möllmann
2022-12-03 20:51 ` Kai Ma
0 siblings, 1 reply; 24+ messages in thread
From: Gerd Möllmann @ 2022-12-03 13:53 UTC (permalink / raw)
To: Kai Ma; +Cc: 59794, eliz
[-- Attachment #1: Type: text/plain, Size: 612 bytes --]
On 03.12.22 14:03, Kai Ma wrote:
>
>
>> On Dec 3, 2022, at 19:44, Gerd Möllmann <gerd.moellmann@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.
[-- Attachment #2: make-emacs --]
[-- Type: text/plain, Size: 2941 bytes --]
#! /usr/bin/env zsh
#set -x
# Build Emacs from scratch.
# Display usage information and exit.
function usage () {
cat <<EOF
Usage $0 [options]
Build Emacs starting from a clean Git repository. When run without
addtional command-line flags, build with native compilation.
--asan build with address sanitizer and -O1 (this takes 3x the
time of a build without)
--bootstrap make bootstrap
--checking configure with --emanle-checking
--configure run configure only
--debug configure with -g -O0
--elc build without native compilation
--help show this help
--no-cache delete config cache
Add 'compdef _gnu_generic make-emacs' to your ~/.zshrc for options
completion on the command line.
EOF
exit 1
}
# Parse command line options.
zmodload zsh/zutil
if ! zparseopts -E -D -F -- \
-asan=asan \
-bootstrap=bootstrap \
-checking=checking \
-configure=conf \
-debug=debug \
-elc=elc \
-help=help \
-no-cache=no_cache \
|| [ "$help" != "" ]
then
usage
fi
# Go to the root of the current worktree.
while ! test -f configure.ac; do
if [ "$(pwd)" = "/" ]; then
echo "Not in worktree"
exit
fi
cd ..
done
# The file to use as config.cache
worktree="$(basename $(pwd))"
config_cache=~"/tmp/config.cache.$worktree"
# Delete the config cache file if --no-config is specified.
if [ "$no_cache" != "" ]; then
rm -f $config_cache
fi
# Flags and options to pass to configure.
config_flags=(--cache-file $config_cache)
# Configure with --enable-checking
if [ "$checking" != "" ]; then
config_flags+=(--enable-checking)
fi
# Build with native compiler unless --elc is specified.
if [ "$elc" = "" ]; then
config_flags+=(--with-native-compilation)
fi
config_flags+=(--disable-silent-rules)
#config_flags+=(--with-tree-sitter)
# Define CFLAGS and LDFLAGS for address sanitizer if --asan is
# specified.
if [ "$asan" != "" ]; then
config_flags+=(LDFLAGS="-fsanitize=address -fno-omit-frame-pointer"
CFLAGS="-g -O0 -fsanitize=address -fno-omit-frame-pointer")
elif [ "$debug" != "" ]; then
config_flags+=(CFLAGS="-g -O0")
fi
# Clean Git repo, configure and make install. Also, build a
# compilation database while we're at it.
function build_emacs_from_scratch () {
git clean -qxdf \
&& ./autogen.sh \
&& ./configure $config_flags[@] \
&& bear -- gmake --output-sync=line \
&& emacs-fixup-compile-commands.py \
&& gmake install
}
function bootstrap_emacs () {
./configure $config_flags[@] \
&& bear -- make bootstrap \
}
# Note that the zsh built-in 'time' is not able to time shell
# functions directly, it just prints nothing. We have to use a
# sub-shell instead.
TIMEFMT=$'\nreal\t%*E\nuser\t%*U\nsys\t%*S'
if [ "$conf" != "" ]; then
time ./configure $config_flags[@]
elif [ "$bootstrap" != "" ]; then
time (bootstrap_emacs)
else
time (build_emacs_from_scratch)
fi
echo "$0 $config_flags[@] complete."
# End.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed
2022-12-03 13:53 ` Gerd Möllmann
@ 2022-12-03 20:51 ` Kai Ma
0 siblings, 0 replies; 24+ messages in thread
From: Kai Ma @ 2022-12-03 20:51 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: 59794, eliz
[-- Attachment #1: Type: text/plain, Size: 618 bytes --]
> On Dec 3, 2022, at 21:53, Gerd Möllmann <gerd.moellmann@gmail.com> wrote:
>
> On 03.12.22 14:03, Kai Ma wrote:
>>> On Dec 3, 2022, at 19:44, Gerd Möllmann <gerd.moellmann@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.
[-- Attachment #2: Type: text/html, Size: 1403 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
[parent not found: <handler.59794.B.167005568724588.ack@debbugs.gnu.org>]
* bug#59794: Acknowledgement (29.0.60; NSport segfaults when a fullscreen frame is being closed)
[not found] ` <handler.59794.B.167005568724588.ack@debbugs.gnu.org>
@ 2022-12-03 10:48 ` Kai Ma
2022-12-04 6:54 ` bug#59794: 29.0.60; " Eli Zaretskii
0 siblings, 1 reply; 24+ messages in thread
From: Kai Ma @ 2022-12-03 10:48 UTC (permalink / raw)
To: 59794
[-- Attachment #1: Type: text/plain, Size: 700 bytes --]
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:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Prevent a segfault on the NS port --]
[-- Type: text/x-patch, Size: 1115 bytes --]
From 8ea35a8099f34f482d090ea8068e89f52dcd29ac Mon Sep 17 00:00:00 2001
From: Kai Ma <justksqsf@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)
--
2.37.1 (Apple Git-137.1)
^ permalink raw reply related [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-03 10:48 ` bug#59794: Acknowledgement (29.0.60; NSport segfaults when a fullscreen frame is being closed) Kai Ma
@ 2022-12-04 6:54 ` Eli Zaretskii
2022-12-04 9:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2022-12-04 6:54 UTC (permalink / raw)
To: Kai Ma, Gerd Möllmann, Po Lu; +Cc: 59794
> From: Kai Ma <justksqsf@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?
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-04 6:54 ` bug#59794: 29.0.60; " Eli Zaretskii
@ 2022-12-04 9:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 10:24 ` Eli Zaretskii
0 siblings, 1 reply; 24+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-12-04 9:10 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Gerd Möllmann, 59794, Kai Ma
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Kai Ma <justksqsf@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.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-04 9:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-12-04 10:24 ` Eli Zaretskii
2022-12-04 11:59 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2022-12-04 10:24 UTC (permalink / raw)
To: Po Lu; +Cc: gerd.moellmann, 59794, justksqsf
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
> From: Po Lu <luangruo@yahoo.com>
> Cc: Kai Ma <justksqsf@gmail.com>, Gerd Möllmann
> <gerd.moellmann@gmail.com>,
> 59794@debbugs.gnu.org
> Date: Sun, 04 Dec 2022 17:10:05 +0800
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Kai Ma <justksqsf@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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Prevent-a-segfault-when-deleting-a-fullscreen-frame-.patch --]
[-- Type: text/x-patch, Size: 1116 bytes --]
>From 8ea35a8099f34f482d090ea8068e89f52dcd29ac Mon Sep 17 00:00:00 2001
From: Kai Ma <justksqsf@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)
--
2.37.1 (Apple Git-137.1)
^ permalink raw reply related [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-04 10:24 ` Eli Zaretskii
@ 2022-12-04 11:59 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 12:21 ` Eli Zaretskii
0 siblings, 1 reply; 24+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-12-04 11:59 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gerd.moellmann, 59794, justksqsf
Eli Zaretskii <eliz@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@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.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-04 11:59 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-12-04 12:21 ` Eli Zaretskii
2022-12-04 12:23 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 12:45 ` Kai Ma
0 siblings, 2 replies; 24+ messages in thread
From: Eli Zaretskii @ 2022-12-04 12:21 UTC (permalink / raw)
To: Po Lu; +Cc: gerd.moellmann, 59794, justksqsf
> From: Po Lu <luangruo@yahoo.com>
> Cc: justksqsf@gmail.com, gerd.moellmann@gmail.com, 59794@debbugs.gnu.org
> Date: Sun, 04 Dec 2022 19:59:34 +0800
>
> Eli Zaretskii <eliz@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.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-04 12:21 ` Eli Zaretskii
@ 2022-12-04 12:23 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 12:45 ` Kai Ma
1 sibling, 0 replies; 24+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-12-04 12:23 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gerd.moellmann, 59794, justksqsf
Eli Zaretskii <eliz@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.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-04 12:21 ` Eli Zaretskii
2022-12-04 12:23 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-12-04 12:45 ` Kai Ma
2022-12-04 12:53 ` Eli Zaretskii
2022-12-04 13:53 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 2 replies; 24+ messages in thread
From: Kai Ma @ 2022-12-04 12:45 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Po Lu, Gerd Möllmann, 59794
[-- Attachment #1: Type: text/plain, Size: 672 bytes --]
> On Dec 4, 2022, at 20:21, Eli Zaretskii <eliz@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.
[-- Attachment #2: 0001-Prevent-a-segfault-when-deleting-a-fullscreen-frame-.patch --]
[-- Type: application/octet-stream, Size: 1307 bytes --]
From 3ea07d5375671b052b717c0523f3e145ef7cc5a2 Mon Sep 17 00:00:00 2001
From: Kai Ma <justksqsf@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 | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
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))
+ return;
+
+ visible = [self visibleRect];
+ currentCursor = FRAME_POINTER_TYPE (emacsframe);
NSTRACE ("[EmacsView resetCursorRects]");
if (currentCursor == nil)
--
2.37.1 (Apple Git-137.1)
[-- Attachment #3: Type: text/plain, Size: 2 bytes --]
^ permalink raw reply related [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-04 12:45 ` Kai Ma
@ 2022-12-04 12:53 ` Eli Zaretskii
2022-12-04 13:53 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 0 replies; 24+ messages in thread
From: Eli Zaretskii @ 2022-12-04 12:53 UTC (permalink / raw)
To: Kai Ma; +Cc: luangruo, gerd.moellmann, 59794
> From: Kai Ma <justksqsf@gmail.com>
> Date: Sun, 4 Dec 2022 20:45:12 +0800
> Cc: Po Lu <luangruo@yahoo.com>,
> Gerd Möllmann <gerd.moellmann@gmail.com>,
> 59794@debbugs.gnu.org
>
> > On Dec 4, 2022, at 20:21, Eli Zaretskii <eliz@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.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-04 12:45 ` Kai Ma
2022-12-04 12:53 ` Eli Zaretskii
@ 2022-12-04 13:53 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 14:04 ` Kai Ma
2022-12-05 1:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 2 replies; 24+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-12-04 13:53 UTC (permalink / raw)
To: Kai Ma; +Cc: Po Lu, Gerd Möllmann, Eli Zaretskii, 59794
Kai Ma <justksqsf@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.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-04 13:53 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-12-04 14:04 ` Kai Ma
2022-12-05 1:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 0 replies; 24+ messages in thread
From: Kai Ma @ 2022-12-04 14:04 UTC (permalink / raw)
To: Daniel Martín; +Cc: Po Lu, Gerd Möllmann, Eli Zaretskii, 59794
> On Dec 4, 2022, at 21:53, Daniel Martín <mardani29@yahoo.es> wrote:
>
> Kai Ma <justksqsf@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
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-04 13:53 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 14:04 ` Kai Ma
@ 2022-12-05 1:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 0 replies; 24+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-12-05 1:10 UTC (permalink / raw)
To: Daniel Martín; +Cc: Gerd Möllmann, 59794, Kai Ma, Eli Zaretskii
Daniel Martín <mardani29@yahoo.es> writes:
> Kai Ma <justksqsf@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.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2022-12-02 12:01 bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed Kai Ma
` (2 preceding siblings ...)
[not found] ` <handler.59794.B.167005568724588.ack@debbugs.gnu.org>
@ 2023-01-10 20:35 ` Steven E. Harris
2023-01-11 1:14 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
3 siblings, 1 reply; 24+ messages in thread
From: Steven E. Harris @ 2023-01-10 20:35 UTC (permalink / raw)
To: luangruo; +Cc: 59794
[-- Attachment #1: Type: text/plain, Size: 607 bytes --]
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

[-- Attachment #2.1: Type: text/html, Size: 1002 bytes --]
[-- Attachment #2.2: Emacs-x86_64-10_14-2023-01-10-145025.ips --]
[-- Type: application/octet-stream, Size: 20498 bytes --]
{"app_name":"Emacs-x86_64-10_14","timestamp":"2023-01-10 14:50:25.00 -0500","app_version":"","slice_uuid":"3f4e26a1-f8de-32ea-bd0e-2f39e69ae995","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.1 (22C65)","roots_installed":0,"incident_id":"F12F9258-7C68-4E2B-AD52-C0F7ECBA3C6D","name":"Emacs-x86_64-10_14"}
{
"uptime" : 860000,
"procRole" : "Foreground",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookPro16,1",
"coalitionID" : 102103,
"osVersion" : {
"train" : "macOS 13.1",
"build" : "22C65",
"releaseType" : "User"
},
"captureTime" : "2023-01-10 14:50:25.6777 -0500",
"incident" : "F12F9258-7C68-4E2B-AD52-C0F7ECBA3C6D",
"pid" : 88572,
"cpuType" : "X86-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2023-01-10 14:47:36.8229 -0500",
"procStartAbsTime" : 863811787165968,
"procExitAbsTime" : 863980646119639,
"procName" : "Emacs-x86_64-10_14",
"procPath" : "\/Applications\/Emacs.app\/Contents\/MacOS\/Emacs-x86_64-10_14",
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "org.gnu.Emacs",
"crashReporterKey" : "EAF391D3-9BF1-CA77-ED3C-A7DDF9C97CCD",
"wakeTime" : 14381,
"bridgeVersion" : {"build":"20P2059","train":"7.1"},
"sleepWakeUUID" : "19D3AF61-84D5-4A91-B2C6-05A8F5C3981B",
"sip" : "enabled",
"vmRegionInfo" : "0xc0 is not in any region. Bytes before following region: 140737486737216\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n shared memory 7fffffe75000-7fffffe76000 [ 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: 140737486737216\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n shared memory 7fffffe75000-7fffffe76000 [ 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":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":12363768,"instructionState":{"instructionStream":{"bytes":[232,154,128,4,0,102,15,31,68,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,32,73,137,254,72,133,255,116,21,72,139,21,150,53,9,0,72,141,125,208,76,137,246,232,220,134,4,0,235,11,15,87,192,15,41,69,224,15,41,69,208,72,139,5,126,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,88,69,9,0,72,139,53,89,53,9,0,255,21,195,68,8,0,72,137,195,72,139,69,232,72,139,77,224,72,139,85,208,72,139,117,216,80,81,86,82,232,119,126,4,0,72,131,196,32,132,192,117,45,72,139,53,48,53,9,0,76,139,77,232,72,139,77,224,76,139,69,208,72,139,69,216,76,137,247,72,137],"offset":96}},"threadState":{"r13":{"value":140703225826816,"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":6709432320},"rdx":{"value":0},"r10":{"value":140704363133120,"symbolLocation":0,"symbol":"_main_thread"},"r9":{"value":511},"r15":{"value":22},"rbx":{"value":140704363133120,"symbolLocation":0,"symbol":"_main_thread"},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703229194794,"matchesCrashFrame":1},"rbp":{"value":4404699296,"symbolLocation":63280,"symbol":"sigsegv_stack"},"rsp":{"value":4404699256},"r12":{"value":259},"rcx":{"value":4404699256,"symbolLocation":63240,"symbol":"sigsegv_stack"},"flavor":"x86_THREAD_STATE","rdi":{"value":259}},"queue":"com.apple.main-thread","frames":[{"imageOffset":33322,"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":2503388,"symbol":"terminate_due_to_signal","symbolLocation":172,"imageIndex":3},{"imageOffset":2506459,"symbol":"emacs_abort","symbolLocation":15,"imageIndex":3},{"imageOffset":2229658,"symbol":"ns_term_shutdown","symbolLocation":122,"imageIndex":3},{"imageOffset":936532,"symbol":"shut_down_emacs","symbolLocation":340,"imageIndex":3},{"imageOffset":2503337,"symbol":"terminate_due_to_signal","symbolLocation":121,"imageIndex":3},{"imageOffset":1099838,"symbol":"handle_fatal_signal","symbolLocation":14,"imageIndex":3},{"imageOffset":1099969,"symbol":"deliver_thread_signal","symbolLocation":129,"imageIndex":3},{"imageOffset":1092505,"symbol":"deliver_fatal_thread_signal","symbolLocation":9,"imageIndex":3},{"imageOffset":1100152,"symbol":"handle_sigsegv","symbolLocation":168,"imageIndex":3},{"imageOffset":15389,"symbol":"_sigtramp","symbolLocation":29,"imageIndex":4},{"imageOffset":0,"imageIndex":5},{"imageOffset":7285424,"symbol":"-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:]","symbolLocation":357,"imageIndex":6},{"imageOffset":9843212,"symbol":"_NSViewSubViewMutationSafeApply","symbolLocation":227,"imageIndex":6},{"imageOffset":7285614,"symbol":"-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:]","symbolLocation":547,"imageIndex":6},{"imageOffset":9843212,"symbol":"_NSViewSubViewMutationSafeApply","symbolLocation":227,"imageIndex":6},{"imageOffset":7285614,"symbol":"-[_NSTrackingAreaAKViewHelper updateTrackingAreasWithInvalidCursorRects:]","symbolLocation":547,"imageIndex":6},{"imageOffset":7277650,"symbol":"-[_NSTrackingAreaAKManager displayCycleUpdateStructuralRegions]","symbolLocation":227,"imageIndex":6},{"imageOffset":1065606,"symbol":"__NSWindowGetDisplayCycleObserverForUpdateStructuralRegions_block_invoke","symbolLocation":390,"imageIndex":6},{"imageOffset":1044209,"symbol":"NSDisplayCycleObserverInvoke","symbolLocation":142,"imageIndex":6},{"imageOffset":1043233,"symbol":"NSDisplayCycleFlush","symbolLocation":878,"imageIndex":6},{"imageOffset":13604,"symbol":"CA::Transaction::run_commit_handlers(CATransactionPhase)","symbolLocation":98,"imageIndex":7},{"imageOffset":8131,"symbol":"CA::Transaction::commit()","symbolLocation":383,"imageIndex":7},{"imageOffset":1690335,"symbol":"__62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke","symbolLocation":285,"imageIndex":6},{"imageOffset":10176991,"symbol":"___NSRunLoopObserverCreateWithHandler_block_invoke","symbolLocation":41,"imageIndex":6},{"imageOffset":520370,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__","symbolLocation":23,"imageIndex":8},{"imageOffset":520154,"symbol":"__CFRunLoopDoObservers","symbolLocation":482,"imageIndex":8},{"imageOffset":517472,"symbol":"__CFRunLoopRun","symbolLocation":870,"imageIndex":8},{"imageOffset":514944,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":8},{"imageOffset":194406,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":9},{"imageOffset":193430,"symbol":"ReceiveNextEventCommon","symbolLocation":199,"imageIndex":9},{"imageOffset":193203,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":70,"imageIndex":9},{"imageOffset":253747,"symbol":"_DPSNextEvent","symbolLocation":909,"imageIndex":6},{"imageOffset":249268,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":1219,"imageIndex":6},{"imageOffset":193527,"symbol":"-[NSApplication run]","symbolLocation":586,"imageIndex":6},{"imageOffset":2230138,"symbol":"-[EmacsApp run]","symbolLocation":362,"imageIndex":3},{"imageOffset":2224595,"symbol":"ns_select_1","symbolLocation":867,"imageIndex":3},{"imageOffset":2223716,"symbol":"ns_select","symbolLocation":20,"imageIndex":3},{"imageOffset":1955808,"symbol":"wait_reading_process_output","symbolLocation":4400,"imageIndex":3},{"imageOffset":1951305,"symbol":"Faccept_process_output","symbolLocation":377,"imageIndex":3},{"imageOffset":1600208,"symbol":"funcall_subr","symbolLocation":240,"imageIndex":3},{"imageOffset":1911568,"symbol":"exec_byte_code","symbolLocation":2672,"imageIndex":3},{"imageOffset":1584660,"symbol":"Ffuncall","symbolLocation":436,"imageIndex":3},{"imageOffset":1562583,"symbol":"Ffuncall_interactively","symbolLocation":55,"imageIndex":3},{"imageOffset":1584660,"symbol":"Ffuncall","symbolLocation":436,"imageIndex":3},{"imageOffset":1568020,"symbol":"Fcall_interactively","symbolLocation":5412,"imageIndex":3},{"imageOffset":1600244,"symbol":"funcall_subr","symbolLocation":276,"imageIndex":3},{"imageOffset":1584660,"symbol":"Ffuncall","symbolLocation":436,"imageIndex":3},{"imageOffset":1596608,"symbol":"Fapply","symbolLocation":1184,"imageIndex":3},{"imageOffset":1911568,"symbol":"exec_byte_code","symbolLocation":2672,"imageIndex":3},{"imageOffset":1584660,"symbol":"Ffuncall","symbolLocation":436,"imageIndex":3},{"imageOffset":1596608,"symbol":"Fapply","symbolLocation":1184,"imageIndex":3},{"imageOffset":1911568,"symbol":"exec_byte_code","symbolLocation":2672,"imageIndex":3},{"imageOffset":1584660,"symbol":"Ffuncall","symbolLocation":436,"imageIndex":3},{"imageOffset":953345,"symbol":"command_loop_1","symbolLocation":1665,"imageIndex":3},{"imageOffset":1587871,"symbol":"internal_condition_case","symbolLocation":79,"imageIndex":3},{"imageOffset":951662,"symbol":"command_loop_2","symbolLocation":46,"imageIndex":3},{"imageOffset":1586325,"symbol":"internal_catch","symbolLocation":69,"imageIndex":3},{"imageOffset":2504808,"symbol":"command_loop.cold.1","symbolLocation":72,"imageIndex":3},{"imageOffset":949750,"symbol":"command_loop","symbolLocation":134,"imageIndex":3},{"imageOffset":949471,"symbol":"recursive_edit_1","symbolLocation":143,"imageIndex":3},{"imageOffset":950117,"symbol":"Frecursive_edit","symbolLocation":325,"imageIndex":3},{"imageOffset":944692,"symbol":"main","symbolLocation":8052,"imageIndex":3},{"imageOffset":25360,"symbol":"start","symbolLocation":2432,"imageIndex":10}]},{"id":12363796,"frames":[{"imageOffset":25434,"symbol":"__pselect","symbolLocation":10,"imageIndex":0},{"imageOffset":25165,"symbol":"pselect$DARWIN_EXTSN","symbolLocation":42,"imageIndex":0},{"imageOffset":2235007,"symbol":"-[EmacsApp fd_handler:]","symbolLocation":239,"imageIndex":3},{"imageOffset":362540,"symbol":"__NSThread__start__","symbolLocation":1009,"imageIndex":11},{"imageOffset":25177,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":7291,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":12363811,"name":"com.apple.NSEventThread","frames":[{"imageOffset":5570,"symbol":"mach_msg2_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":62980,"symbol":"mach_msg2_internal","symbolLocation":82,"imageIndex":0},{"imageOffset":34357,"symbol":"mach_msg_overwrite","symbolLocation":723,"imageIndex":0},{"imageOffset":6312,"symbol":"mach_msg","symbolLocation":19,"imageIndex":0},{"imageOffset":523486,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":145,"imageIndex":8},{"imageOffset":517962,"symbol":"__CFRunLoopRun","symbolLocation":1360,"imageIndex":8},{"imageOffset":514944,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":8},{"imageOffset":1696409,"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":12368695,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":12369050,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703229161472,
"size" : 237560,
"uuid" : "7c3dcc95-9f42-3c7c-8796-476ff67b9cf7",
"path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703229399040,
"size" : 49144,
"uuid" : "5920e36f-53ec-33f0-b675-8ae48b58418c",
"path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703228145664,
"size" : 561152,
"uuid" : "376f7cb7-6dd2-3e00-976f-77dd755bdb0d",
"path" : "\/usr\/lib\/system\/libsystem_c.dylib",
"name" : "libsystem_c.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4396691456,
"size" : 2781184,
"uuid" : "3f4e26a1-f8de-32ea-bd0e-2f39e69ae995",
"path" : "\/Applications\/Emacs.app\/Contents\/MacOS\/Emacs-x86_64-10_14",
"name" : "Emacs-x86_64-10_14"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703229583360,
"size" : 40952,
"uuid" : "f314b62b-98f4-3a7c-8296-8739f8b6855a",
"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" : 140703281754112,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.AppKit",
"size" : 16809984,
"uuid" : "00f4aa78-a19f-3a8e-9650-9f90b7beefd6",
"path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
"name" : "AppKit",
"CFBundleVersion" : "2299.30.116"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703358910464,
"CFBundleShortVersionString" : "1.11",
"CFBundleIdentifier" : "com.apple.QuartzCore",
"size" : 3481596,
"uuid" : "7ee71304-11f0-30e3-a736-16a19555fed7",
"path" : "\/System\/Library\/Frameworks\/QuartzCore.framework\/Versions\/A\/QuartzCore",
"name" : "QuartzCore",
"CFBundleVersion" : "1042.24.1"
},
{
"source" : "P",
"arch" : "x86_64h",
"base" : 140703229800448,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.CoreFoundation",
"size" : 4825088,
"uuid" : "beb5fc0b-7196-3c1d-a59a-f62ada98f592",
"path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
"name" : "CoreFoundation",
"CFBundleVersion" : "1953.300"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703390834688,
"CFBundleShortVersionString" : "2.1.1",
"CFBundleIdentifier" : "com.apple.HIToolbox",
"size" : 3112958,
"uuid" : "db45022f-3922-35b3-9a06-377f66ed0fbe",
"path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
"name" : "HIToolbox"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703226044416,
"size" : 609392,
"uuid" : "bb7a0970-8c62-3dce-a7a2-5cec9c501f11",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703244976128,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.Foundation",
"size" : 10559479,
"uuid" : "ab5f8db8-b03b-33b6-98f7-ffaec27a8eab",
"path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
"name" : "Foundation",
"CFBundleVersion" : "1953.300"
}
],
"sharedCache" : {
"base" : 140703225438208,
"size" : 21474836480,
"uuid" : "ea7f9772-219e-3ece-a4d9-20aeee3bc80f"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=502.3M resident=0K(0%) swapped_out_or_unallocated=502.3M(100%)\nWritable regions: Total=2.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.1G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 128K 1 \nActivity Tracing 256K 1 \nCG backing stores 2688K 4 \nCG image 168K 10 \nColorSync 228K 26 \nCoreAnimation 3468K 34 \nCoreGraphics 12K 2 \nCoreImage 12K 3 \nCoreUI image data 1688K 13 \nFoundation 16K 1 \nKernel Alloc Once 8K 1 \nMALLOC 433.4M 90 \nMALLOC guard page 48K 9 \nMALLOC_MEDIUM (reserved) 1.3G 11 reserved VM address space (unallocated)\nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 16K 4 \nStack 10.0M 5 \nStack (reserved) 1596K 1 reserved VM address space (unallocated)\nStack Guard 54.4M 1 \nVM_ALLOCATE 60K 13 \n__CTF 756 1 \n__DATA 24.9M 417 \n__DATA_CONST 20.2M 248 \n__DATA_DIRTY 964K 129 \n__FONT_DATA 2352 1 \n__LINKEDIT 184.1M 13 \n__OBJC_RO 65.4M 1 \n__OBJC_RW 1988K 2 \n__TEXT 318.3M 438 \ndyld private memory 256K 1 \nmapped file 203.7M 40 \nshared memory 1312K 23 \n=========== ======= ======= \nTOTAL 3.0G 1545 \nTOTAL, minus reserved VM space 1.3G 1545 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "5fb4245a1bbfe8005e33a1e1",
"factorPackIds" : {
},
"deploymentId" : 240000021
},
{
"rolloutId" : "61675b89201f677a9a4cbd65",
"factorPackIds" : {
"HEALTH_FEATURE_AVAILABILITY" : "638e768d75b0720ff1f8c4f3"
},
"deploymentId" : 240000051
}
],
"experiments" : [
]
}
}
System Profile:
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Model: MacBookPro16,1, BootROM 1916.60.2.0.0 (iBridge: 20.16.2059.0.0,0), 8 processors, 8-Core Intel Core i9, 2.3 GHz, 64 GB, SMC
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
Boot Volume File System Type: apfs
Display: 38GN950, 3840 x 1600 (Ultra-wide 4K), Main, MirrorOff, Online
Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In
Graphics: AMD Radeon Pro 5500M, AMD Radeon Pro 5500M, PCIe, 4 GB
USB Device: USB31Bus
USB Device: USB3.0 Hub
USB Device: USB3.1 Hub
USB Device: USB 10/100/1000 LAN
USB Device: USB2.0 Hub
USB Device: USB2.0 Hub
USB Device: hub_device
USB Device: Poly Studio P5 webcam
USB Device: Advantage2 Keyboard
USB Device: USB Trackball
USB Device: TB4 Docking Station
USB Device: TEAC UD-301
USB Device: USB31Bus
USB Device: YubiKey FIDO+CCID
USB Device: T2Bus
USB Device: composite_device
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
Memory Module: BANK 0/ChannelA-DIMM0, 32 GB, DDR4, 2667 MHz, Micron, MT40A4G8BAF-062E:B
Memory Module: BANK 2/ChannelB-DIMM0, 32 GB, DDR4, 2667 MHz, Micron, MT40A4G8BAF-062E:B
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Sep 14 2022 18:03:20 version 9.30.489.3.32.5.84 FWID 01-8b6fe36e
Network Service: Wi-Fi, AirPort, en0
PCI Card: pci8086,b27, USB eXtensible Host Controller, Thunderbolt@196,0,0
Thunderbolt Device: TB4 Docking Station, Kensington, 3, 27.1
[-- Attachment #2.3: Type: text/html, Size: 223 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2023-01-10 20:35 ` Steven E. Harris
@ 2023-01-11 1:14 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-11 4:38 ` Gerd Möllmann
0 siblings, 1 reply; 24+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-01-11 1:14 UTC (permalink / raw)
To: Steven E. Harris; +Cc: 59794, Gerd Moellmann
"Steven E. Harris" <seh@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.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2023-01-11 1:14 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-01-11 4:38 ` Gerd Möllmann
2023-01-17 21:37 ` Steven E. Harris
0 siblings, 1 reply; 24+ messages in thread
From: Gerd Möllmann @ 2023-01-11 4:38 UTC (permalink / raw)
To: Po Lu; +Cc: 59794, Gerd Moellmann, Steven E. Harris
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@yahoo.com> wrote:
>
> "Steven E. Harris" <seh@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.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2023-01-11 4:38 ` Gerd Möllmann
@ 2023-01-17 21:37 ` Steven E. Harris
2023-01-18 5:06 ` Gerd Möllmann
0 siblings, 1 reply; 24+ messages in thread
From: Steven E. Harris @ 2023-01-17 21:37 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: Po Lu, 59794, Gerd Moellmann
[-- Attachment #1: Type: text/plain, Size: 743 bytes --]
On Jan 10, 2023, at 11:38 PM, Gerd Möllmann <gerd.moellmann@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
[-- Attachment #2: Type: text/html, Size: 1144 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed)
2023-01-17 21:37 ` Steven E. Harris
@ 2023-01-18 5:06 ` Gerd Möllmann
0 siblings, 0 replies; 24+ messages in thread
From: Gerd Möllmann @ 2023-01-18 5:06 UTC (permalink / raw)
To: Steven E. Harris; +Cc: Po Lu, 59794, Gerd Moellmann
[-- Attachment #1: Type: text/plain, Size: 892 bytes --]
I have no idea, sorry.
Sent from my iPhone
> On 17. Jan 2023, at 22:37, Steven E. Harris <seh@panix.com> wrote:
>
> On Jan 10, 2023, at 11:38 PM, Gerd Möllmann <gerd.moellmann@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
>
[-- Attachment #2: Type: text/html, Size: 1409 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2023-01-18 5:06 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-02 12:01 bug#59794: 29.0.60; NSport segfaults when a fullscreen frame is being closed Kai Ma
2022-12-03 10:08 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-03 10:27 ` Eli Zaretskii
2022-12-03 11:44 ` Gerd Möllmann
2022-12-03 13:03 ` Kai Ma
2022-12-03 13:53 ` Gerd Möllmann
2022-12-03 20:51 ` Kai Ma
[not found] ` <handler.59794.B.167005568724588.ack@debbugs.gnu.org>
2022-12-03 10:48 ` bug#59794: Acknowledgement (29.0.60; NSport segfaults when a fullscreen frame is being closed) Kai Ma
2022-12-04 6:54 ` bug#59794: 29.0.60; " Eli Zaretskii
2022-12-04 9:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 10:24 ` Eli Zaretskii
2022-12-04 11:59 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 12:21 ` Eli Zaretskii
2022-12-04 12:23 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 12:45 ` Kai Ma
2022-12-04 12:53 ` Eli Zaretskii
2022-12-04 13:53 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-04 14:04 ` Kai Ma
2022-12-05 1:10 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-10 20:35 ` Steven E. Harris
2023-01-11 1:14 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-11 4:38 ` Gerd Möllmann
2023-01-17 21:37 ` Steven E. Harris
2023-01-18 5:06 ` Gerd Möllmann
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.