> -----Original Message-----
> From: Phrogz [mailto:gavin / refinery.com] 
> Sent: Tuesday, May 17, 2005 2:31 PM
> To: ruby-talk ML
> Subject: [BUG] IRB Segfault on Windows
> 
> 
> What I tried to do is non-sensical, but it shouldn't cause 
> irb to go down in flames. Note that the same code works run 
> when run from a file using the 'real' ruby interpretter, not irb.
> 
> 
> C:\Documents and Settings\gavin.kistner>irb
> irb(main):001:0> module M; end
> => nil
> irb(main):002:0> f = Array.new
> => []
> irb(main):003:0> M.extend( f )
> c:/ruby/lib/ruby/1.8/irb/input-method.rb:97: [BUG] 
> Segmentation fault ruby 1.8.2 (2004-12-25) [i386-mswin32]
> 
> This application has requested the Runtime to terminate it in 
> an unusual way. Please contact the application's support team 
> for more information.
> 
> C:\Documents and Settings\gavin.kistner>ruby --version
> ruby 1.8.2 (2004-12-25) [i386-mswin32]

I cannot duplicate this:

irb(main):001:0> module M; end
=> nil
irb(main):002:0> f = Array.new
=> []
irb(main):003:0> M.extend(f)
TypeError: wrong argument type Array (expected Module)
        from (irb):3:in `extend'
        from (irb):3

>ruby -v
ruby 1.8.2 (2004-12-25) [i386-mswin32] (Windows XP Pro, SP2)

Line 97 appears to be a readline method.  Are you using a standard
command shell or something else?

Regards,

Dan