From: Marc-Andre Lafortune Date: 2009-12-23T15:23:39+09:00 Subject: [ruby-core:27296] [Bug #2519] __method__ can return NULL (and therefore crash ruby) Bug #2519: __method__ can return NULL (and therefore crash ruby) http://redmine.ruby-lang.org/issues/show/2519 Author: Marc-Andre Lafortune Status: Open, Priority: High Category: core, Target version: Ruby 1.8.8 ruby -v: ruby 1.8.8dev (2009-12-21) [i386-darwin10.2.0] In Ruby 1.8.7 and latest 1.8.8: $ cat ohoh.rb puts __method__ $ ruby18dev -e "load 'ohoh.rb'" val (null) id 140734799802560/Users/work/test/ohoh.rb:1:in `to_s': NULL pointer given (ArgumentError) from /Users/work/test/ohoh.rb:1:in `puts' from /Users/work/test/ohoh.rb:1 from -e:1:in `load' from -e:1 Doing __method__.inspect instead will crash Ruby ---------------------------------------- http://redmine.ruby-lang.org