From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#75275: 30.0.92; `make-thread` bug on macOS 15.2 Date: Thu, 02 Jan 2025 18:52:11 +0100 Message-ID: References: <86frm1jgpq.fsf@gnu.org> <86bjwpjfle.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23510"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 75275@debbugs.gnu.org, Eli Zaretskii , stefankangas@gmail.com To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 18:53:36 2025 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 1tTPO2-0005x5-O6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 18:53:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTPNa-00030d-Ns; Thu, 02 Jan 2025 12:53:06 -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 1tTPNY-0002yW-7y for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 12:53:04 -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 1tTPNX-0002j1-Vg for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 12:53:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=2PpoOUZZhPx+6chU2ewDCE5gIPNBQ+S4YB9aWXGgo08=; b=BjtDvGLcadjSGMna07PEIpAF7bq6YEb4qhTUeh4iy5VBW2KL4bnr62eDYhGrbx85MDbIB6KZO/qeIl8sDht9zLOpVrZk8ysH64ojVfK+Kh+9i47awAKtfKntgJDeK4wA3Nu6nOARyhOsVaccPEeJu9lwEDbj9D6iV0zgtY3WU64A/WgN+gqRvR7om9Ae/7PeS9ozPwAaLzMpm0ZqBnvXh72eAI5rd+6u4SONozWwZ3iLyDUAxKV7dZXJ4hNeWPu42hVomrjToweqOF2KLYLWUmXXUHdLL+iI3vyhyE7R5o+5S2XWljDwIqp6O4Y1cly2IbGpYzZGWzj1RSl2q/IIkA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTPNX-00061f-Br for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 12:53:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 17:53:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75275 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 75275-submit@debbugs.gnu.org id=B75275.173584033723054 (code B ref 75275); Thu, 02 Jan 2025 17:53:03 +0000 Original-Received: (at 75275) by debbugs.gnu.org; 2 Jan 2025 17:52:17 +0000 Original-Received: from localhost ([127.0.0.1]:46517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTPMn-0005zm-0j for submit@debbugs.gnu.org; Thu, 02 Jan 2025 12:52:17 -0500 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:47493) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTPMj-0005za-TB for 75275@debbugs.gnu.org; Thu, 02 Jan 2025 12:52:15 -0500 Original-Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-38634c35129so8813192f8f.3 for <75275@debbugs.gnu.org>; Thu, 02 Jan 2025 09:52:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735840332; x=1736445132; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2PpoOUZZhPx+6chU2ewDCE5gIPNBQ+S4YB9aWXGgo08=; b=m04n0S8OiDBBAPsO2pQy17nA6u8fENhOKMIgd6j3+GZ2hF1I43LjEEoPr5B7o4eXgS w6K0SGcU94k5Tqr8on7o632UE6euBNW+gYnEtB08QhLRrcUUb+8xkHHbs7WIJQNIdbFN 41qyMZdrXaHEv3eHE/tR0ukM5/YH28rmd04vKX1ykk8GjcGsKotbLl2fsGcTvJlMq4/M TS06GsbB3T5E0J96h27L6hO0sEcYewjPfTCfj69pu4SDMr7zvEaA7zzyUBmAFkuLHQJ5 aWkJEvFeoUagrT4l5KGNlTjbZvjD88CQPFu43M0R/Eu2xBxKaPUfVKZyr3Dx89LUXdBo +5uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735840332; x=1736445132; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=2PpoOUZZhPx+6chU2ewDCE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by 2002:a05:6000:70a:b0:385:fd07:8616 with SMTP id ffacd0b85a97d-38a221403c5mr43886625f8f.0.1735840332326; Thu, 02 Jan 2025 09:52:12 -0800 (PST) Original-Received: from pro2 (p200300e0b7290d009d701914d6a76d9d.dip0.t-ipconnect.de. [2003:e0:b729:d00:9d70:1914:d6a7:6d9d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c832a90sm38235616f8f.28.2025.01.02.09.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 09:52:11 -0800 (PST) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Thu, 02 Jan 2025 18:46:25 +0100") 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:298213 Archived-At: Gerd M=C3=B6llmann writes: > Alan Third writes: > >> On Thu, Jan 02, 2025 at 07:22:21PM +0200, Eli Zaretskii wrote: >>> > From: Gerd M=C3=B6llmann >>> > Cc: Alan Third , stefankangas@gmail.com, >>> > 75275@debbugs.gnu.org >>> > Date: Thu, 02 Jan 2025 18:09:46 +0100 >>> >=20 >>> > Eli Zaretskii writes: >>> >=20 >>> > >> Date: Thu, 2 Jan 2025 16:06:25 +0000 >>> > >> From: Alan Third >>> > >> Cc: Gerd M=C3=B6llmann , >>> > >> 75275@debbugs.gnu.org, Eli Zaretskii >>> > >>=20 >>> > >> On Thu, Jan 02, 2025 at 09:19:36AM -0600, Stefan Kangas wrote: >>> > >> > That patch fixes it for me, indeed. Thanks! >>> > >>=20 >>> > >> Hi Stefan, any chance you could check this version? >>> > >>=20 >>> > >> I have a suspicion that Gerd's will break C-g again. >>> > > >>> > > Did C-g work before Gerd's commit back in March? If not, this is n= ot >>> > > a regression. If it did work, can you explain how the change Gerd >>> > > proposed now will break C-g? >>> >=20 >>> > It's different. I made the change because Emacs freezed and C-g did >>> > nothing. With my change, Emacs freezed and I could get out with C-g, = at >>> > least sometimes. >>>=20 >>> Your change included 2 hunks, and the suggestion is to revert only >>> one of them. My question is whether this is likely to reintroduce >>> some regression. >> >> Perhaps I'm wrong. Gerd, can you remember, did your change for C-g >> require ns_select to run the NS runloop, or did it just require the >> clearing out of the input queue? I'm just concerned because this >> change will reintroduce situations where it won't run the runloop. >> >> The more I think about it the more I think I'm wrong... > > AFAIR my theory went like: > > - [NSApp run] + key event handler put C-g in the hold queue > > - ns_select_1 calls "run" (it did before my change). > > - I couldn't find how input events from the hold queue come > to Emacs in the whole process, so I added that > > - The "call run in all threads" was then a mistake > > Seemed to work, to a degree. Maybe I should add that that is kind of a loop. It can be that the first call to ns_select_1 has no C-g in the hold queue, NSApp.run leads to one being put in the hold queue. A second ns_select_1 then finds C-g and gives it Emacs and so on. Why that whole thing hangs, is another question.