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.8 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 079D11F4B4 for ; Thu, 15 Oct 2020 15:19:00 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 18F4A120976; Fri, 16 Oct 2020 00:18:20 +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 E430C12096F for ; Fri, 16 Oct 2020 00:18:17 +0900 (JST) Received: by filterdrecv-p3mdw1-76f79d8b59-vl8mf with SMTP id filterdrecv-p3mdw1-76f79d8b59-vl8mf-20-5F886858-1F 2020-10-15 15:18:48.375629338 +0000 UTC m=+228973.697020099 Received: from herokuapp.com (unknown) by ismtpd0012p1iad2.sendgrid.net (SG) with ESMTP id MwsKYTb6Rz6B0rK0koAXNw for ; Thu, 15 Oct 2020 15:18:48.296 +0000 (UTC) Date: Thu, 15 Oct 2020 15:18:48 +0000 (UTC) From: ko1@atdot.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 76269 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17196 X-Redmine-Issue-Author: asuper 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?fVTMYOBjtdvXNcWwrscBhLsHItUXVK5L4mtnq0mdcReD2gmvcT+E+CGIyET1Gf?= =?us-ascii?Q?W40TdEartoibLHz4yci7qKB6=2Fyqy4xzCT9sYzFe?= =?us-ascii?Q?w6Ubl0+Gyze6fMFgY5lsvnYHp0y5eCZOlw+iTok?= =?us-ascii?Q?TkflMV7=2FkPW55xE9MCbqjSEI5AtZQpOACJGLPdH?= =?us-ascii?Q?m=2F0HxqnBITBzUW01KEEQ4yYDDEvuga4dxwA=3D=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 100404 Subject: [ruby-core:100404] [Ruby master Bug#17196] Segmentation Fault with Socket#close in Ractors X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #17196 has been updated by ko1 (Koichi Sasada). Assignee set to ko1 (Koichi Sasada) ---------------------------------------- Bug #17196: Segmentation Fault with Socket#close in Ractors https://bugs.ruby-lang.org/issues/17196#change-88017 * Author: asuper (Anthony Super) * Status: Open * Priority: Normal * Assignee: ko1 (Koichi Sasada) * ruby -v: ruby 3.0.0preview1 (2020-09-25 master 0096d2b895) [x86_64-linux] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- While messing around with 3.0.0-preview1, I thought it would be fun to write a really, really simple webserver that used Ractor creation instead of forking or spawning threads. I was right, it was fun! Unfortunately it also caused a segfault. The segfault appears to be on socket closure when a *lot* of ractors are running at once. The attached tarball includes the code you need to make it happen. Run `bin/server` in one terminal/screen session/tmux window/whatever, and `./bug_bench.sh` with the other. You'll need to have the apache benchmark utility installed. ---Files-------------------------------- reproduce-my-segfault.tar.gz (10 KB) error_log.txt (38.6 KB) -- https://bugs.ruby-lang.org/