From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#69561: 30.0.50; Freeze from M-x gnus on macOS Date: Thu, 7 Mar 2024 18:47:24 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14283"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69561@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 07 19:48:50 2024 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 1riInS-0003VN-12 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Mar 2024 19:48:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riInC-0001F6-Mj; Thu, 07 Mar 2024 13:48:34 -0500 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 1riIn8-000195-Dq for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 13:48:31 -0500 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 1riIn8-0006qn-5r for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 13:48:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1riInd-0007pR-NI for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2024 13:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Mar 2024 18:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69561 X-GNU-PR-Package: emacs Original-Received: via spool by 69561-submit@debbugs.gnu.org id=B69561.170983730229837 (code B ref 69561); Thu, 07 Mar 2024 18:49:01 +0000 Original-Received: (at 69561) by debbugs.gnu.org; 7 Mar 2024 18:48:22 +0000 Original-Received: from localhost ([127.0.0.1]:54921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riIml-0007kp-CY for submit@debbugs.gnu.org; Thu, 07 Mar 2024 13:48:22 -0500 Original-Received: from dane.soverin.net ([185.233.34.148]:35357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riImh-0007kG-Oq for 69561@debbugs.gnu.org; Thu, 07 Mar 2024 13:48:06 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4TrJFT3KW8z2xSx; Thu, 7 Mar 2024 18:47:25 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4TrJFS4z00zBR; Thu, 7 Mar 2024 18:47:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1709837245; bh=OuUF0V2HXJ4NseqLUsPAOKxuO4lgEzXODqVfWLTwRKc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TR9zW2gSGkooljB+PW1o+W393E/AyP6m4CWPYi7BPPbscLGM4/fob6G9Llb++d+OJ +SpuPfABhMeejLyBzV0sGgQlEsK5vWqXDP5BWZ6K+iDmfzVyWd2jkvV0q4bpDTcYqi tQbaTL10rrqJPL1jtMw+DjhgblcH8kUIUT2dOk9rjwdXJi8P9dZGUTLdVWPzZX5AnP v0Ft8u6JgiO3O3B5/nn/mLJurTcpeKdya5LrM4/ObReMjJQtSuAV696oObwVyK1Wxr DZew7GLKpnNcVO4W55onJ/Hu2IBa7Opw2uWDNELd+aXUm6aRd+aOlZ+fWQzHl4cxsU 3p2KBWhfOTwtA== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96) (envelope-from ) id 1riIm4-001op6-0m; Thu, 07 Mar 2024 18:47:24 +0000 Mail-Followup-To: Alan Third , Gerd =?UTF-8?Q?M=C3=B6llmann?= , 69561@debbugs.gnu.org Content-Disposition: inline In-Reply-To: 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:281185 Archived-At: On Thu, Mar 07, 2024 at 06:01:02PM +0100, Gerd Möllmann wrote: > Alan Third writes: > > > On Thu, Mar 07, 2024 at 05:30:28PM +0100, Gerd Möllmann wrote: > >> Alan Third writes: > >> > >> > But keyboard input (ns_read_socket) is handled immediately after that > >> > "if (nfds < 0)" block and well before the "if (no_avail...". > >> > >> Could you please tell the line number? > > > > detect_input_pending_run_timers at process.c:5839 calls > > get_input_pending which calls gobble_input which calls > > t->read_socket_hook. > > > > There seem to be a lot of ways for it to bail out, though. > > Thanks. That's in if (read_kbd), and the first backtrace I sent had > > frame #6: 0x00000001001d94d2 emacs`wait_reading_process_output(time_limit=, nsecs=, read_kbd=0, do_display=false, wait_for_cell=(struct Lisp_Symbol *) $123 = 0x00000001007d24b0, wait_proc=0x00007fccffdcc9d8, just_wait_proc=0) at process.c:5484:9 [opt] > > i.e. read_kbd should be 0. > > Maybe that's also an explanation why it doesn't freeze most of time? > If it sometimes does detect_input_pending... So this READ_KBD is: 0 to ignore keyboard input, or 1 to return when input is available, or -1 meaning caller will actually read the input, so don't throw to the quit handler implies that if read_kbd is zero then we should be able to quit? If that's the case then we need some special handling in nsterm.m for C-g, I suppose. Having dug around in other terms I assume this means setting Vquit_flag? So in the keyDown method we should identify C-g and set Vquit_flag...? -- Alan Third