MacOS Passenger Ruby PG Gem Segmentation Fault - ruby

For some reason a segmentation fault keeps my site from even loading the first page. I've reinstalled rubies, updated gems, reinstalled postgresql and nginx, checked over my nginx.conf file, and perused logs. Currently I only have one Ruby 2.3.1 installed via RVM, and IRB works like a charm. Passenger says preloader found an error.
From the looks of it, it's using Ruby 2.0.0p648 interpreter but 2.3.1 is the only version installed. Can I change that somehow? I've set rvm to use and --default to 2.3.1, and that's what it shows, but it keeps coming back to 2.0.0 somehow. It seems RVM's settings won't update. I'm stumped.
An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read this article for more information about this problem.
Raw process output:
/Users/rich/.rvm/gems/ruby-2.3.1/gems/pg-0.19.0/lib/pg_ext.bundle: [BUG] Segmentation fault
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]
-- 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:0023 p:-17535534978622 s:0081 e:000080 TOP [FINISH]
c:0022 p:---- s:0079 e:000078 CFUNC :require
c:0021 p:0009 s:0075 e:000074 TOP /Users/rich/.rvm/gems/ruby-2.3.1/gems/pg-0.19.0/lib/pg.rb:4 [FINISH]
c:0020 p:---- s:0071 e:000070 CFUNC :require
c:0019 p:0039 s:0067 e:000066 BLOCK /Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:91 [FINISH]
c:0018 p:---- s:0063 e:000062 CFUNC :each
c:0017 p:0055 s:0060 e:000059 BLOCK /Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:86 [FINISH]
c:0016 p:---- s:0054 e:000053 CFUNC :each
c:0015 p:0032 s:0051 e:000050 METHOD /Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:75
c:0014 p:0013 s:0047 e:000046 METHOD /Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler.rb:106
c:0013 p:0027 s:0043 e:000042 TOP /Library/WebServer/Documents/HQ/app.rb:7 [FINISH]
c:0012 p:---- s:0041 e:000040 CFUNC :require
c:0011 p:0020 s:0037 e:000036 BLOCK config.ru:5 [FINISH]
c:0010 p:---- s:0035 e:000034 CFUNC :instance_eval
c:0009 p:0039 s:0032 e:000031 METHOD /Users/rich/.rvm/gems/ruby-2.3.1/gems/rack-1.6.4/lib/rack/builder.rb:55 [FINISH]
c:0008 p:---- s:0027 e:000026 CFUNC :new
c:0007 p:0013 s:0024 E:0008e8 EVAL config.ru:1 [FINISH]
c:0006 p:---- s:0022 e:000021 CFUNC :eval
c:0005 p:0150 s:0016 e:000015 METHOD /usr/local/Cellar/passenger/5.0.30_2/libexec/src/helper-scripts/rack-preloader.rb:110
c:0004 p:0115 s:0009 e:000008 CLASS /usr/local/Cellar/passenger/5.0.30_2/libexec/src/helper-scripts/rack-preloader.rb:156
c:0003 p:0011 s:0006 e:000005 CLASS /usr/local/Cellar/passenger/5.0.30_2/libexec/src/helper-scripts/rack-preloader.rb:30
c:0002 p:0036 s:0004 E:000448 EVAL /usr/local/Cellar/passenger/5.0.30_2/libexec/src/helper-scripts/rack-preloader.rb:29 [FINISH]
c:0001 p:0000 s:0002 E:000398 TOP [FINISH]
/usr/local/Cellar/passenger/5.0.30_2/libexec/src/helper-scripts/rack-preloader.rb:29:in `<main>'
/usr/local/Cellar/passenger/5.0.30_2/libexec/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
/usr/local/Cellar/passenger/5.0.30_2/libexec/src/helper-scripts/rack-preloader.rb:156:in `<module:App>'
/usr/local/Cellar/passenger/5.0.30_2/libexec/src/helper-scripts/rack-preloader.rb:110:in `preload_app'
/usr/local/Cellar/passenger/5.0.30_2/libexec/src/helper-scripts/rack-preloader.rb:110:in `eval'
config.ru:1:in `<main>'
config.ru:1:in `new'
/Users/rich/.rvm/gems/ruby-2.3.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
/Users/rich/.rvm/gems/ruby-2.3.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
config.ru:5:in `block in <main>'
config.ru:5:in `require'
/Library/WebServer/Documents/HQ/app.rb:7:in `<top (required)>'
/Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler.rb:106:in `require'
/Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `require'
/Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `each'
/Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `block in require'
/Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `each'
/Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `require'
/Users/rich/.rvm/gems/ruby-2.3.1/gems/pg-0.19.0/lib/pg.rb:4:in `<top (required)>'
/Users/rich/.rvm/gems/ruby-2.3.1/gems/pg-0.19.0/lib/pg.rb:4:in `require'
-- C level backtrace information -------------------------------------------
-- Other runtime information -----------------------------------------------
* Loaded script: /usr/local/Cellar/passenger/5.0.30_2/libexec/src/helper-scripts/rack-preloader.rb
* Loaded features:
0 enumerator.so
1 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/enc/encdb.bundle
2 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/enc/trans/transdb.bundle
3 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/rbconfig.rb
4 /Library/Ruby/Site/2.0.0/rubygems/compatibility.rb
5 /Library/Ruby/Site/2.0.0/rubygems/defaults.rb
6 /Library/Ruby/Site/2.0.0/rubygems/deprecate.rb
7 /Library/Ruby/Site/2.0.0/rubygems/errors.rb
8 /Library/Ruby/Site/2.0.0/rubygems/version.rb
9 /Library/Ruby/Site/2.0.0/rubygems/requirement.rb
10 /Library/Ruby/Site/2.0.0/rubygems/platform.rb
11 /Library/Ruby/Site/2.0.0/rubygems/basic_specification.rb
12 /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb
13 /Library/Ruby/Site/2.0.0/rubygems/util/stringio.rb
14 /Library/Ruby/Site/2.0.0/rubygems/specification.rb
15 /Library/Ruby/Site/2.0.0/rubygems/exceptions.rb
16 /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb
17 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/thread.rb
18 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb
19 /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb
20 /Library/Ruby/Site/2.0.0/rubygems.rb
21 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger.rb
22 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/constants.rb
23 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/etc.bundle
24 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb
25 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tmpdir.rb
26 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/utils/tmpio.rb
27 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/platform_info.rb
28 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb
29 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/platform_info/ruby.rb
30 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb
31 /usr/local/Cellar/passenger/5.0.30_2/libexec/buildout/ruby/ruby-2.0.0-universal-macosx/passenger_native_support.bundle
32 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/native_support.rb
33 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/socket.bundle
34 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/socket.rb
35 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/pathname.bundle
36 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb
37 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/ruby_core_enhancements.rb
38 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/ruby_core_io_enhancements.rb
39 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/base64.rb
40 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/utils.rb
41 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb
42 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/public_api.rb
43 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/debug_logging.rb
44 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/shellwords.rb
45 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/utils/shellwords.rb
46 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb
47 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/fcntl.bundle
48 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/message_channel.rb
49 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/message_client.rb
50 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/utils/native_support_utils.rb
51 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/utils/unseekable_socket.rb
52 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb
53 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/request_handler.rb
54 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/stringio.bundle
55 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/utils/tee_input.rb
56 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb
57 /Library/Ruby/Site/2.0.0/rubygems/path_support.rb
58 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core/version.rb
59 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core.rb
60 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_rails/lib/union_station_hooks_rails/version.rb
61 /usr/local/Cellar/passenger/5.0.30_2/libexec/src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_rails/lib/union_station_hooks_rails.rb
62 /Library/Ruby/Site/2.0.0/rubygems/dependency.rb
63 /Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/postit_trampoline.rb
64 /Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/constants.rb
65 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/io/console.bundle
66 /Library/Ruby/Site/2.0.0/rubygems/user_interaction.rb
67 /Library/Ruby/Site/2.0.0/rubygems/config_file.rb
68 /Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/rubygems_integration.rb
69 /Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/current_ruby.rb
70 /Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb
71 /Library/Ruby/Site/2.0.0/rubygems/ext/build_error.rb
72 /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb
73 /Library/Ruby/Site/2.0.0/rubygems/ext/configure_builder.rb
74 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/delegate.rb
75 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tempfile.rb
76 /Library/Ruby/Site/2.0.0/rubygems/ext/ext_conf_builder.rb
77 /Library/Ruby/Site/2.0.0/rubygems/ext/rake_builder.rb
78 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/optparse.rb
79 /Library/Ruby/Site/2.0.0/rubygems/command.rb
80 /Library/Ruby/Site/2.0.0/rubygems/ext/cmake_builder.rb
81 /Library/Ruby/Site/2.0.0/rubygems/ext.rb
82 /Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/errors.rb
83 /Users/rich/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/environment_preserver.rb
84 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb
85 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/protocol.rb
86 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb
87 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/generic.rb
88 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/ftp.rb
89 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/http.rb
90 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/https.rb
91 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/ldap.rb
92 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/ldaps.rb
93 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/mailto.rb
94 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri.rb
95 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/zlib.bundle
96 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http/exceptions.rb
97 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http/header.rb
98 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http/generic_request.rb
99 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http/request.rb
100 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http/requests.rb

It looks like your pg gem compiled against 2.0.0p648 when you originally installed it. Simply running
gem uninstall pg
rvm use ruby_2_3_1 (switch to Ruby 2.3.1)
gem install pg (This should recompile it against Ruby 2.3.1)
Also specify ruby version in passenger config file.
passenger_ruby /Users/rich/.rvm/gems/ruby-2.3.1/bin/ruby;

Turns out you can't point directly to a hard binary. RVM needs that pointer to a wrapper, so this is the final path: passenger_ruby /Users/rich/.rvm/wrappers/default/ruby, which is a pointer to passenger_ruby /Users/rich/.rvm/wrappers/ruby-2.3.1/ruby. Tested both applications and it works completely now. The command brew info nginx --with-passenger output the wrong ruby location.

Related

Rake task using 'json' crashes on Mac OS X

Following rakefile will crash ruby:
require 'json'
task :default do |t, p|
end
Running rake will get:
$ rake
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json/ext/parser.bundle: [BUG] Segmentation fault
ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]
-- 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:0026 p:-17548726946152 s:0099 e:000098 TOP [FINISH]
c:0025 p:---- s:0097 e:000096 CFUNC :require
c:0024 p:0115 s:0093 e:000092 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55
c:0023 p:0009 s:0083 e:000082 CLASS /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json/ext.rb:13
c:0022 p:0011 s:0081 e:000080 CLASS /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json/ext.rb:12
c:0021 p:0057 s:0079 e:000078 TOP /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json/ext.rb:9 [FINISH]
c:0020 p:---- s:0077 e:000076 CFUNC :require
c:0019 p:0115 s:0073 e:000072 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55
c:0018 p:0019 s:0063 e:000062 CLASS /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json.rb:58
c:0017 p:0017 s:0061 e:000060 TOP /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json.rb:54 [FINISH]
c:0016 p:---- s:0059 e:000058 CFUNC :require
c:0015 p:0115 s:0055 e:000054 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55
c:0014 p:0007 s:0045 e:000044 TOP /Users/mobile/test.rake:1 [FINISH]
c:0013 p:---- s:0043 e:000042 CFUNC :load
c:0012 p:0009 s:0039 e:000038 METHOD /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/rake_module.rb:28
c:0011 p:0176 s:0035 e:000034 METHOD /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:689
c:0010 p:0007 s:0030 e:000029 BLOCK /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:94
c:0009 p:0006 s:0028 e:000027 METHOD /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:176
c:0008 p:0007 s:0024 e:000023 METHOD /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:93
c:0007 p:0013 s:0021 e:000020 BLOCK /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:77
c:0006 p:0006 s:0019 e:000018 METHOD /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:176
c:0005 p:0007 s:0015 e:000014 METHOD /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:75
c:0004 p:0040 s:0012 e:000011 TOP /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/bin/rake:33 [FINISH]
c:0003 p:---- s:0010 e:000009 CFUNC :load
c:0002 p:0118 s:0006 E:001b38 EVAL /Users/mobile/.rvm/gems/ruby-2.0.0-p594/bin/rake:23 [FINISH]
c:0001 p:0000 s:0002 E:001688 TOP [FINISH]
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/bin/rake:23:in `<main>'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/bin/rake:23:in `load'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:77:in `block in run'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:94:in `block in load_rakefile'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load'
/Users/mobile/test.rake:1:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json.rb:54:in `<top (required)>'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json.rb:58:in `<module:JSON>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json/ext.rb:9:in `<top (required)>'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json/ext.rb:12:in `<module:JSON>'
/Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json/ext.rb:13:in `<module:Ext>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
-- C level backtrace information -------------------------------------------
-- Other runtime information -----------------------------------------------
* Loaded script: /Users/mobile/.rvm/gems/ruby-2.0.0-p594/bin/rake
* Loaded features:
0 enumerator.so
1 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/enc/encdb.bundle
2 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/enc/trans/transdb.bundle
3 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/rbconfig.rb
4 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/compatibility.rb
5 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/defaults.rb
6 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/deprecate.rb
7 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/errors.rb
8 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/version.rb
9 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/requirement.rb
10 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/platform.rb
11 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb
12 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/exceptions.rb
13 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
14 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/thread.rb
15 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb
16 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb
17 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems.rb
18 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb
19 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/path_support.rb
20 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/version.rb
21 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin15/etc.bundle
22 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb
23 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/singleton.rb
24 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/optparse.rb
25 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/ostruct.rb
26 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/ext/module.rb
27 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/ext/core.rb
28 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/ext/string.rb
29 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/early_time.rb
30 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/late_time.rb
31 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/ext/time.rb
32 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/alt_system.rb
33 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/win32.rb
34 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/linked_list.rb
35 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb
36 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/cpu_counter.rb
37 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/scope.rb
38 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/task_argument_error.rb
39 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/rule_recursion_overflow_error.rb
40 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/shellwords.rb
41 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/task_manager.rb
42 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/cloneable.rb
43 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/file_utils.rb
44 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/file_utils_ext.rb
45 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/pathmap.rb
46 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/file_list.rb
47 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/set.rb
48 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/promise.rb
49 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/thread_pool.rb
50 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/private_reader.rb
51 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/thread_history_display.rb
52 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/trace_output.rb
53 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/application.rb
54 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/rake_module.rb
55 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/pseudo_status.rb
56 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/task_arguments.rb
57 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/invocation_chain.rb
58 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/invocation_exception_mixin.rb
59 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/task.rb
60 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/file_task.rb
61 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/file_creation_task.rb
62 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/multi_task.rb
63 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/dsl_definition.rb
64 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/default_loader.rb
65 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/name_space.rb
66 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake/backtrace.rb
67 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/rake-10.4.2/lib/rake.rb
68 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json/version.rb
69 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json/generic_object.rb
70 /Users/mobile/.rvm/gems/ruby-2.0.0-p594/gems/json-1.8.3/lib/json/common.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
Don't forget to include the above Crash Report log file.
For details: http://www.ruby-lang.org/bugreport.html
Abort trap: 6
While running the following in irb is fine:
$ irb
2.0.0-p594 :001 > require 'json'
=> true
Here's the output from rvm info:
$ rvm info
ruby-2.0.0-p594:
system:
uname: "Darwin mobile.private 15.0.0 Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu-3247.1.106~1/RELEASE_X86_64 x86_64"
system: "osx/10.11/x86_64"
bash: "/bin/bash => GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)"
zsh: "/bin/zsh => zsh 5.0.8 (x86_64-apple-darwin15.0)"
rvm:
version: "rvm 1.26.11 (master) by Wayne E. Seguin <wayneeseguin#gmail.com>, Michal Papis <mpapis#gmail.com> [https://rvm.io/]"
updated: "45 minutes 37 seconds ago"
path: "/Users/mobile/.rvm"
ruby:
interpreter: "ruby"
version: "2.0.0p594"
date: "2014-10-27"
platform: "x86_64-darwin14.0.0"
patchlevel: "2014-10-27 revision 48167"
full_version: "ruby 2.0.0p594 (2014-10-27 revision 48167) [x86_64-darwin14.0.0]"
homes:
gem: "/Users/mobile/.rvm/gems/ruby-2.0.0-p594"
ruby: "/Users/mobile/.rvm/rubies/ruby-2.0.0-p594"
binaries:
ruby: "/Users/mobile/.rvm/rubies/ruby-2.0.0-p594/bin/ruby"
irb: "/Users/mobile/.rvm/rubies/ruby-2.0.0-p594/bin/irb"
gem: "/Users/mobile/.rvm/rubies/ruby-2.0.0-p594/bin/gem"
rake: "/Users/mobile/.rvm/gems/ruby-2.0.0-p594/bin/rake"
environment:
PATH: "/Users/mobile/.rvm/gems/ruby-2.0.0-p594/bin:/Users/mobile/.rvm/gems/ruby-2.0.0-p594#global/bin:/Users/mobile/.rvm/rubies/ruby-2.0.0-p594/bin:/Users/mobile/.rvm/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/usr/local/sbin"
GEM_HOME: "/Users/mobile/.rvm/gems/ruby-2.0.0-p594"
GEM_PATH: "/Users/mobile/.rvm/gems/ruby-2.0.0-p594:/Users/mobile/.rvm/gems/ruby-2.0.0-p594#global"
MY_RUBY_HOME: "/Users/mobile/.rvm/rubies/ruby-2.0.0-p594"
IRBRC: "/Users/mobile/.rvm/rubies/ruby-2.0.0-p594/.irbrc"
RUBYOPT: ""
gemset: ""
Uninstall/reinstall rake solved the problem.
$ gem uninstall rake
Successfully uninstalled rake-10.4.2
$ gem install rake
Fetching: rake-10.4.2.gem (100%)
Successfully installed rake-10.4.2
Parsing documentation for rake-10.4.2
Installing ri documentation for rake-10.4.2
Done installing documentation for rake after 1 seconds
1 gem installed
$rake
I had the same issue. Just uninstalled the json gem and re-installed with the exact same version, which fixed my problems.

Trying Foreman Start and get this long error. What gives?

This is what is happening, I'm a newb so if someone could explain what this means and how to fix it it be greatly appreciated. Trying to launch a Django project using Heroku. After typing Foreman Start in terminal this is the error I recieve:
(coffeedapp2)Uzers-MBP-3:coffeedapp uzer-y$ foreman start
/Users/uzer-y/.rvm/gems/ruby-2.2.0#global/gems/psych-2.0.13/lib/psych.bundle: [BUG] Segmentation fault
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
-- 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:0014 p:-17578513380292 s:0070 e:000069 TOP [FINISH]
c:0013 p:---- s:0068 e:000067 CFUNC :require
c:0012 p:0115 s:0064 e:000063 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55
c:0011 p:0007 s:0054 e:000053 TOP /Users/uzer-y/.rvm/gems/ruby-2.2.0#global/gems/psych-2.0.13/lib/psych.rb:1 [FINISH]
c:0010 p:---- s:0052 e:000051 CFUNC :require
c:0009 p:0115 s:0048 e:000047 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55
c:0008 p:0009 s:0038 e:000037 TOP /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/yaml.rb:5 [FINISH]
c:0007 p:---- s:0036 e:000035 CFUNC :require
c:0006 p:0115 s:0032 e:000031 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55
c:0005 p:0063 s:0022 e:000021 TOP /usr/local/foreman/lib/foreman/cli.rb:8 [FINISH]
c:0004 p:---- s:0020 e:000019 CFUNC :require
c:0003 p:0115 s:0016 e:000015 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55
c:0002 p:0090 s:0006 E:0010b8 EVAL /usr/bin/foreman:13 [FINISH]
c:0001 p:0000 s:0002 E:0010a8 TOP [FINISH]
/usr/bin/foreman:13:in `<main>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/foreman/lib/foreman/cli.rb:8:in <top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/yaml.rb:5:in'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
/Users/uzer-y/.rvm/gems/ruby-2.2.0#global/gems/psych-2.0.13/lib/psych.rb:1:in <top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
-- C level backtrace information -------------------------------------------
-- Other runtime information -----------------------------------------------
* Loaded script: /usr/bin/foreman
* Loaded features:
0 enumerator.so
1 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/enc/encdb.bundle
2 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/enc/trans/transdb.bundle
3 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb
4 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/compatibility.rb
5 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/defaults.rb
6 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/deprecate.rb
7 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/errors.rb
8 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/version.rb
9 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/requirement.rb
10 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/platform.rb
11 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb
12 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/exceptions.rb
13 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
14 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/thread.rb
15 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb
16 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb
17 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems.rb
18 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/pathname.bundle
19 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb
20 /usr/local/foreman/lib/foreman/version.rb
21 /usr/local/foreman/lib/foreman.rb
22 /usr/local/foreman/lib/foreman/helpers.rb
23 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/shellwords.rb
24 /usr/local/foreman/lib/foreman/process.rb
25 /usr/local/foreman/lib/foreman/procfile.rb
26 /usr/local/foreman/vendor/gems/dotenv-0.11.1/lib/dotenv/substitutions/variable.rb
27 /usr/local/foreman/vendor/gems/dotenv-0.11.1/lib/dotenv/substitutions/command.rb
28 /usr/local/foreman/vendor/gems/dotenv-0.11.1/lib/dotenv/parser.rb
29 /usr/local/foreman/vendor/gems/dotenv-0.11.1/lib/dotenv/environment.rb
30 /usr/local/foreman/vendor/gems/dotenv-0.11.1/lib/dotenv.rb
31 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/delegate.rb
32 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/etc.bundle
33 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb
34 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tmpdir.rb
35 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tempfile.rb
36 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb
37 /usr/local/foreman/lib/foreman/engine.rb
38 /usr/local/foreman/lib/foreman/engine/cli.rb
39 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/ostruct.rb
40 /usr/local/foreman/lib/foreman/export/base.rb
41 /usr/local/foreman/lib/foreman/export/inittab.rb
42 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/cgi/util.rb
43 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/strscan.bundle
44 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb
45 /usr/local/foreman/lib/foreman/export/upstart.rb
46 /usr/local/foreman/lib/foreman/export/daemon.rb
47 /usr/local/foreman/lib/foreman/export/bluepill.rb
48 /usr/local/foreman/lib/foreman/export/runit.rb
49 /usr/local/foreman/lib/foreman/export/supervisord.rb
50 /usr/local/foreman/lib/foreman/export/launchd.rb
51 /usr/local/foreman/lib/foreman/export/systemd.rb
52 /usr/local/foreman/lib/foreman/export.rb
53 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb
54 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby /2.0.0/rubygems/path_support.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
Abort trap: 6
There is a mismatch in Ruby versions -- your gemset is using Ruby 2.2, but Foreman is looking for 2.0. The way I resolved the issue is to run
gem install foreman
for the gemset I am using. Then foreman start will reference the local (instead of global) instance of foreman.
If all gems are already installed bundle install.. try to run executing bundle exec foreman start

