rails/rails — Issue #4050: Ruby 1.9.3 bug?
Author: alexeymuranov
Created: 2011-12-20 10:49:56+00:00
State: open

I am trying to work on rails master branch, an two days ago i started getting strange errors, sometimes they were about missing `journey` gem (`Could not find gem 'journey (~> 1.0.0) ruby'`), sometimes there were the message that `You may have encountered a bug in the Ruby interpreter or extension libraries.` I couldn't run tests anymore. I tried to checkout my branch where they were still running, but this didn't help. I was very confused, and finally i managed to reproduce a bug like this:

```shell
[alexey:rails(master)]$ rvm -v

rvm 1.10.0 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]

[alexey:rails(master)]$ rvm use 1.9.3@tmp
Using /Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0 with gemset tmp
[alexey:rails(master)]$ gem list

*** LOCAL GEMS ***

[alexey:rails(master)]$ gem install bundler
Successfully installed bundler-1.0.21
1 gem installed
Installing ri documentation for bundler-1.0.21...
Installing RDoc documentation for bundler-1.0.21...
[alexey:rails(master)]$ bundle update
Updating git://github.com/fxn/sdoc.git
Fetching source index for https://rubygems.org/
/Volumes/Data/Users/alexey/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]

...

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap
```

Here is a gist of complete output: https://gist.github.com/1501168.

If i use ruby 1.9.2-p290 instead, then `bundle update` works fine. I guess i'll have to stay with ruby 1.9.2.

I probably should report this for ruby, but i do not know how to reproduce this without cloning the whole rails repository.