BUG Segmentation error ruby ​​2.0.0p481 (version 2014-05-08 45883) x86_64-darwin13.2.0

When I try to run rails s or rails c I get an error.

I recently installed rubies and rails through homebrew and rbenv. When I launched rails new project , the application will be successfully created. Then I do a bundle install in the appropriate directory and everything updates smoothly when I run rails s or rails c . The following errors appear:

 |14:48:23| ~ rails c /Users/jona/.rvm/gems/ruby-2.0.0-p481/gems/json-1.8.1/lib/json/ext/parser.bundle: [BUG] Segmentation fault ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-darwin13.2.0] -- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following: * ~/Library/Logs/CrashReporter * /Library/Logs/CrashReporter * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports the more detail of. -- Control frame information ----------------------------------------------- c:0031 p:-17563034837610 s:0092 e:000091 TOP [FINISH] c:0030 p:---- s:0090 e:000089 CFUNC :require c:0029 p:0009 s:0086 e:000085 CLASS /Users/jona/.rvm/gems/ruby-2.0.0-p481/gems/json-1.8.1/lib/json/ext.rb:13 c:0028 p:0011 s:0084 e:000083 CLASS /Users/jona/.rvm/gems/ruby-2.0.0-p481/gems/json-1.8.1/lib/json/ext.rb:12 c:0027 p:0057 s:0082 e:000081 TOP /Users/jona/.rvm/gems/ruby-2.0.0-p481/gems/json-1.8.1/lib/json/ext.rb:9 [FINISH] ... 

(continues and continues)

  221 /Users/jona/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.0.0/lib/active_support/core_ext/object/conversions.rb 222 /Users/jona/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.0.0/lib/active_support/core_ext/object/instance_variables.rb 223 /Users/jona/.rvm/gems/ruby-2.0.0-p481/gems/json-1.8.1/lib/json/version.rb 224 /Users/jona/.rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/ostruct.rb 225 /Users/jona/.rvm/gems/ruby-2.0.0-p481/gems/json-1.8.1/lib/json/generic_object.rb 226 /Users/jona/.rvm/gems/ruby-2.0.0-p481/gems/json-1.8.1/lib/json/common.rb [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 

Full error report http://pastebin.com/ZXDcapw5

+1
ruby ruby-on-rails homebrew ruby-on-rails-4 rbenv
source share
1 answer

As promised, here is the answer:

Have you used rvm before? Since stacktrace shows that both rbenv and rvm are being called.

If so, uninstall rvm completely and reinstall rbenv from scratch.

+1
source share

All Articles