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=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 D40151F4B4 for ; Sat, 26 Sep 2020 21:19:09 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id AC8891209EB; Sun, 27 Sep 2020 06:18:33 +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 6D2501209E6 for ; Sun, 27 Sep 2020 06:18:31 +0900 (JST) Received: by filterdrecv-p3mdw1-5dd6bc5999-bjzjd with SMTP id filterdrecv-p3mdw1-5dd6bc5999-bjzjd-20-5F6FB043-6 2020-09-26 21:18:59.089938261 +0000 UTC m=+429620.713035642 Received: from herokuapp.com (unknown) by geopod-ismtpd-4-0 (SG) with ESMTP id buiS8v_NRFmUOkXDGfUcsw for ; Sat, 26 Sep 2020 21:18:59.042 +0000 (UTC) Date: Sat, 26 Sep 2020 21:18:59 +0000 (UTC) From: anthony@noided.media Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 76022 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17196 X-Redmine-Issue-Author: asuper X-Redmine-Sender: asuper 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?pBCMWt2guwh9HfYmA+ZXn9dFBVxWHyPSKh+o55De2KMWTpghu2C3zi3gZgYEvM?= =?us-ascii?Q?SxDPkbGNgD7M=2FB303cuTHbWySliTtiN1bjecZfl?= =?us-ascii?Q?ifcCStEFQ7=2F5bmyDxr4zkux4kKr9Xi6hiseGQMS?= =?us-ascii?Q?jPKllEoaovHHmRKOCa3QcLm6RgKKikhbeWOtLgQ?= =?us-ascii?Q?7MD7+ONG2NM8GvMaSGJ5F6ZCtUEv3IXciyXW6AS?= =?us-ascii?Q?JIZAyh+sd3rYHhcCI=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 100181 Subject: [ruby-core:100181] [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 reported by asuper (Anthony Super). ---------------------------------------- Bug #17196: Segmentation Fault with Socket#close in Ractors https://bugs.ruby-lang.org/issues/17196 * Author: asuper (Anthony Super) * Status: Open * Priority: Normal * 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/