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 1CC5A1F44D for ; Tue, 26 Mar 2024 15:02:40 +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=nIiswbIv; 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=ieckLUd/; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 0D5FE838E7; Tue, 26 Mar 2024 15:02:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1711465351; bh=Qer3UpPtQlDbnimCQpkqsA4gaPD9mMlSVjY7FHubGSs=; 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=nIiswbIvn8PbDDLwUs3ktmwalkIsl8RI/C1cydVB02psFmeJzRv/3FeeoMRulwUwj FSWc41T4ssHkzyuimALF8X2GBjx1tmlVFs9SfRa9QJDgOxN3OenTljBHcpJqlh5bin oziDFnaOJOSirXejIbgaaVtQKRz/y7D3FjUO2o6Q= 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 8E4C48383F for ; Tue, 26 Mar 2024 15:02:26 +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=ieckLUd/; 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=EF9lHavw+B1C1n3JfpfRJKBzXgNr+bTYj9PPVfhgde8=; b=ieckLUd/gLI+zOp/hFvHCyWn6nbPQE+yn3aJ5qMSFBG4PC7NdGKFNDTaG/DLhpIKr4ve FPBpxxCxS1F3+olpzpjuwoa8KvoWCr11uymQRckkMoFWAwZh4/2LE4D2TaoTwDZMfqbSrJ YB9SkuvBMtj19FH5QngOJ4fFgpTzkpaYXkb3goXKOysiXDnWmBW/n93F6bppJS+nQCHQqX AVkO3F62ZKckbSOP+bNweNne1y00L4p75/JK3vBcHe6Dz3lbahhThVP3JU/pURz91iIghZ c0hfZb1iyj2CoIWNVyqrGLfEO9Njp6KHmniPJK4j3p1knIlvJDFf3oHGS53rYTKg== Received: by recvd-canary-857ddd74b-zn5tb with SMTP id recvd-canary-857ddd74b-zn5tb-1-6602E380-72 2024-03-26 15:02:24.311793617 +0000 UTC m=+670273.546499340 Received: from herokuapp.com (unknown) by geopod-ismtpd-35 (SG) with ESMTP id VSSY45DnRvONNuHgOfv6Zg for ; Tue, 26 Mar 2024 15:02:24.266 +0000 (UTC) Date: Tue, 26 Mar 2024 15:02:24 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20168 X-Redmine-Issue-Author: shia X-Redmine-Issue-Priority: Normal X-Redmine-Sender: over.rye@gmail.com 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: 93928 X-SG-EID: =?us-ascii?Q?u001=2EWx2GWqDYbTRD5YKWakT5+x2wxoz7GnRRdv=2FaNAKsv0xFbwlmnL3DM2nTo?= =?us-ascii?Q?qOtPGLdh6oygA7MNLhsxkLgj1QUL5fqifnlEGv0?= =?us-ascii?Q?7IQD5rFRUr1X=2FoOeyk4u8r9w=2FePsPaC1kQjtq31?= =?us-ascii?Q?dU2NhgGCB+C8tAb7nXuklpdZatzFbYa7=2FkoeuX8?= =?us-ascii?Q?mB1OU4IkyeOppYeVzF3MIbG5UG8jqvJ8Q0DXHtZ?= =?us-ascii?Q?SuGG4tBEUZAHNBJr+ulw3rusmR1jrrP=2FWNXzSo1?= =?us-ascii?Q?ow1Uo1w32BVZv5moNF8bpicuG605d7wSQpQYhK9?= =?us-ascii?Q?L970sjTM=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: FBOWIYVDVWUENR2C72TZFNT6462N6VDN X-Message-ID-Hash: FBOWIYVDVWUENR2C72TZFNT6462N6VDN 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:117330] [Ruby master Bug#20168] Process won't exit when Ractor.select waiting a Ractor List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "over.rye@gmail.com (Masato Ohba) via ruby-core" Cc: "over.rye@gmail.com (Masato Ohba)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20168 has been updated by over.rye@gmail.com (Masato Ohba). I think I have encountered the same issue. I was able to reproduce the problem using a simpler code that results in a process hang when a Ractor, which internally raises an exception, is passed to `Ractor.select`. Here is the minimal code snippet that demonstrates the issue: ```ruby ruby -e "r = Ractor.new{1/0}; Ractor.select(*[r])" ``` Notably, when I built Ruby using the branch from https://github.com/ruby/ruby/pull/9492, the issue did not occur. It appears that the changes in this branch might contain a fix or alter the behavior to prevent the hang. ---------------------------------------- Bug #20168: Process won't exit when Ractor.select waiting a Ractor https://bugs.ruby-lang.org/issues/20168#change-107474 * Author: shia (Sangyong Sim) * Status: Open * ruby -v: 3.3.0 * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- ## Reproduction code ```ruby trap(:INT) do puts "SIGINT" exit end trap(:TERM) do puts "SIGTERM" exit end r = Ractor.new do loop do sleep 1 end end Ractor.select(r) # stucked. # SIGINT/SIGTERM sent to Ruby process(confirmed by trap), # but process won't exit. ``` ## Expected behavior Process killed successfully with exit code 0. ## Affected Ruby version 3.3.0 3.2.x works as expected. -- 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/