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

**URL:** <https://www.ruby-forum.com/t/bug-trunk-segv-by-autoload-after-removing-load-method/182509>\
**Category:** Development\
**Created:** [January 29, 2010, 5:04am UTC](https://www.ruby-forum.com/t/bug-trunk-segv-by-autoload-after-removing-load-method/182509 "2010-01-29T05:04:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanaka\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Post date:** [January 29, 2010, 5:04am UTC](https://www.ruby-forum.com/t/bug-trunk-segv-by-autoload-after-removing-load-method/182509/1 "2010-01-29T05:04:30Z")

</div>

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
