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=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 E1A6F1F4B4 for ; Wed, 7 Apr 2021 18:21:07 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 2E5D91210D5; Thu, 8 Apr 2021 03:20: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 D2AA01210D2 for ; Thu, 8 Apr 2021 03:20:04 +0900 (JST) Received: by filterdrecv-p3las1-699f5f7ff5-ht2f6 with SMTP id filterdrecv-p3las1-699f5f7ff5-ht2f6-20-606DF80F-10 2021-04-07 18:21:03.259732042 +0000 UTC m=+1295281.857486778 Received: from herokuapp.com (unknown) by ismtpd0163p1mdw1.sendgrid.net (SG) with ESMTP id BTgDdFH-QueoFIu7zmgluA for ; Wed, 07 Apr 2021 18:21:03.123 +0000 (UTC) Date: Wed, 07 Apr 2021 18:21:03 +0000 (UTC) From: peter@peterzhu.ca Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 79319 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17780 X-Redmine-Issue-Author: dewyze X-Redmine-Issue-Assignee: peterzhu2118 X-Redmine-Sender: peterzhu2118 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?RcuVSS+tS7sWhifKYzqjBA6GuxeyciWOTsA27PgjRkaBPnv5SXpbIcWX0t7B5L?= =?us-ascii?Q?zN0Yr89UpRWI9yL37aEqwR2aiG5D7u3G+gxPx+w?= =?us-ascii?Q?HZDs81DZ1y+m0QrfGR72ZBPaEhq3CeF7dD+nXQa?= =?us-ascii?Q?vqoyq+tkXXnHoWHMBPvYGY01DXEUEtPCUc4qyUo?= =?us-ascii?Q?051qI3thUoZTxC8y4m1u5g4odH5bMs0V+xM78HR?= =?us-ascii?Q?pMlSV3dnY4IHKW2ks=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 103273 Subject: [ruby-core:103273] [Ruby master Bug#17780] Backport for super_method aliases in ruby 2.7.3 causes Segfault 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 #17780 has been updated by peterzhu2118 (Peter Zhu). Assignee set to peterzhu2118 (Peter Zhu) ---------------------------------------- Bug #17780: Backport for super_method aliases in ruby 2.7.3 causes Segfault https://bugs.ruby-lang.org/issues/17780#change-91357 * Author: dewyze (John DeWyze) * Status: Open * Priority: Normal * Assignee: peterzhu2118 (Peter Zhu) * ruby -v: 2.7.3p183 * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- This error was discovered while trying to run `bundle exec srb init` on a new rails project. Thanks to Peter Zhu for debugging this, finding the breaking commit, and providing a minimum example: Breaking commit: https://github.com/ruby/ruby/commit/c98aa2db60f43e839d7a82897c22b5ceecbed417 Minimum example: ``` module Test def foo puts "hello" end alias :f :foo end method = Test.instance_method(:f) super_method = method.super_method ``` -- https://bugs.ruby-lang.org/