Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have you had this Ruby 1.9.3 segmentation fault bug? #4050
I am trying to work on rails master branch, and two days ago i started getting strange errors, sometimes they were about missing
[alexey:rails(master)]$ rvm -v rvm 1.10.0 by Wayne E. Seguin (firstname.lastname@example.org) [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
I probably should report this for ruby, but i do not know how to reproduce this without cloning the whole rails repository.
The segmentation fault is rather ruby bug and the thing with Journey is lack of one of the master dependencies in Gemfile. Lately @tenderlove rewrote rails router and it's in rails/journey repo. To avoid this you can do:
gem 'journey', :git => 'git://github.com/rails/journey.git' gem 'arel', :git => 'git://github.com/rails/arel.git'
As 3.2.0 is out, journey is released and in the gemspec, so probably it's no more needed (it may be better to keep using it from git if you use master though).
Apparently this is a known issue with ruby compiling with Mac OS openssl which in my case is version 0.9.8r. I followed instructions at http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/ to reinstall ruby-1.9.3-p0 with MacPorts openssl, and now it works. There is a report about this at http://bugs.ruby-lang.org/issues/5655.
Here are instructions for using MacPorts binaries with RVM: https://rvm.beginrescueend.com/integration/macports/
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Thanks, @alexeymuranov. Your suggestion worked perfectly. I was afraid I wasn't going to be able to play around with 1.9.3!
EDIT: After getting bundler working by just changing HTTPS to HTTP, I ran into several other problems when running tests and certain other rake tasks. The final solution was to uninstall 1.3.9-p125, and re-install with a different OpenSSL:
rvm pkg install openssl