From: peter@... Date: 2021-04-07T18:21:03+00:00 Subject: [ruby-core:103273] [Ruby master Bug#17780] Backport for super_method aliases in ruby 2.7.3 causes Segfault 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/ Unsubscribe: