Project

General

Profile

Actions

Bug #17780

closed

Backport for super_method aliases in ruby 2.7.3 causes Segfault

Added by dewyze (John DeWyze) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Target version:
-
ruby -v:
2.7.3p183
[ruby-core:103272]

Description

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

Files

crash.log (20.1 KB) crash.log peterzhu2118 (Peter Zhu), 04/07/2021 06:33 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0