General

Profile

liligga (Igor Grebennikov)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

08/27/2014

05:00 AM Ruby Bug #10170: Core dumped when using recursion in define_method
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'`
liligga (Igor Grebennikov)
03:09 AM Ruby Bug #10170: Core dumped when using recursion in define_method
Initial issue is wrong a little.
So if we have this
> ~~~ruby
> ...
when calling in irb
> ~~~ruby
> ...
or in pry
> ~~~ruby
> ...
gives
segmentation fault (core dumped)
But
`ruby -e 'class A; define_method :a do; a; end; e...
liligga (Igor Grebennikov)
02:52 AM Ruby Bug #10170 (Closed): Core dumped when using recursion in define_method
So if we have this
```ruby
class A
define_method :a do
a
end
end
```
and call `A.new.a` we got `SystemStackError`
but with alias
```ruby
class A
define_method :a do
a
end
end
```
when calling
...
liligga (Igor Grebennikov)

Also available in: Atom