Actions
Bug #10170
closedCore dumped when using recursion in define_method
Bug #10170:
Core dumped when using recursion in define_method
Description
So if we have this
and call A.new.a we got SystemStackError
but with alias
when calling
in irb or
in pry gives
segmentation fault (core dumped)
But ruby -e 'class A; define_method :a do; a; end; end; A.new.a;'
gives segfault randomly
Ubuntu 13.10
Updated by liligga (Igor Grebennikov) about 12 years ago
Updated by nobu (Nobuyoshi Nakada) about 12 years ago
- Description updated (diff)
- Status changed from Open to Feedback
Could you try newer versions?
Updated by liligga (Igor Grebennikov) about 12 years ago
Okay, ruby 2.1.2 gives everytime
abort (core dumped)
for
A.new.a
in pry, irb and ruby -e 'class A; define_method :a do; a; end; end; A.new.a'
Updated by nobu (Nobuyoshi Nakada) about 12 years ago
2.1.2p207 seems working.
Updated by jeremyevans0 (Jeremy Evans) about 7 years ago
- Status changed from Feedback to Closed
Actions