Bug #2245: irb reports a very loving backtrace at times.
http://redmine.ruby-lang.org/issues/show/2245

Author: Roger Pack
Status: Open, Priority: Normal
ruby -v: ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32]

Entering the following code in irb of 1.8.x (enter it several times)

It yields:

>>  [].send :pop, *args3 { a, b, c=3 }
NoMethodError: undefined method `args3' for main:Object
        from (irb):31
... repeat several times then
>>  [].send :pop, *args3 { a, b, c=3 }
NoMethodError: undefined method `args3' for main:Object
        from (irb):33
        from :0
... repeat several times, then
>>  [].send :pop, *args3 { a, b, c=3 }
NoMethodError: undefined method `args3' for main:Object
        from (irb):51
        from ???:0

(on windows--on linux it displays a different odd character).

Seems to work fine on 1.9, though.

Thanks!
-r


----------------------------------------
http://redmine.ruby-lang.org