GNU bug report logs - #59794
29.0.60; NSport segfaults when a fullscreen frame is being closed

Previous Next

Package: emacs;

Reported by: Kai Ma <justksqsf <at> gmail.com>

Date: Sat, 3 Dec 2022 08:22:02 UTC

Severity: normal

Merged with 64147

Found in versions 29.0.60, 30.0.50

Done: Daniel Martín <mardani29 <at> yahoo.es>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 59794 <at> debbugs.gnu.org (full text, mbox):

From: Kai Ma <justksqsf <at> gmail.com>
To: 59794 <at> debbugs.gnu.org
Subject: Re: bug#59794: Acknowledgement (29.0.60; NSport segfaults when a
 fullscreen frame is being closed)
Date: Sat, 03 Dec 2022 18:48:15 +0800
[Message part 1 (text/plain, inline)]
I did some investigation, but I was unable to identify the problem on
the Emacs side.

I traced the code, and found that even after [[view window] close] is
called (nsterm.m L1626), [EmacsView resetCursorRects:] can still be
invoked for that window.  To my understanding, such calls are initiated
by AppKit, not in the control of Emacs.

Also, Emacs 27 and Emacs 28 (NS) also suffer from exactly the same issue
(the same invalid access).  I was unable to reproduce it using the Mac
port.  Given the severity of segfaults, I suspect it's very likely due
to upstream Cocoa changes that only cause problems on newer versions of
macOS.

I'm currently using the trivial fix to prevent further data loss:

[0001-Prevent-a-segfault-when-deleting-a-fullscreen-frame-.patch (text/x-patch, attachment)]

This bug report was last modified 1 year and 335 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.