[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: [BUG] IRB Segfault on Windows

Berger, Daniel

5/17/2005 8:41:00 PM

> -----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


1 Answer

Linus Sellberg

5/17/2005 10:07:00 PM

0

On 5/17/05, Berger, Daniel <Daniel.Berger@qwest.com> wrote:

> 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?

Note the date of the build. At that date there was a bug in readline
that made irb crash on some computers. It is fixed in the latest
builds though.