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 AB7881F8C4 for ; Fri, 5 Feb 2021 06:35:00 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 42B2A120938; Fri, 5 Feb 2021 15:34:07 +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 1A7EF120929 for ; Fri, 5 Feb 2021 15:34:04 +0900 (JST) Received: by filterdrecv-p3iad2-558d65d586-6kwgs with SMTP id filterdrecv-p3iad2-558d65d586-6kwgs-20-601CE70C-23 2021-02-05 06:34:52.521181626 +0000 UTC m=+132877.613492424 Received: from herokuapp.com (unknown) by ismtpd0044p1mdw1.sendgrid.net (SG) with ESMTP id HIurXJ4bQ9S0FQr3tOxmEg for ; Fri, 05 Feb 2021 06:34:52.392 +0000 (UTC) Date: Fri, 05 Feb 2021 06:34:52 +0000 (UTC) From: ko1@atdot.net Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 78321 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: ko1 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?fVTMYOBjtdvXNcWwrscBhLsHItUXVK5L4mtnq0mdcRfagZ2uzGi=2FhI5cbqaNza?= =?us-ascii?Q?HvmrV9sdj7Q=2FtaC7+K2FH1BmaEn08fY=2FVdCaNI3?= =?us-ascii?Q?Gz14DNgU+GYHamSDwOgxuMwQWiS64ZFoKBqzs8v?= =?us-ascii?Q?rzmDb7xTVr2IhhTk+Y2vD478G75VoAaAyUTei5m?= =?us-ascii?Q?hGbr8+kqvN5uAGQD=2F9zEU4x5=2FDG29VGkm2A=3D=3D?= To: ruby-dev@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-dev X-Mail-Count: 51015 Subject: [ruby-dev:51015] [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 ko1 (Koichi Sasada). b2674c1fd725b43adf51af7935c780359d70c2a4 should be backported too. ---------------------------------------- Bug #17482: Ractor.receive doesnt accept Ctrl+C under some condition https://bugs.ruby-lang.org/issues/17482#change-90271 * 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: REQUIRED ---------------------------------------- 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/