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#75275: 30.0.92; `make-thread` bug on macOS 15.2 Date: Thu, 2 Jan 2025 19:26:47 +0000 Message-ID: References: <86frm1jgpq.fsf@gnu.org> <86bjwpjfle.fsf@gnu.org> 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="6900"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75275@debbugs.gnu.org, Eli Zaretskii , stefankangas@gmail.com 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 Jan 02 20:27:19 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 1tTQqk-0001cY-Q2 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 20:27:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTQqa-0007ip-9i; Thu, 02 Jan 2025 14:27:08 -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 1tTQqV-0007iA-BX for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 14:27:03 -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 1tTQqT-0008Qz-UF for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 14:27:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:MIME-Version:References:From:Date:To:Subject; bh=YGGzcPe6vHfaHwELMc0UoZ1S01tjcRc2nisCWGyeSNk=; b=lkVKamGN5+xMGx2itsyuqhQqdMlSsZ/znFDzyd9NFjDMBKKgT8nOBt2XW0pGYqxIliBmjvXfGj+Li4E7Xf2X4U3TS3LXYG5uZQjj6DGpl7RHsmJWyU2NKMGMKUpWr+A804oAWqKtO/hWUiYj2ZGjYVzQ4uwxDlYjjo5gZBmZtCasysF0ySMx76UReVh3hFb2hBALcsdaBwShqzUAeqN6esxFhMP0PUM32fT2ibcEOezcWRmH2UyB1yVw9YLxjDtU0pocDia5XCKoLyuuSxu8QkDKUVnhSsoYJimIlCjm4iNzBplHLD22YP7U/gDD6unp8zBgwgHNgf88/MMQi+uqNg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTQqT-00030U-P8 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 14:27: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, 02 Jan 2025 19:27:01 +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.173584601811546 (code B ref 75275); Thu, 02 Jan 2025 19:27:01 +0000 Original-Received: (at 75275) by debbugs.gnu.org; 2 Jan 2025 19:26:58 +0000 Original-Received: from localhost ([127.0.0.1]:46723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTQqP-000309-IC for submit@debbugs.gnu.org; Thu, 02 Jan 2025 14:26:57 -0500 Original-Received: from dane.soverin.net ([185.233.34.30]:52473) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTQqN-0002zv-F3 for 75275@debbugs.gnu.org; Thu, 02 Jan 2025 14:26:56 -0500 Original-Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [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 4YPGt13rJHz2xB9; Thu, 2 Jan 2025 19:26:49 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4YPGt074LWzC8; Thu, 2 Jan 2025 19:26:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1735846009; bh=sb/hl47rWZlWCplZxM0O19loactoieob1UOqPYB+qKY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RMtX39Idc28tTD+nsJ6hvF99fA6pHsbhfj6IIdp9zGr2ePH9YmYCYyf0SsB7iFv+B sO/piLe9KqgCtMmrDwpEdynfq5RinTHcoJwaxLxoBQO2BsjmwnIDz35UdfpLDLXhjB keZhtbZtZbW/SDVisw1fns1ai/42296nFoiNejQoQbgA3Ng8LfqqDYdiwtEy0weiWE pRYrJgoMIPL5uuQAaRdk2AlBWXkzFmIbagtURY5oGifkKqxv+QTX00MbVvfayB1sL8 TygJ2ZkyeFXy61qQsZeN5uhMtnm37UezAISe6wRr4swSTdd9D9zmTHwhcNW4/HDmCh aik57A+rg+j+A== X-CM-Analysis: v=2.4 cv=UsCZN/wB c=1 sm=1 tr=0 ts=6776e879 a=UbsBXRcqaZ6D9kgPt/Dvnw==:617 a=xqWC_Br6kY4A:10 a=8nJEP1OIZ-IA:10 a=VdSt8ZQiCzkA:10 a=XfQ2KwjM35AwS284dHUA:9 a=3ZKOabzyN94A:10 a=wPNLvfGTeEIA:10 a=9MSFP0l5Dcwi9NrB_JPx:22 X-CM-Envelope: MS4xfC2XvTW6KBd8iLdylN5G8u6b9l6z8dFtwIuu190GS1bmrZSfxKDIRotCtVmBogMEDviyYDpqDTw8yy6EN634zPXQEngiqimdYneoJlnh4J2Dg5wF7hjV GGGUIJU/5mg3tiumvhHdRowePSOI8LFla5TOunzGGM0HDlC+Sakp9qp4cjIVJAPyruF3cJ0ztwfwsiF5fqfRJ+bJlDI5xIZk/9ty821/CnYXjMBl2he+mBhQ XZtMTT1iJHYgAzkg1soa/igPkANlwbR1d6dsJnA6vwq4Ct98VmNHBN+48MMrI/d5 Original-Received: from localhost (faroe.holly.idiocy.org [local]) by faroe.holly.idiocy.org (OpenSMTPD) with ESMTPA id b82ebf31; Thu, 2 Jan 2025 19:26:47 +0000 (UTC) Mail-Followup-To: Alan Third , Gerd =?UTF-8?Q?M=C3=B6llmann?= , Eli Zaretskii , stefankangas@gmail.com, 75275@debbugs.gnu.org Content-Disposition: inline In-Reply-To: X-Spampanel-Class: ham 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:298222 Archived-At: On Thu, Jan 02, 2025 at 06:52:11PM +0100, Gerd Möllmann wrote: > > > > 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. I suspect it's because we removed the code in bug 65843. We removed that because there was a crash on start using a specific desktop file. Something to do with a certain amount of iconified frames or something. It never made much sense to me, but if the comment that went along with the code was right then sometimes the app defined event is never delivered and therefore the event loop doesn't stop. I can't believe that's a genuine bug in Apple's code, because surely they'd have fixed it by now, so probably it's something in our code, but who knows what. You could try reverting that change and see if it solves your hangs. If so then we'll have to find another solution, like perhaps just preventing ns_send_appdefined from doing anything while we're creating frames. -- Alan Third