From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65193: 29.1.50; SET_FRAME_ICONIFIED can cause Lisp evaluation inside read_socket_hook. Date: Sat, 12 Aug 2023 10:30:40 +0300 Message-ID: <83r0o8emzj.fsf@gnu.org> References: <87pm3vs3qf.fsf@yahoo.com> <87zg2zqcbg.fsf@yahoo.com> <83350qixt1.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19021"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 65193@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 12 09:31:25 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qUj5o-0004kU-RG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Aug 2023 09:31:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUj5V-0005HB-S6; Sat, 12 Aug 2023 03:31:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUj5S-0005GZ-Kg for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 03:31:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qUj5S-0005oD-CO for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 03:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qUj5S-00059N-4N for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2023 03:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Aug 2023 07:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65193 X-GNU-PR-Package: emacs Original-Received: via spool by 65193-submit@debbugs.gnu.org id=B65193.169182542019704 (code B ref 65193); Sat, 12 Aug 2023 07:31:02 +0000 Original-Received: (at 65193) by debbugs.gnu.org; 12 Aug 2023 07:30:20 +0000 Original-Received: from localhost ([127.0.0.1]:48653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUj4l-00057k-Nn for submit@debbugs.gnu.org; Sat, 12 Aug 2023 03:30:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUj4i-00057M-Jp for 65193@debbugs.gnu.org; Sat, 12 Aug 2023 03:30:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUj4c-0005fV-Rr; Sat, 12 Aug 2023 03:30:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Bjd03Hl47cOuKLPjUq1al9jrNFPhDQDK5UHN7xRmUko=; b=I54XiwZ/saGU K05p3tCbGIihRfz7nwCQv0nCSkUle87E21/Ao0GgXbbao8Q5mFqZYoHhJ4WaDWdg7VxKKwEDBchF7 BUqz+Io092SpvJtDdK5L1wJLXoABxsNigH/vUQtuWDG6FQfjYJZ5pvygBo2ROFqOAoI23yw6HKIWO 55q+Qwp0AXQrgLTkdFZX1mBdukiFXd1LAGgdIDFpFsB380QzTUXHTvOhVbSpG61t3ibr921ZA18H6 /tA+g2XW7SvadwPLM4t+pRBsIPsHclvQVimqD89/3zoIpX81OuvYUJIpa99h8fi53AuUgcZFyfxW5 a5fjXM0cJ7qeu2pVHH12ow==; In-Reply-To: (message from YAMAMOTO Mitsuharu on Fri, 11 Aug 2023 08:29:30 +0900) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267283 Archived-At: > Date: Fri, 11 Aug 2023 08:29:30 +0900 > From: YAMAMOTO Mitsuharu > Cc: luangruo@yahoo.com, > 65193@debbugs.gnu.org > > On Fri, 11 Aug 2023 02:58:50 +0900, > Eli Zaretskii wrote: > > > > > Cc: 65193@debbugs.gnu.org > > > Date: Fri, 11 Aug 2023 01:33:41 +0900 > > > From: YAMAMOTO Mitsuharu > > > > > > 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. > > > > Please describe in more detail how such a call could happen, including > > the sequence of calls which could call SET_FRAME_ICONIFIED from the > > select emulation. This situation, if it can happen, should be > > investigated. > > Sorry, I thought the NS port can run another Lisp thread while one > thread is waiting for inputs with (emulated) select as in other > platforms (including the Mac port). But actually that's not the case, > so the situation I said does not happen with the current NS select > emulation. Of course, once the NS port obtains such ability, the > problem I described will happen. > > Below is the stacktrace that leads to SET_FRAME_ICONIFIED from the NS > select emulation (ns_select): OK, thanks.