[bug:trunk] SEGV by autoload after removing load method

e$B0J2<$N$h$&$K$9$k$He(B SEGV e$B$7$^$9!#e(B

% cat a.rb
load “b.rb”
% cat b.rb
module Kernel
remove_method :load
end
autoload :foo, Object.new
% ./ruby a.rb
b.rb:4: [BUG] Segmentation fault
ruby 1.9.2dev (2010-01-29 trunk 26466) [i686-linux]

– control frame ----------
c:0007 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC :autoload
c:0006 p:0034 s:0014 b:0014 l:000013 d:000013 TOP b.rb:4
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH
zsh: segmentation fault ./ruby a.rb

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs