rails/rails — Issue #4766: Segmentation fault when bundle install on Rails 3.2 on Ruby 1.9.3
Author: atle
Created: 2012-01-30 19:10:33+00:00
State: open

I have installed Ruby 1.9.3-p0 with RVM and Rails 3.2 into a new, empty gemset, when I try to create a new Rails app I get this:

rails new test32
...
create vendor/plugins
create vendor/plugins/.gitkeep
run bundle install
/Users/atle/.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-darwin11.2.0]
...

I use RVM version 1.10.2, Gem version 1.8.15 and OS X 10.7.2.

The same happens if I manually run bundle install after the app is created.
It is the same problem in both Rails 3.2.0 and 3.2.1.
If I use Ruby 1.9.2-p290 it works.
I currently use Rails 3.1.3 with Ruby 1.9.3-p0 and that works.

I saw someone else reported the same problem on the Rails 3.2.0 blog post, comment 21 at http://weblog.rubyonrails.org/2012/1/20/rails-3-2-0-faster-dev-mode-routing-explain-queries-tagged-logger-store.