Refinements bug in ruby 2.1.0dev (2013-09-08) [x86_64-linux]
I found a bug in the refinements implementation of Ruby 2.1.0. It is related to https://bugs.ruby-lang.org/issues/8722. On ruby 2.0.0p0 (2013-02-24 revision 39474) this does not occur.
The VM segfaults when the attached code is executed. The problem is that a used refinement is modified afterwards.
#2 Updated by Nobuyoshi Nakada over 2 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r42896.
Daniel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
vm_method.c: clear cache after refine method
- vm_method.c (rb_add_refined_method_entry): clear cache in the refined class since refining a method entry is modifying the class. [Bug #8880]