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 17:08:30 +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="7757"; 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 17:09:25 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 1tTNlE-0001pZ-AO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 17:09:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTNkz-0002Sw-KP; Thu, 02 Jan 2025 11:09:09 -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 1tTNkt-0002RA-6k for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 11:09: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 1tTNks-0008SK-N8 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 11:09: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:Date:References:In-Reply-To:From:To:Subject; bh=xel1HQ0wDpWSAqyeETimeRRPwj7qRo33gIRiseN7feU=; b=LaAbO02MBEQt4Dl6rdnW9J/co0OGmDLQRX73SRavjIr693t4H/vXd1bZWRZ4pFaPh5WAX8ryaFZMbcYLwH0iDWKv6j9geNA1b2Kp2mYiNl0PaDIZse5JtLr/JRXKICYUJDCdIRsvoXx+xiYBPXD9JN0jXXK/giBEHIYK3Y3uezuZf6pyEChs/xpt5bqzmymfPukELiGonUb/vWAidg6RqSnUvG9cBmp1LChQplGyHD5hXOPyiiGRnc9rlsI6be9fzWPudpSwiY651GdQPAP4emVavp5SmwwJIctS87O9jWXu/wk+mt0ah+JinS6LMGb5TJQz+8s9rC8UVbOUKIPfjA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTNks-0000bk-F9 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 11:09: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 16:09: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.17358341202294 (code B ref 75275); Thu, 02 Jan 2025 16:09:02 +0000 Original-Received: (at 75275) by debbugs.gnu.org; 2 Jan 2025 16:08:40 +0000 Original-Received: from localhost ([127.0.0.1]:46260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTNkW-0000au-EU for submit@debbugs.gnu.org; Thu, 02 Jan 2025 11:08:40 -0500 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:49219) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTNkT-0000aY-UC for 75275@debbugs.gnu.org; Thu, 02 Jan 2025 11:08:38 -0500 Original-Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-43623f0c574so78484205e9.2 for <75275@debbugs.gnu.org>; Thu, 02 Jan 2025 08:08:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735834112; x=1736438912; 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=xel1HQ0wDpWSAqyeETimeRRPwj7qRo33gIRiseN7feU=; b=nEwbcSgZU4usFqvoW445ND/qVXOHydlckkDTmVI6UFiMHURYW3/SKGgLVTJL1wL63p GwLFTkc42V4UVL8bg/ayeDYNITJEFlZ4af0rHxcNC4H3drmTSnvQ+tHw7NAxXBvaNzOk avVLE41d4p5eteHWp9bsoMSNcYEz03cZ7I85PrLQs9YCMlVX22bjc5g3K0K2Z9hU461c eXhzICBPmvDAIv02tGw9RgE7XJKo7D66Jp4OhEz7A2LfuvyZIwkftNSKlVipyEd2JRy7 GgClyh0LECz3+3XmxKeTziCv7Sbvzm8AjppkqkJDkb8FsZheEmmlrfF70S3F7+HXgCqh Zgzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735834112; x=1736438912; 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=xel1HQ0wDpWSAqyeETimeRRPwj7qRo33gIRiseN7feU=; b=QIz2wX8lD5fbcFMeHlQ+tmJ+vidsicetyA7qn3uYKz42957vlefE7HnbiprBDpAGEE hLhuxJ5lC5JoUn0y7Nl6UyjW/Fh3mv8Qt03s3Q6l1x6duU6nmrfokueDTe1cGZJcf7Bw 33SiasvLoyVdR6ftGyh6+ZybnhHxACWEg834arx5SWGuESGltmUaG/cT6ENvlxydzScq dojLXwrNyafaDeg0QU4RvU5qQBE6lvbJ22VmhfT+Jzu/Qp38K9B4m3F7FiMMYZQuwwc2 cus+YBLp7I0nIZ6Muj5Y23JEam2ZEkmGxCPuc3WSDC9GSpIzqcKM0risXZJJbSpbQkDv 7/Jg== X-Forwarded-Encrypted: i=1; AJvYcCWKLWZCTiNgwzBsMFZSsLZAarm/fWNObRaoWd1P1nGNRTTqowFrkhCyv/1YtIln3wi8vN0E1g==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx9FZQV+LarIDqv7++MpXzuCB+oepNYENMan6+Y1JRlhMoybXzi bWaFLkpjJDXqv5j+PeBXQSzZB/2fkIg8jnlxNh4KcpBzq6IC4D1r X-Gm-Gg: ASbGncsQDAdKxKmu8PSFAmHTRxEDX1k6xSZ0cTuCs8mkD3i0ll0doxC3kTUJkrpTxQe C6VnjZO6zTF0c3YE8mlEmordeS3bdd8SUo5ac/2E/8NjAGfn5hm4k1yANtztmy+XsQ4AjFsy7FY lXcdLIhp2o7OkfHY+//bHt8Y9s6P8B+CLOjcZPBtLgPIAvckUztPaW2bMxKuN06Qa9i+L671pfv 1xbcT+dsNYkfnJhj9JXaWteKB5d2vnOycWCIAZ1vAHMnIeymlWSW3hRftNEgQTyMDsWZcywKUrG eCNL6iYz2jSrzSx7fHPIUSi+1bou0uq2Dr7WCAT8r2G+RRQV1XVBitjp3H/eiE+x X-Google-Smtp-Source: AGHT+IHMB2DEV04fdMTVUyv2mF8crL7j/4j0se4hKFbf5nWxDLN5u8MBwUcvs7qaEpVUHrqJNVWaMw== X-Received: by 2002:a7b:cb93:0:b0:434:f270:a4f0 with SMTP id 5b1f17b1804b1-43668b49981mr348148425e9.21.1735834111454; Thu, 02 Jan 2025 08:08:31 -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-38a1c8bb4bcsm38624957f8f.111.2025.01.02.08.08.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 08:08:31 -0800 (PST) In-Reply-To: (Alan Third's message of "Thu, 2 Jan 2025 15:55:37 +0000") 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:298187 Archived-At: Alan Third writes: >> But... when I look at fd_handler, that function calls pselect directly. >> >> result = pselect (nfds, &readfds, wfds, NULL, tmo, NULL); >> >> >> Can that be right? > > I think that's OK as we've already called thread_select further up. > I've a vague memory of putting this in as a work-around. > > We call thread_select with a zero timeout to give other threads a > chance to grab the lock, then carry on as normal, running the run loop > and fd_handler which calls pselect. > > To be fair, though, I think when we set this up I didn't understand > the code as well as I do now, so perhaps it was the wrong thing to do. OK, thanks!