General

Profile

jeremyevans0 (Jeremy Evans)

Issues

open closed Total
Assigned issues 1 44 45
Reported issues 4 149 153

Projects

Project Roles Registered on
Ruby Committer 04/14/2016

Activity

Today

08:00 AM Ruby Bug #22058: {Method,InstanceMethod}#super_method doesn't work correctly for refined method with refinements for method active in the caller's scope
It took a lot of work, but I was able to fix `Method#super_method` to return the same method that `super` would call when refinements are used: https://github.com/ruby/ruby/pull/16997
I'm not positive it handles every case correctly, ...
jeremyevans0 (Jeremy Evans)
06:23 AM Ruby Bug #22071: super in method in module that is refined results in NoMethodError
shugo (Shugo Maeda) wrote in #note-4:
> It seems reasonable except that `RCLASS_INCLUDER(me->defined_class)` is better than `((struct RClass_and_rb_classext_t*)me->defined_class)->classext.as.iclass.includer`.
Thank you. I updated th...
jeremyevans0 (Jeremy Evans)

05/15/2026

08:04 PM Ruby Bug #22058: {Method,InstanceMethod}#super_method doesn't work correctly for refined method with refinements for method active in the caller's scope
@shugo Thank you, I think I finally understand. After the first refinement method is called, the caller's scope no longer matters, because each `super` call site considers the refinements in effect at that `super` call site. You cannot u... jeremyevans0 (Jeremy Evans)
06:15 PM Ruby Bug #22071: super in method in module that is refined results in NoMethodError
shugo (Shugo Maeda) wrote in #note-1:
> Refinements for modules were initially prohibited, and were allowed in [Feature #12534] while `super` was still prohibited. Supporting `super` in a refinement for a module would go beyond a bug fi...
jeremyevans0 (Jeremy Evans)

05/14/2026

04:43 PM Ruby Bug #22070: `Thread.each_caller_location(1, 1)` segfaults when called from a cfunc
@mame thank you for clarifying. I apologize for implicating you :)
I created backport PRs:
* 4.0: https://github.com/ruby/ruby/pull/16976
* 3.4: https://github.com/ruby/ruby/pull/16977
jeremyevans0 (Jeremy Evans)
03:52 AM Ruby Bug #22070: `Thread.each_caller_location(1, 1)` segfaults when called from a cfunc
Thank you for the report. I can confirm the issue. Note that it only affects Ruby 4.0. Ruby 3.4 is not affected, and Ruby 3.3 doesn't support arguments to `Thread.each_caller_location`. I traced the cause of the bug to commit:10767283dd0... jeremyevans0 (Jeremy Evans)
04:33 PM Ruby Bug #22071 (Closed): super in method in module that is refined results in NoMethodError
We currently support refinements of modules, even though doc/syntax/refinements.rdoc and https://github.com/ruby/ruby/wiki/Refinements-Spec imply that we would not respect refinements of included or prepended modules and would only respe... jeremyevans0 (Jeremy Evans)
04:07 PM Ruby Bug #22058: {Method,InstanceMethod}#super_method doesn't work correctly for refined method with refinements for method active in the caller's scope
shugo (Shugo Maeda) wrote in #note-7:
> jeremyevans0 (Jeremy Evans) wrote:
> ...
As you mention below, this would be the CREF of the scope in which `Kernel#method` was invoked.
> To make `Method#super_method` consistent with the act...
jeremyevans0 (Jeremy Evans)

05/07/2026

02:19 AM Ruby Misc #21956: DevMeeting-2026-05-13
* [Bug #22058] {Method,InstanceMethod}#super_method doesn't work correctly for refined method with refinements for method active in the caller's scope (jeremyevans0)
* I found semantic issues with #super_method for refined methods.
*...
jeremyevans0 (Jeremy Evans)
02:14 AM Ruby Bug #22058 (Assigned): {Method,InstanceMethod}#super_method doesn't work correctly for refined method with refinements for method active in the caller's scope
I've found that Method#super_method and InstanceMethod#super_method do not work correctly in some cases for refined methods. At the least, there is a definite bug, which is that #super_method inside a scope with a refinement activated f... jeremyevans0 (Jeremy Evans)

Also available in: Atom