Best way to diagnose and repair ruby gem errors on mac

(Edited to include full error msg)
All of a sudden any gem command throws the following error:
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/extensions/x86_64-darwin-12/2.0.0/psych-2.0.6/psych.bundle: [BUG] Segmentation fault
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin12.5.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:0014 p:-17529742134590 s:0075 e:000074 TOP [FINISH]
c:0013 p:---- s:0073 e:000072 CFUNC :require
c:0012 p:0115 s:0069 e:000068 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55
c:0011 p:0007 s:0059 e:000058 TOP /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/psych-2.0.6/lib/psych.rb:1 [FINISH]
c:0010 p:---- s:0057 e:000056 CFUNC :require
c:0009 p:0115 s:0053 e:000052 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55
c:0008 p:0078 s:0043 e:000042 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems.rb:601
c:0007 p:0013 s:0039 e:000038 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb:328
c:0006 p:0145 s:0033 e:000032 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb:197 [FINISH]
c:0005 p:---- s:0022 e:000021 CFUNC :new
c:0004 p:0018 s:0018 e:000016 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:74
c:0003 p:0018 s:0013 e:000012 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:39
c:0002 p:0115 s:0007 E:0015e0 EVAL /usr/local/Cellar/ruby/2.0.0-p353/bin/gem:21 [FINISH]
c:0001 p:0000 s:0002 E:000278 TOP [FINISH]
/usr/local/Cellar/ruby/2.0.0-p353/bin/gem:21:in <main>'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:39:inrun'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:74:in do_configuration'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:74:innew'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb:197:in initialize'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb:328:inload_file'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems.rb:601:in load_yaml'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/psych-2.0.6/lib/psych.rb:1:in'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
-- C level backtrace information -------------------------------------------
-- Other runtime information -----------------------------------------------
Loaded script: /usr/local/Cellar/ruby/2.0.0-p353/bin/gem
Loaded features:
0 enumerator.so
1 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/enc/encdb.bundle
2 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/enc/trans/transdb.bundle
3 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/rbconfig.rb
4 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/compatibility.rb
5 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/defaults.rb
6 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/deprecate.rb
7 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/errors.rb
8 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/version.rb
9 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/requirement.rb
10 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/platform.rb
11 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb
12 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/stub_specification.rb
13 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/util/stringio.rb
14 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb
15 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/exceptions.rb
16 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
17 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/thread.rb
18 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/monitor.rb
19 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb
20 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems.rb
21 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/optparse.rb
22 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/io/console.bundle
23 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/user_interaction.rb
24 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/command.rb
25 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/command_manager.rb
26 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/etc.bundle
27 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb
28 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/path_support.rb
29 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb
30 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.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
Abort trap: 6
Any insight is greatly appreciated.
In comments, the OP said:
Actually, checking the app/updates it appears my Xcode was updated. However I have not upgraded to Yosemite.
Upgrades to Apple's Xcode can break things in surprising ways. Whenever Xcode is updated, or OS X system libraries are upgraded, it can often help to do some or all of the following:
Accept the new Xcode license agreement. You need to do this after each upgrade, even if you've accepted the agreement before.
Installing the Xcode command line tools again.
Re-install any non-system Ruby versions, and recompile gems with native extensions.

