Issue #17780 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.6: REQUIRED, 2.7: DONE, 3.0: DONE to 2.6: DONE, 2.7: DONE, 3.0: DONE

ruby_2_6 r67945 merged revision(s) d8a13e50.

----------------------------------------
Bug #17780: Backport for super_method aliases in ruby 2.7.3 causes Segfault
https://bugs.ruby-lang.org/issues/17780#change-92749

* Author: dewyze (John DeWyze)
* Status: Closed
* Priority: Normal
* Assignee: peterzhu2118 (Peter Zhu)
* ruby -v: 2.7.3p183
* Backport: 2.6: DONE, 2.7: DONE, 3.0: DONE
----------------------------------------
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)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>