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 16:37:19 +0100 Message-ID: References: <86bjwplmc1.fsf@gnu.org> <865xmxlivo.fsf@gnu.org> <86y0ztk323.fsf@gnu.org> <86msg9jkqs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7262"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 75275@debbugs.gnu.org, Alan Third , stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 16:38:18 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 1tTNH7-0001in-Hu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 16:38:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTNH2-0002cy-KU; Thu, 02 Jan 2025 10:38:13 -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 1tTNGu-0002cN-TZ for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 10:38:05 -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 1tTNGs-0002Nn-Hw for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 10:38: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=iDIzvYwm7f1EBax4AeMA5LRbwazi7ylK2+G/IfduHaw=; b=WWMbYKwXpkFzuU+kucQQM4wytOfK4I1Vc1/8/NmdJn+z8C5zAMR7olkLftSrIcEz6yuChdLhAMdJcXHuFHs6BEvFrSzNpmSp1OpryHoDJLuTrf8rjerzTFBACaKqpFzAv6SMYq0OROrhcqOaKk54jT0V8iuEPXfusSmleekcllPqCh4KUk+1zPvwKSKv9rXD6BcITQJPPdp65087vLzCRrKdGXS1wBugN9Cpmc6JWZrj69YTccxrJYqOL7fwwTQIxepd5ehMTAupsS7VVarhr7UgidABMtD/snKY2wA9YULiNqVWHVvO2HZD7amd53skRBELkHp3ZryLfArx22Gwxg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTNGs-0007Qf-C3 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 10:38:02 -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 15:38:02 +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.173583225028513 (code B ref 75275); Thu, 02 Jan 2025 15:38:02 +0000 Original-Received: (at 75275) by debbugs.gnu.org; 2 Jan 2025 15:37:30 +0000 Original-Received: from localhost ([127.0.0.1]:46166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTNGM-0007Pp-As for submit@debbugs.gnu.org; Thu, 02 Jan 2025 10:37:30 -0500 Original-Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:47110) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTNGJ-0007PZ-UI for 75275@debbugs.gnu.org; Thu, 02 Jan 2025 10:37:29 -0500 Original-Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4361fe642ddso121227295e9.2 for <75275@debbugs.gnu.org>; Thu, 02 Jan 2025 07:37:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735832241; x=1736437041; darn=debbugs.gnu.org; h=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=iDIzvYwm7f1EBax4AeMA5LRbwazi7ylK2+G/IfduHaw=; b=WOhr9rnjwUED74ayetfkMkhQMi6XxLUp/Gzi+0hMXOJuix7v12cBjDmc1BriMBg7lj 0miE8qHniih8zTYvtpSwFa/FgaD6jWbEcbm4ie3dBrjh8299T41aIVjQ6sGZEml8T+Rg +Wwz7VDfZPQCUF/f9YL4LLxIrAHoOqfo6R4k9NZxu6xVhHFshOLOYvyhF/MQt+pFugGv cxxxQHIqUTaZXlU44YLMus/wA+o4VeFhKbtElTvW159+9Xm5DIt5OxREFfW2wpMfNelG AnUAQZq5+8jp9kkKdFJuTF/wfPUy0GpUWmvXGNOP1VVa6V98ZuHyM3tl0ZJdvUo0/ksw P26Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735832241; x=1736437041; h=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=iDIzvYwm7f1EBax4AeMA5LRbwazi7ylK2+G/IfduHaw=; b=w6qq5OQawnvyQdraA3idT5mHp753VZvsnqIHgobLMeWFdiFxKLrshEg/r4tuZcvwzK /a23cvijpCH4EbKpGU9ta+vL86nfi8TqNLyY17o6VtlzNFL9GZMCfV9VWdrceQIlwv+j Qw7B4t9m7kXPfO/XsetckiJUyCEHgHivQjbbUJN30cpafT8sOBeJeH6z07pWzWhtWgOa GCGH3OnuYUGYg4jNOW2kUQHuvOAi7fOZqyqCPVD6hdM86lAiA/kR1kqQmEBF3ke+JOee G9NRv4PSQhfySK0zAGEixWT43xSc7XnxJT9XKQhL6yr8orRH6tyTABai8Y+pOIuOyIsK 0pOA== X-Forwarded-Encrypted: i=1; AJvYcCUjTvC3IfzOV4xPF8xISEOsZ4Elof8u0fw+vZqS7vwoBUH11AYdbvK1OrHF+/80POtul5RlXw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyCFFjxZUl34W8AlcPehvtolYGjHS6d0DxfajPie1WfUk6ppYSt KIzFPOLUg0YDj0ZdC1YTCUNi5ue9gdKfvpPQ2SQgiynqDQu2oHYZm+43Nw== X-Gm-Gg: ASbGncuep6PEJFssXhx9YKGtbFdLT/hk32DQV3uc0qPiyxQ0VxjFOJQe9TQumasNl4X h4+fiBsHfswLpTpjrRJAE5QujufeVFDOqcfr9kXl/loIX24iPCUizDWUVYbc4Qz6YzKaRwPcgBl 70QQIxmOalSW7ttvf/YK5lB1A1/cC662lnySx8k5cLyD0i2qnBdO0P4SvwE7xsCaLEO8nn7ss7a fVOtCa6vFuW18bJvnzVi1yjhpPI59xiyTctRJrURuZaO+HWJpvvircIGAI6FtBfMvzD+LeC1FKH 0spiGdX+Kqs+45z5lpDedFPAIUTiD9FeirGN8VBPSMiXrCRLYnf2uWvw7X66bcM2 X-Google-Smtp-Source: AGHT+IHR3oyQx4L0qTm0AneeU7eRBQTDT2iFKI/euZuDI930TXTws0aJP2shsvw/AlwM0Gph7OM6Eg== X-Received: by 2002:a5d:47ab:0:b0:385:e16d:51c0 with SMTP id ffacd0b85a97d-38a221eaca5mr38788495f8f.18.1735832241090; Thu, 02 Jan 2025 07:37:21 -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-38a546e822bsm12866283f8f.22.2025.01.02.07.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 07:37:20 -0800 (PST) In-Reply-To: <86msg9jkqs.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 02 Jan 2025 17:31:07 +0200") 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:298179 Archived-At: Eli Zaretskii writes: >> Date: Thu, 2 Jan 2025 11:03:50 +0000 >> From: Alan Third >> Cc: Eli Zaretskii , stefankangas@gmail.com, >> 75275@debbugs.gnu.org >> >> > > 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. >> >> My take on how this works was that in a non-main thread ns_select >> should just act like pselect, hence it used to literally just call >> pselect and return. > > In general, this is not right: calls to ns_select are expected to call > thread_select, in all threads, so that other threads could get a > chance on grabbing the global lock while this (non-main) thread waits > for sub-process output. I think Alan meant thread_select(pselect, ...) because that's what is already done in ns_select_1. But... when I look at fd_handler, that function calls pselect directly. result = pselect (nfds, &readfds, wfds, NULL, tmo, NULL); Can that be right?