From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 3869F1F8C2 for ; Mon, 8 Feb 2021 10:54:54 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 96C5D120946; Mon, 8 Feb 2021 19:53:56 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 7E8C5120941 for ; Mon, 8 Feb 2021 19:53:54 +0900 (JST) Received: by filterdrecv-p3mdw1-689c95dc44-jpq8z with SMTP id filterdrecv-p3mdw1-689c95dc44-jpq8z-19-60211875-14 2021-02-08 10:54:45.19099033 +0000 UTC m=+407657.591010997 Received: from herokuapp.com (unknown) by ismtpd0102p1mdw1.sendgrid.net (SG) with ESMTP id Soo_A5-KTTSxFH-PdWunpQ for ; Mon, 08 Feb 2021 10:54:45.086 +0000 (UTC) Date: Mon, 08 Feb 2021 10:54:45 +0000 (UTC) From: naruse@airemix.jp Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 78339 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17482 X-Redmine-Issue-Author: riskwa X-Redmine-Issue-Assignee: ko1 X-Redmine-Sender: naruse 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-SG-EID: =?us-ascii?Q?UqoG4vcRhHM9V1I4f4J7DhjzUfTg+8muXbMD6UD+LVSNFpt5A0AAW6tjecG+44?= =?us-ascii?Q?DlbBmaGAQBSfY=2FjjxBjXYIB58AgP5DZ0dgvyDXx?= =?us-ascii?Q?kQsjoaHLmTGGSXY5bwngiLlnqR8=2F+x1IfQdNwJ6?= =?us-ascii?Q?fBnz+8n6A0zwOtY8xGBiF0gYDQ84jSlGY=2Fts0bO?= =?us-ascii?Q?AMXbgMmQc93JxvaqC4RrhEdVdGOi0zOVN2VOys8?= =?us-ascii?Q?c2FMjYTc5j9caMtr0=3D?= To: ruby-dev@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-dev X-Mail-Count: 51017 Subject: [ruby-dev:51017] [Ruby master Bug#17482] Ractor.receive doesnt accept Ctrl+C under some condition X-BeenThere: ruby-dev@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: "Ruby developers \(Japanese\)" List-Id: "Ruby developers \(Japanese\)" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-dev-bounces@ruby-lang.org Sender: "ruby-dev" Issue #17482 has been updated by naruse (Yui NARUSE). Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: REQUIRED to 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: DONE ruby_3_0 9aba46d8d80473594e567dff1652626e7b2a77b0 merged revision(s) 6f727853cee41195b67ee5d793c1ac23fe1a6ae0,b2674c1fd725b43adf51af7935c780359d70c2a4. ---------------------------------------- Bug #17482: Ractor.receive doesnt accept Ctrl+C under some condition https://bugs.ruby-lang.org/issues/17482#change-90290 * Author: riskwa (riskwa anon) * Status: Closed * Priority: Normal * Assignee: ko1 (Koichi Sasada) * ruby -v: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: DONE ---------------------------------------- When I run this script, Ctrl+C doesn't work. Waiting forever on #4 is fine, but I think Ctrl+C should work. ``` ruby r = Ractor.new() { # sleep 1 #1 File.open(__FILE__){ } #2 } # sleep 1 #3 p Ractor.receive #4 ``` When I comment out #2, Ctrl+C works. When I comment in #1 and/or #3, Ctrl+C works. In my environment, it's reproducable in 100%. My environment is: WSL2 ubuntu 5 4.19.128-microsoft-standard #1 i5-10400 6core -- https://bugs.ruby-lang.org/