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#75275: 30.0.92; `make-thread` bug on macOS 15.2 Date: Thu, 02 Jan 2025 10:55:32 +0200 Message-ID: <86y0ztk323.fsf@gnu.org> References: <86bjwplmc1.fsf@gnu.org> <865xmxlivo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6031"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75275@debbugs.gnu.org, alan@idiocy.org, 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 09:56:14 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 1tTH01-0001Pl-Os for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 09:56:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTGzs-0001jv-Jq; Thu, 02 Jan 2025 03:56:04 -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 1tTGzq-0001jX-JR for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 03:56:02 -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 1tTGzq-0001ug-Aw for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 03:56:02 -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:References:In-Reply-To:From:Date:To:Subject; bh=Xxz8fMw1JEzhEHshl+m3NEeynCB/kJtd45wWgW9neTM=; b=TLq6xVVZBDFqh6AhBvkJHsKkkjm0ZAlZTFsY/NLN0VNC6bVjSmtmBpxI/pud9yc8m2Qgo2VB/6UwLOIPtvvj+SfXUhqhZjslV6ossFUZe6kOWhhuNH/ua92+fiEuWyByHaCESm4/lufSgQXjIk5yCagND8IvLEjL0kDxI+CCPqoSW5ZuWsQOpRCCnIlG93OtJWNHYrReY2ckoVYkts4i72fsindZ4sKsVRoC95oCwihFAjFUyURyTGZlFUOjaIN4DkOrOddQWuY9QyWyQGlZ4cp0llBAXZMPyA61wDo/+p98UgqERX52eImz37uQ4cI/l35EhEuC2QZQVZysDfXXIA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTGzq-0005Dk-6H for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 03:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 08:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75275 X-GNU-PR-Package: emacs Original-Received: via spool by 75275-submit@debbugs.gnu.org id=B75275.173580814720042 (code B ref 75275); Thu, 02 Jan 2025 08:56:02 +0000 Original-Received: (at 75275) by debbugs.gnu.org; 2 Jan 2025 08:55:47 +0000 Original-Received: from localhost ([127.0.0.1]:42729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTGza-0005DC-UW for submit@debbugs.gnu.org; Thu, 02 Jan 2025 03:55:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52228) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTGzY-0005Cz-50 for 75275@debbugs.gnu.org; Thu, 02 Jan 2025 03:55:45 -0500 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 1tTGzR-0001sW-LY; Thu, 02 Jan 2025 03:55:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Xxz8fMw1JEzhEHshl+m3NEeynCB/kJtd45wWgW9neTM=; b=QraaH8JvHdqyVPeQj4+9 nILXdox5iyVU1i/F/FgDTW12DNhblZek0o6z/cO7crXGGcBe37z7xM0qKDmfBiRFvKMOiFcfBBym6 Uhqk0dkOAvt9JMYjJZJ88aeTfwxVPGXkbjIUo/IdoGe3Aa6HF2HvpqYL6Ov8trav6F3yD1qbZSHhs eI2ocrpg0y3z+KcJ32D0etgb/fVIoNE56wtAvCy4NBCT3yeXHbGiTDxVDJUIUndBkVrc3G+HR/no8 zpNeOLfAlGaweK+XrefCbl5r3GAhMMXvjyuBjuyf5hcZufHoVekIIK5ua5g3CayVf9t6Whh+aiLGN F611s0McROb8Xg==; In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Thu, 02 Jan 2025 09:41:38 +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:298152 Archived-At: > From: Gerd Möllmann > Cc: stefankangas@gmail.com, alan@idiocy.org, 75275@debbugs.gnu.org > Date: Thu, 02 Jan 2025 09:41:38 +0100 > > Gerd Möllmann writes: > > > Eli Zaretskii writes: > > > >> So should we add a condition before calling [NSApp run] that we are in > >> the main thread? > > > > ATM, I don't understand how we land in that line in ns_select_1 if not > > [NSThread isMainThread]. Maybe I need new glasses. I asked Stefan if he > > can see something in LLDB. > > It must something in here: > > if (![NSThread isMainThread] > || (timeout && timeout->tv_sec == 0 && timeout->tv_nsec == 0)) > thread_select (pselect, nfds, readfds, writefds, > exceptfds, timeout, sigmask); > > Should we return here? I don't know. Is there anything in the following code that can be relevant to a non-main thread? Note that non-main threads can legitimately call wait_reading_process_output, which calls ns_select. For example, what happens if a non-main Lisp thread starts a sub-process? we do expect to be able to read the output from that sub-process.