GNU bug report logs - #65193
29.1.50; SET_FRAME_ICONIFIED can cause Lisp evaluation inside read_socket_hook.

Previous Next

Package: emacs;

Reported by: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>

Date: Thu, 10 Aug 2023 07:42:01 UTC

Severity: normal

Found in version 29.1.50

Full log


View this message in rfc822 format

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 65193 <at> debbugs.gnu.org
Subject: bug#65193: 29.1.50; SET_FRAME_ICONIFIED can cause Lisp evaluation inside read_socket_hook.
Date: Fri, 11 Aug 2023 01:33:41 +0900
Another problem specific to the NS port w.r.t. the call to
gui_consider_frame_title from SET_FRAME_ICONIFIED is that it can
also be called inside the select emulation via -[EmacsView
windowDidDeminiaturize:] for example.

With multiple Lisp threads, select causes thread switching.  So, Lisp
evaluations can simultaneously happen both on the main thread (via
-[EmacsView windowDidDeminiaturize:]) and on another Lisp thread.
This breaks the cooperative nature of the Emacs threads.

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




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

Previous Next


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