bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#59794: Acknowledgement (29.0.60; NSport segfaults when a fullscreen


From: Kai Ma
Subject: bug#59794: Acknowledgement (29.0.60; NSport segfaults when a fullscreen frame is being closed)
Date: Sat, 03 Dec 2022 18:48:15 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

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:

Attachment: 0001-Prevent-a-segfault-when-deleting-a-fullscreen-frame-.patch
Description: Prevent a segfault on the NS port


reply via email to

[Prev in Thread] Current Thread [Next in Thread]