IRB segfaults on latest one click installer

Hi gurus and nubys,

Actually I don't have a clue on why this happens, but it seem it is related to readline.

The segfaults happens whith an input like:
Something::SomethingElse.foo
when written like this:
Somet<tab>::Something<tab>.fo<tab><enter>

example (obviously you won't see the tabs but they're there :slight_smile:

C:\Documents and Settings\gabriele\Desktop>irb --simple-prompt
>> require 'active_record'
=> true
>> ActiveRecord::Base.table_name
c:/programmi/ruby/lib/ruby/1.8/irb/input-method.rb:99: [BUG] Segmentation fault
ruby 1.8.2 (2004-07-29) [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\gabriele\Desktop>irb --simple-prompt
>> Object::Kernel.require # written by hand
ArgumentError: wrong number of arguments (0 for 1)
         from (irb):1:in `require'
         from (irb):1
>> Object::Kernel.require
c:/programmi/ruby/lib/ruby/1.8/irb/input-method.rb:97: [BUG] Segmentation fault
ruby 1.8.2 (2004-07-29) [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.

running on win xp pro

gabriele renzi wrote:

Hi gurus and nubys,

Actually I don't have a clue on why this happens, but it seem it is related to readline.

The segfaults happens whith an input like:
Something::SomethingElse.foo
when written like this:
Somet<tab>::Something<tab>.fo<tab><enter>

I get this too. In fact if I just type "String::" and press TAB twice, irb segfaults.

ruby -v says:
ruby 1.8.2 (2004-07-29) [i386-mswin32]

Joel VanderWerf wrote:

Sent: Thursday, September 09, 2004 3:50 PM
To: ruby-talk ML
Subject: Re: IRB segfaults on latest one click installer

gabriele renzi wrote:

> Hi gurus and nubys,
>
> Actually I don't have a clue on why this happens, but it seem it is
> related to readline.
>
> The segfaults happens whith an input like:
> Something::SomethingElse.foo
> when written like this:
> Somet<tab>::Something<tab>.fo<tab><enter>

I get this too. In fact if I just type "String::" and press TAB twice,
irb segfaults.

ruby -v says:
ruby 1.8.2 (2004-07-29) [i386-mswin32]

There is an open bug report on this:

http://rubyforge.org/tracker/index.php?func=detail&aid=876&group_id=167&atid
=715

I'm not sure if there'll be anything I can do about this, unless/until there
is an updated version of readline that I can try.

Curt

Curt Hibbs ha scritto:

Joel VanderWerf wrote:

I get this too. In fact if I just type "String::" and press TAB twice,
irb segfaults.

confirmed :confused:

ruby -v says:
ruby 1.8.2 (2004-07-29) [i386-mswin32]

There is an open bug report on this:

yes, I reported it there cause I had no feedback here. Is sad to hear that you don't know how to fix it, but is good to see that you would do something if you could. I hope I could do it myself..
Thank you, anyway.

gabriele renzi wrote:

Sent: Friday, September 10, 2004 9:20 AM
To: ruby-talk ML
Subject: Re: IRB segfaults on latest one click installer

Curt Hibbs ha scritto:
> Joel VanderWerf wrote:
>>I get this too. In fact if I just type "String::" and press TAB twice,
>>irb segfaults.

confirmed :confused:

>>ruby -v says:
>>ruby 1.8.2 (2004-07-29) [i386-mswin32]
>
>
> There is an open bug report on this:

yes, I reported it there cause I had no feedback here. Is sad to hear
that you don't know how to fix it, but is good to see that you would do
something if you could. I hope I could do it myself..
Thank you, anyway.

Ruby-talk is definitely the best place to report this. It was only because
of some observant ruby-talk readers that I was able to obtain a working
version of readline for windows.

Perhaps there are some other people reading this who have the expertise and
ability to find & fix this problem. If so, please let me know.

Curt