ruby Segmentation fault under vim

I'm developing ruby application in vim. When I run rspec from vim (using :!rspec), I got this strange error. Can anyone point me to the right direction and find out what the problem is? And why its fine if I use spec outside of vim?
rspec spec/telepresence_api/user_spec.rb
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
-- 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:0021 p:-17587624402138 s:0089 e:000088 TOP [FINISH]
c:0020 p:---- s:0087 e:000086 CFUNC :require
c:0019 p:0073 s:0083 e:000082 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45
c:0018 p:0186 s:0073 e:000072 TOP /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/nokogiri-1.6.0/lib/nokogiri.rb:28 [FINISH]
c:0017 p:---- s:0071 e:000070 CFUNC :require
c:0016 p:0059 s:0067 e:000066 BLOCK /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110
c:0015 p:0286 s:0064 e:000063 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35
c:0014 p:0007 s:0054 e:000053 TOP /Users/runfor/Projects/telepresence_api/lib/telepresence_api.rb:1 [FINISH]
c:0013 p:---- s:0052 e:000051 CFUNC :require_relative
c:0012 p:0007 s:0048 e:000047 TOP /Users/runfor/Projects/telepresence_api/spec/spec_helper.rb:1 [FINISH]
c:0011 p:---- s:0046 e:000045 CFUNC :require
c:0010 p:0073 s:0042 e:000041 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45
c:0009 p:0007 s:0032 e:000031 TOP /Users/runfor/Projects/telepresence_api/spec/telepresence_api/user_spec.rb:1 [FINISH]
c:0008 p:---- s:0030 e:000029 CFUNC :load
c:0007 p:0018 s:0026 e:000025 BLOCK /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896 [FINISH]
c:0006 p:---- s:0023 e:000022 CFUNC :each
c:0005 p:0011 s:0020 e:000019 METHOD /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896
c:0004 p:0054 s:0017 e:000016 METHOD /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22
c:0003 p:0101 s:0012 e:000011 METHOD /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80
c:0002 p:0044 s:0005 e:000004 BLOCK /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17 [FINISH]
c:0001 p:0000 s:0002 E:0005d8 TOP [FINISH]
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load'
/Users/runfor/Projects/telepresence_api/spec/telepresence_api/user_spec.rb:1:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
/Users/runfor/Projects/telepresence_api/spec/spec_helper.rb:1:in `<top (required)>'
/Users/runfor/Projects/telepresence_api/spec/spec_helper.rb:1:in `require_relative'
/Users/runfor/Projects/telepresence_api/lib/telepresence_api.rb:1:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `require'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
-- C level backtrace information -------------------------------------------
-- Other runtime information -----------------------------------------------
* Loaded script: /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/bin/rspec
* Loaded features:
0 enumerator.so
1 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/enc/encdb.bundle
2 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/enc/trans/transdb.bundle
3 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb
4 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/compatibility.rb
5 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/defaults.rb
6 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/deprecate.rb
7 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/errors.rb
8 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/version.rb
9 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/requirement.rb
10 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/platform.rb
11 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb
12 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/exceptions.rb
13 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
14 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb
15 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems.rb
16 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb
17
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/path_support.rb
18 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/set.rb
19 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/date_core.bundle
20 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/date/format.rb
21 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/date.rb
22 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/time.rb
23 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/filter_manager.rb
24 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/dsl.rb
25 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/extensions/kernel.rb
26 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/extensions/instance_eval_with_args.rb
27 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/extensions/module_eval_with_args.rb
28 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/extensions/ordered.rb
29 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/deprecation.rb
30 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/backward_compatibility.rb
31 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/reporter.rb
32 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/metadata_hash_builder.rb
33 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/hooks.rb
34 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/memoized_helpers.rb
35 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/metadata.rb
36 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/pending.rb
37 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/formatters.rb
38 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/world.rb
39 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/etc.bundle
40 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb
41 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/backtrace_cleaner.rb
42 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/pathname.bundle
43 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb
44 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/ruby_project.rb
45 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/formatters/deprecation_formatter.rb
46 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb
47 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/project_initializer.rb
48 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/optparse.rb
49 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/option_parser.rb
50 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/cgi/util.rb
51 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/strscan.bundle
52 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb
53 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/shellwords.rb
54 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration_options.rb
55 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb
56 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb
57 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/example.rb
58 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/shared_example_group/collection.rb
59 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/shared_example_group.rb
60 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb
61 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/version.rb
62 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core.rb
63 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/autorun.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
Command terminated
Press ENTER or type command to continue
It occurs, that vim loads the different ruby version.
The ruby version I use is:
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin13.0.0]
but vim loads this one:
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal-darwin13.0.0]
This article explains why this happen. One of the reasons is that I'm using zsh. So basically to fix this I added set shell=/bin/sh to my .vimrc file. Now it loads the right ruby.
seems to be linked with native library provided by Apple.
I've fixed this problem by reinstall ruby.
rvm reinstall 2.0.0-p247 --disable-binary --autolibs=3

rb_gc_mark(): unknown data type 0x12(0x7fd31213aeb0) non object (with libgit2 & rugged gem)

I am using rugged gem which uses libgit2 to operate on a git repository. It works fine, but the extension does something weird and interfere in other library's functionality. In my case net/http starts to throw exceptions.
In my case this is the test code:
require 'net/http'
require 'uri'
require 'rugged'
#repo = Rugged::Repository.new(".")
#commits = []
#i = 0
walker = #repo.walk(#repo.head.target)
walker.each { |c|
#commits << c
break if #i > 2
#i += 1
}
while true
resource_uri = URI.parse("http://twitter.com/BigDataSG/status/182426904740102144")
response = Net::HTTP.start(resource_uri.host, resource_uri.port) do |http|
http.get(resource_uri.path, {'X-Token' => "TacoBell"}).....
end
puts response.body[0...140]
end
It results in
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141: [BUG] rb_gc_mark(): unknown data type 0x12(0x7fd31213aeb0) non object
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
-- Control frame information -----------------------------------------------
c:0020 p:---- s:0095 b:0095 l:000094 d:000094 CFUNC :read_nonblock
c:0019 p:0025 s:0091 b:0090 l:000089 d:000089 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141
c:0018 p:0090 s:0087 b:0087 l:000086 d:000086 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:92
c:0017 p:0067 s:0079 b:0079 l:000078 d:000078 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2755
c:0016 p:0102 s:0074 b:0074 l:000073 d:000073 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2710
c:0015 p:0043 s:0068 b:0068 l:001ee0 d:000067 BLOCK /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1029
c:0014 p:0017 s:0064 b:0064 l:000048 d:000063 BLOCK /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1322
c:0013 p:0042 s:0062 b:0062 l:000061 d:000061 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2671
c:0012 p:0106 s:0057 b:0057 l:000048 d:000056 BLOCK /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1321
c:0011 p:---- s:0055 b:0055 l:000054 d:000054 FINISH
c:0010 p:---- s:0053 b:0053 l:000052 d:000052 CFUNC :catch
c:0009 p:0025 s:0049 b:0049 l:000048 d:000048 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316
c:0008 p:0097 s:0043 b:0043 l:000042 d:000042 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1293
c:0007 p:0094 s:0036 b:0036 l:001ee0 d:001ee0 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1026
c:0006 p:0026 s:0028 b:0028 l:0015d8 d:000027 BLOCK test.rb:19
c:0005 p:0057 s:0025 b:0025 l:000024 d:000024 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:745
c:0004 p:0182 s:0022 b:0022 l:000021 d:000021 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557
c:0003 p:0174 s:0009 b:0009 l:0015d8 d:000610 EVAL test.rb:18
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0015d8 d:0015d8 TOP
-- Ruby level backtrace information ----------------------------------------
test.rb:18:in `<main>'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557:in `start'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:745:in `start'
test.rb:19:in `block in <main>'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1026:in `get'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1293:in `request'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in `transport_request'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in `catch'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1321:in `block in transport_request'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2671:in `reading_body'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1322:in `block (2 levels) in transport_request'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1029:in `block in get'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2710:in `read_body'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2755:in `read_body_0'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:92:in `read'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141:in `read_nonblock'
-- C level backtrace information -------------------------------------------
See Crash Report log file under ~/Library/Logs/CrashReporter or
/Library/Logs/CrashReporter, for the more detail of.
-- Other runtime information -----------------------------------------------
* Loaded script: test.rb
* Loaded features:
0 enumerator.so
1 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/enc/encdb.bundle
2 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/enc/trans/transdb.bundle
3 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
4 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/rbconfig.rb
5 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
6 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
7 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
8 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb
9 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/socket.bundle
10 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/socket.rb
11 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb
12 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb
13 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/common.rb
14 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/generic.rb
15 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/ftp.rb
16 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/http.rb
17 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/https.rb
18 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/ldap.rb
19 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/ldaps.rb
20 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/mailto.rb
21 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri.rb
22 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/zlib.bundle
23 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/stringio.bundle
24 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb
25 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
26 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
27 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
28 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
29 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
30 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
31 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/rugged.bundle
32 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/index.rb
33 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/objects.rb
34 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/version.rb
35 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/repository.rb
36 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/walker.rb
37 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/tree.rb
38 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged.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
Abort trap: 6
This problem happens because the native extension is compiled against old libgit2.
What you need to do is clone latest rugged repository , rake compile and then "gem build rugged.gemspec". Finally just install the resultant gem using 'gem i rugged-x.x.x.gem'

Resources