From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (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 dcvr.yhbt.net (Postfix) with ESMTPS id B714B1F44D for ; Fri, 26 Apr 2024 15:59:27 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=eeZd2+Y6; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=d+tlyhQm; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 90F6D84536; Fri, 26 Apr 2024 15:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1714147158; bh=0FqV4DydXmeRA3EtvHyQC0dqv33oV6c/m4pAdZevgtQ=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=eeZd2+Y6vA4JxJkbfzG323KG+VPoDm1hINy8FL5j70m4z2augTJ+ppBxBtxu6AR/B crJ+JztQ8/uCqQfo3yxqeaLBXUEcVa+nLMv67sV7e1wavXd/j7AYxnA8IFsqe5ZVHR chJ1qGLPF6bovCcYz6pvY/Y8QVQSfUgM8yiXVzck= Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) by nue.mailmanlists.eu (Postfix) with ESMTPS id DC1D684507 for ; Fri, 26 Apr 2024 15:59:14 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=d+tlyhQm; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=lbQC7EXmJuylGuLSTsj+vNEcLIQJo42UmP5S9ZzvM6k=; b=d+tlyhQme6GDsKr4yDe9m2R+wUvD4m6SFxfhasbsJ2R1LLuExk+ki7MbVI3xvhjtQdwD hNReN2zUC1ZhJQLSvsVTG3ct6B1yJihiEW82o7npBO/K2ZLHwDTp2mbsRkMk1GRYPEb7Z7 0PSpT0CXGUhsCYmdNlAsyfu9cPhNNZ2wpXrBEkJrMAItp1ezwDKJQr28Rg56n3LTX5a3rc xPY4ss43OClp9/fgiclW2pFwx9UqabQYOuV4svm54IxlTU5iQtZN6saclOyhbTO8AnVvIS CzPwiGFu6pFUQgbVw0RT3tV48oWD8T07GcraOwb+ONk3TFucabPeIf4qNaZd1wTA== Received: by recvd-8c7b9fb4f-csd5w with SMTP id recvd-8c7b9fb4f-csd5w-1-662BCF51-5 2024-04-26 15:59:13.139458467 +0000 UTC m=+1187900.377456321 Received: from herokuapp.com (unknown) by geopod-ismtpd-37 (SG) with ESMTP id po8mbKDESYK0no6fmL9BHg for ; Fri, 26 Apr 2024 15:59:13.124 +0000 (UTC) Date: Fri, 26 Apr 2024 15:59:13 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20459 X-Redmine-Issue-Author: esad X-Redmine-Issue-Priority: Normal X-Redmine-Sender: luke-gru X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 94324 X-SG-EID: =?us-ascii?Q?u001=2Eu2jV1cZCX3JeC9XuCMpKrPL8QYex4qqdacL0+MyIJYZ8T98+Yamf0oq9z?= =?us-ascii?Q?aSwYa9OgKS1yrZArj33QXc1KJqA8PopG+kgVPq9?= =?us-ascii?Q?cjRbGB5G3hdJg7t8mKyjubGJtPTh90ZU7qwQWix?= =?us-ascii?Q?t9k+xWQnL5HQ3o0HdIPh3q1lKd2EDEXaIx6J+7S?= =?us-ascii?Q?SlA1SrzYQkhIu6Y3CMI1vvKooJvnH4mQ9CJQ1hb?= =?us-ascii?Q?em4DKgTq3kwp7rQrcluDRe06TBwgzhxD91bOYUm?= =?us-ascii?Q?z3vR5P8BnQ3VR3lokZlPlT6bSQ=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: EIAWPZYELQOFDZBTNDCKUQYHK7GOJPFA X-Message-ID-Hash: EIAWPZYELQOFDZBTNDCKUQYHK7GOJPFA X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:117728] [Ruby master Bug#20459] Ractor.select() deadlock? List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "luke-gru (Luke Gruber) via ruby-core" Cc: "luke-gru (Luke Gruber)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20459 has been updated by luke-gru (Luke Gruber). I just took a look at this and it's related to this ticket: https://redmine.ruby-lang.org/issues/20168. The linked pull request that fixes that issue also fixes this one. ---------------------------------------- Bug #20459: Ractor.select() deadlock? https://bugs.ruby-lang.org/issues/20459#change-108135 * Author: esad (Esad Hajdarevic) * Status: Open * ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin20] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- When I run this script ``` echo = Ractor.new { Ractor.receive } Thread.new { puts Ractor.select(echo).inspect } sleep 0.1 echo.send "test" ``` the script never terminates. If I change thread body to ``` Thread.new { puts echo.take.inspect } ``` or introduce a small delay before #select like: ``` Thread.new { sleep 1; puts Ractor.select(echo).inspect } ``` then it works/terminates. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/