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-ASN: AS4713 221.184.0.0/13 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 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 E210E1F462 for ; Tue, 11 Jun 2019 14:55:48 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 28D5E120929; Tue, 11 Jun 2019 23:55:42 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id E86051208BE for ; Tue, 11 Jun 2019 23:55:39 +0900 (JST) Received: by filter0063p3iad2.sendgrid.net with SMTP id filter0063p3iad2-16988-5CFFC0EC-35 2019-06-11 14:55:40.524132131 +0000 UTC m=+597717.894627845 Received: from herokuapp.com (unknown [107.20.11.70]) by ismtpd0007p1iad2.sendgrid.net (SG) with ESMTP id 33qa87VHTn-RTodaq462DA for ; Tue, 11 Jun 2019 14:55:40.493 +0000 (UTC) Date: Tue, 11 Jun 2019 14:55:40 +0000 (UTC) From: myles@mylesgearon.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 68523 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15490 X-Redmine-Issue-Author: matthew.oriordan X-Redmine-Sender: mylesgearon 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?ED43DasjOS9btCuMNcow3QxZTPTMhmgS6AoADF7=2Fp10HeTGWxkSQC7qosUwwxg?= =?us-ascii?Q?biQtzjb1EjPOghi1i6GlqNIdDosNlQJrTpVOckh?= =?us-ascii?Q?wH1C+dy6jaPSab9pQJstj8SQpVHXx49RQAhDPqy?= =?us-ascii?Q?1yehT7PGJXBybizh6q9i7jSzlULjUa5+yeMhqkq?= =?us-ascii?Q?PwNEbAlLypuRdBgiyVJda1hu665wAuXt4aw=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 93045 Subject: [ruby-core:93045] [Ruby trunk Bug#15490] socket.rb - recurring segmentation faults 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 #15490 has been updated by mylesgearon (Myles Gearon). ruby -v changed from ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18] to ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin18], ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18], ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux] I have been experiencing this issue as well, but only on a computer running OSX 10.14.5. I can't seem to recreate this on linux using Fedora 29 or Ubuntu 18.04. Switching the OSX over to 127.0.0.1 instead of localhost seems to crash less? But I'm still getting the segfault there. The segfault happens on 2.5.0 and 2.6.3 for OSX. ---------------------------------------- Bug #15490: socket.rb - recurring segmentation faults https://bugs.ruby-lang.org/issues/15490#change-78438 * Author: matthew.oriordan (Matthew O'Riordan) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin18], ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18], ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux] * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- With Ruby 2.5.3p105 and now with Ruby 2.6.0 following our recent upgrade, we are sadly still seeing reasonably frequent segmentation faults from Ruby, specifically within socket.rb Looking in socket.rb, it seems it's related to the address lookup: Addrinfo.getaddrinfo(nodename, service, family, socktype, protocol, flags).each(&block) Segfault report below in full. Attached are diagnostic reports too. If there is anything I can do to help reproduce I will, however sadly I have never been able to reproduce reliably, yet sadly it happens once every few days. ---Files-------------------------------- ruby_2018-12-31-032126-2_MacBook-Pro.crash (46.8 KB) ruby_2018-12-31-032126-3_MacBook-Pro.crash (46.8 KB) ruby_2018-12-31-032126-1_MacBook-Pro.crash (46.8 KB) ruby_2018-12-31-032125_MacBook-Pro.crash (46.8 KB) bug-15490.log (833 KB) -- https://bugs.ruby-lang.org/