Subject: Re: bug#58857: 28.2; Emacs on macOS seg faults when deleting fullscreen frame

From: Gerd Möllmann <[email-masked]>
Date: Sat, 29 Oct 2022 09:36:11 +0200

Eli Zaretskii <[email-masked]> writes:

>> From: Gerd Möllmann <[email-masked]>
>> (lldb) p emacsframe
>> (frame *) $64 = 0x000000012d811600
>> (lldb) p emacsframe->output_data
>> (output_data) $63 = {
>>   tty = nil
>>   x = nil
>>   w32 = nil
>>   ns = nil
>>   pgtk = nil
>>   haiku = nil
>> }
>
> So you are saying the NS-specific code that is run when Emacs is idle
> somehow references a frame that was deleted?

I interpret the backtrace as saying that it's handling an event
(AppKit`-[NSApplication(NSEvent)
_nextEventMatchingEventMask:untilDate:inMode:dequeue:]), and the GUI
frame has been deleted.

Don't know about the idle part.