Subject: bug#65193: 29.1.50; SET_FRAME_ICONIFIED can cause Lisp evaluation inside read_socket_hook.

From: Po Lu <[email-masked]>
Date: Thu, 10 Aug 2023 16:26:00 +0800

YAMAMOTO Mitsuharu <[email-masked]> writes:

> SET_FRAME_ICONIFIED has a call to gui_consider_frame_title and it can
> cause Lisp evaluation if icon-title-format or frame-title-format
> contains (:eval FORM).  This is problematic because
> SET_FRAME_ICONIFIED can be called inside read_socket_hook.
>
> The call to gui_consider_frame_title was introduced by the following
> change:

What practical problems have resulted from this change?

There are already several situations under which Lisp can be called
inside read_socket_hook.  And in principle, anything that performs GC
can in turn call finalizers that subsequently run Lisp.