I am using a Mac OS running Snow Leopard 10.6.8 and RVM 1.10.3, Ruby 1.9.3-p125, Ruby on Rails 3.2.2 and rspec-rails-2.8.1. I have properly installed and configured all gems, but when in the Terminal window I run the rake spec command I get the following:
$ rake spec
/<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/cli/command.rb:10: [BUG] Segmentation fault
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]
-- Control frame information -----------------------------------------------
c:0045 p:0011 s:0136 b:0136 l:000135 d:000135 CLASS /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/cli/command.rb:10
c:0044 p:0011 s:0134 b:0134 l:000133 d:000133 CLASS /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard/cli/command.rb:4
c:0043 p:0021 s:0132 b:0132 l:000131 d:000131 TOP /<ABSOLUT_PATH>/.rvm/gems/ruby-
1.9.3-p125/gems/yard-0.7.5/lib/yard/cli/command.rb:3
c:0033 p:0220 s:0104 b:0104 l:0020f0 d:0020f0 TOP /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/yard-0.7.5/lib/yard.rb:57
c:0032 p:---- s:0101 b:0101 l:000100 d:000100 FINISH
c:0031 p:---- s:0099 b:0099 l:000098 d:000098 CFUNC :require
c:0030 p:0026 s:0095 b:0095 l:000380 d:000470 BLOCK /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.0/lib/bundler/runtime.rb:68
c:0029 p:---- s:0092 b:0092 l:000091 d:000091 FINISH
c:0028 p:---- s:0090 b:0090 l:000089 d:000089 CFUNC :each
c:0027 p:0091 s:0087 b:0087 l:000380 d:000408 BLOCK /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.0/lib/bundler/runtime.rb:66
c:0026 p:---- s:0081 b:0081 l:000080 d:000080 FINISH
c:0025 p:---- s:0079 b:0079 l:000078 d:000078 CFUNC :each
c:0024 p:0046 s:0076 b:0076 l:000380 d:000380 METHOD /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.0/lib/bundler/runtime.rb:55
c:0023 p:0021 s:0072 b:0072 l:0004e0 d:0004e0 METHOD /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.0/lib/bundler.rb:118
c:0022 p:0089 s:0068 b:0068 l:000548 d:000548 TOP /<ABSOLUT_PATH>/Sites/<APPLICATION_NAME>/config/application.rb:7
c:0021 p:---- s:0066 b:0066 l:000065 d:000065 FINISH
c:0020 p:---- s:0064 b:0064 l:000063 d:000063 CFUNC :require
c:0019 p:0026 s:0060 b:0060 l:0005a8 d:0005a8 TOP /<ABSOLUT_PATH>/Sites/<APPLICATION_NAME>/config/environment.rb:2
c:0018 p:---- s:0058 b:0058 l:000057 d:000057 FINISH
c:0017 p:---- s:0056 b:0056 l:000055 d:000055 CFUNC :require
c:0016 p:0058 s:0052 b:0052 l:000608 d:000608 TOP /<ABSOLUT_PATH>/Sites/<APPLICATION_NAME>/spec/spec_helper.rb:3
c:0015 p:---- s:0050 b:0050 l:000049 d:000049 FINISH
c:0014 p:---- s:0048 b:0048 l:000047 d:000047 CFUNC :require
c:0013 p:0011 s:0044 b:0044 l:000668 d:000668 TOP /<ABSOLUT_PATH>/Sites/<APPLICATION_NAME>/spec/controllers/users_controller_spec.rb:1
c:0012 p:---- s:0042 b:0042 l:000041 d:000041 FINISH
c:0011 p:---- s:0040 b:0040 l:000039 d:000039 CFUNC :load
c:0010 p:0025 s:0036 b:0036 l:0006c8 d:000730 BLOCK /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698
c:0009 p:---- s:0033 b:0033 l:000032 d:000032 FINISH
c:0008 p:---- s:0031 b:0031 l:000030 d:000030 CFUNC :map
c:0007 p:0023 s:0028 b:0028 l:0006c8 d:0006c8 METHOD /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698
c:0006 p:0074 s:0025 b:0025 l:0007a8 d:0007a8 METHOD /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb:22
c:0005 p:0055 s:0020 b:0020 l:000820 d:000820 METHOD /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:80
c:0004 p:0101 s:0014 b:0014 l:0008a8 d:0008a8 METHOD /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:69
c:0003 p:0021 s:0007 b:0006 l:001788 d:000908 BLOCK /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:10
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:002388 d:002388 TOP
-- 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: /<ABSOLUT_PATH>/.rvm/gems/ruby-1.9.3-p125/bin/rspec
* Loaded features:
0 enumerator.so
1 /<ABSOLUT_PATH>/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/encdb.bundle
2 /<ABSOLUT_PATH>/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/trans/transdb.bundle
3 /<ABSOLUT_PATH>/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/defaults.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
rake aborted!
/<ABSOLUT_PATH>/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -S rspec ./spec/controllers/users_controller_spec.rb ... failed
How can I solve the issue?
Note: I noted that the problem happens sometimes, randomly!
In my Gemfile I have:
...
group :development, :test do
gem "rspec-rails"
gem 'webrat'
end
group :test do
gem 'factory_girl_rails'
gem 'cucumber-rails'
gem 'turn', :require => false
end
...
EDITED: Based on the information you have provided so far, it seems like you have found a bug in Ruby 1.9.3. I recommend that you report this to the Ruby core team.
Until this bug is fixed, you must find a way around it. To find a way around it, you must get more details about exactly what does and does not trigger it.
In the stack trace which you posted, it looks like line 68 of bundler/runtime.rb is requiring the yard gem. Using Ruby 1.9.3, try requiring the yard gem yourself, from IRB or a simple test script. Does that trigger the error? If not, go to the method which "realer" is calling in "bundler" (bundler.rb, line 118). Try calling that method (whatever it is) yourself, from a test script. Does that trigger the error? ...and so on.
Fortunately, when you install Ruby gems, the source code is available in the "gems" directory, and you can study and modify it. I have also had to "hack" the source code of my gems before to work around problems (until a fixed version of the gem is released).
I have the same issue, random crashes related supposedly to Yard when running rspec.
I found another post that fixed the issue for me. Removed 'pry-doc' dependency.
StackOverflow Post
Related
I am using
ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-linux] )
Rails 5.0.7.2
while execute the rails c command it throws below error -
`
`home/user/.rvm/gems/ruby-2.5.8/gems/mysql2-0.5.3/lib/mysql2/client.rb:90: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0044 p:---- s:0331 e:000330 CFUNC :connect
c:0043 p:0614 s:0319 e:000318 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/mysql2-0.5.3/lib/mysql2/client.rb:90 [FINISH]
c:0042 p:---- s:0305 e:000304 CFUNC :new
c:0041 p:0142 s:0300 e:000299 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/mysql2_adapter.rb:25
c:0040 p:0024 s:0293 e:000292 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:729
c:0039 p:0021 s:0289 e:000288 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:773
c:0038 p:0016 s:0285 e:000284 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:752
c:0037 p:0014 s:0279 e:000278 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:713
c:0036 p:0012 s:0273 e:000271 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:490
c:0035 p:0031 s:0267 e:000263 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:364
c:0034 p:0046 s:0260 e:000259 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/activerecord-5.0.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:883
c:0033 p:0011 s:0253 e:000252 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/activerecord-5.0.7.2/lib/active_record/connection_handling.rb:128
c:0032 p:0004 s:0249 e:000248 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/activerecord-5.0.7.2/lib/active_record/connection_handling.rb:91
c:0031 p:0012 s:0245 e:000244 METHOD /home/user/.rvm/gems/ruby-2.5.8/gems/activerecord-5.0.7.2/lib/active_record/migration.rb:559`
`[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
Aborted (core dumped)
`
can you give any idea to solve this issue?
rake spec
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/common.rb:67: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0057 p:---- s:0169 b:0169 l:000168 d:000168 CFUNC :initialize
c:0056 p:---- s:0167 b:0167 l:000166 d:000166 CFUNC :new
c:0055 p:0099 s:0164 b:0162 l:000161 d:000161 METHOD /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/common.rb:67
c:0054 p:0090 s:0153 b:0152 l:000151 d:000151 CLASS /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/ext.rb:17
c:0053 p:0011 s:0150 b:0150 l:000149 d:000149 CLASS /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/ext.rb:12
c:0052 p:0074 s:0148 b:0148 l:000147 d:000147 TOP /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/ext.rb:9
c:0051 p:---- s:0146 b:0146 l:000145 d:000145 FINISH
c:0050 p:---- s:0144 b:0144 l:000143 d:000143 CFUNC :require
c:0049 p:0027 s:0140 b:0140 l:000139 d:000139 CLASS /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json.rb:58
c:0048 p:0021 s:0138 b:0138 l:000137 d:000137 TOP /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json.rb:54
c:0047 p:---- s:0136 b:0136 l:000135 d:000135 FINISH
c:0046 p:---- s:0134 b:0134 l:000133 d:000133 CFUNC :require
c:0045 p:0011 s:0130 b:0130 l:000129 d:000129 TOP /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.1/lib/active_support/core_ext/object/json.rb:2
c:0044 p:---- s:0128 b:0128 l:000127 d:000127 FINISH
c:0043 p:---- s:0126 b:0126 l:000125 d:000125 CFUNC :require
c:0042 p:0107 s:0122 b:0122 l:000121 d:000121 TOP /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.1/lib/active_support/core_ext/object.rb:11
c:0041 p:---- s:0120 b:0120 l:000119 d:000119 FINISH
c:0040 p:---- s:0118 b:0118 l:000117 d:000117 CFUNC :require
c:0039 p:0023 s:0114 b:0114 l:000113 d:000113 TOP /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/configuration.rb:2
c:0038 p:---- s:0112 b:0112 l:000111 d:000111 FINISH
c:0037 p:---- s:0110 b:0110 l:000109 d:000109 CFUNC :require
c:0036 p:0023 s:0106 b:0106 l:000105 d:000105 TOP /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/railtie.rb:2
c:0035 p:---- s:0104 b:0104 l:000103 d:000103 FINISH
c:0034 p:---- s:0102 b:0102 l:000101 d:000101 CFUNC :require
c:0033 p:0011 s:0098 b:0098 l:000097 d:000097 TOP /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/engine.rb:1
c:0032 p:---- s:0096 b:0096 l:000095 d:000095 FINISH
c:0031 p:---- s:0094 b:0094 l:000093 d:000093 CFUNC :require
c:0030 p:0071 s:0090 b:0090 l:000089 d:000089 TOP /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/application.rb:6
c:0029 p:---- s:0088 b:0088 l:000087 d:000087 FINISH
c:0028 p:---- s:0086 b:0086 l:000085 d:000085 CFUNC :require
c:0027 p:0095 s:0082 b:0082 l:000081 d:000081 TOP /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails.rb:11
c:0026 p:---- s:0080 b:0080 l:000079 d:000079 FINISH
c:0025 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC :require
c:0024 p:0011 s:0074 b:0074 l:000073 d:000073 TOP /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/all.rb:1
c:0023 p:---- s:0072 b:0072 l:000071 d:000071 FINISH
c:0022 p:---- s:0070 b:0070 l:000069 d:000069 CFUNC :require
c:0021 p:0038 s:0066 b:0066 l:000065 d:000065 TOP /home/starkers/Documents/opensource_projects/gitlabhq/config/application.rb:3
c:0020 p:---- s:0064 b:0064 l:000063 d:000063 FINISH
c:0019 p:---- s:0062 b:0062 l:000061 d:000061 CFUNC :require
c:0018 p:0036 s:0058 b:0058 l:000057 d:000057 METHOD /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36
c:0017 p:0026 s:0051 b:0051 l:000050 d:000050 TOP /home/starkers/Documents/opensource_projects/gitlabhq/Rakefile:5
c:0016 p:---- s:0049 b:0049 l:000048 d:000048 FINISH
c:0015 p:---- s:0047 b:0047 l:000046 d:000046 CFUNC :load
c:0014 p:0013 s:0043 b:0043 l:000042 d:000042 METHOD /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/rake_module.rb:28
c:0013 p:0252 s:0039 b:0039 l:000038 d:000038 METHOD /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:687
c:0012 p:0009 s:0034 b:0034 l:000027 d:000033 BLOCK /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:94
c:0011 p:0007 s:0032 b:0032 l:000031 d:000031 METHOD /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:176
c:0010 p:0011 s:0028 b:0028 l:000027 d:000027 METHOD /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:93
c:0009 p:0019 s:0025 b:0025 l:000018 d:000024 BLOCK /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:77
c:0008 p:0007 s:0023 b:0023 l:000022 d:000022 METHOD /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:176
c:0007 p:0011 s:0019 b:0019 l:000018 d:000018 METHOD /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:75
c:0006 p:0060 s:0016 b:0016 l:000015 d:000015 TOP /home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/bin/rake:33
c:0005 p:---- s:0014 b:0014 l:000013 d:000013 FINISH
c:0004 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC :load
c:0003 p:0167 s:0008 b:0008 l:001ac8 d:001588 EVAL /usr/local/bin/rake:23
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001ac8 d:001ac8 TOP
-- Ruby level backtrace information ----------------------------------------
/usr/local/bin/rake:23:in `<main>'
/usr/local/bin/rake:23:in `load'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:77:in `block in run'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:93:in `load_rakefile'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:94:in `block in load_rakefile'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/application.rb:687:in `raw_load_rakefile'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load'
/home/starkers/Documents/opensource_projects/gitlabhq/Rakefile:5:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/home/starkers/Documents/opensource_projects/gitlabhq/config/application.rb:3:in `<top (required)>'
/home/starkers/Documents/opensource_projects/gitlabhq/config/application.rb:3:in `require'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/all.rb:1:in `<top (required)>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/all.rb:1:in `require'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails.rb:11:in `<top (required)>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails.rb:11:in `require'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/application.rb:6:in `<top (required)>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/application.rb:6:in `require'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/engine.rb:1:in `<top (required)>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/engine.rb:1:in `require'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/railtie.rb:2:in `<top (required)>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/railtie.rb:2:in `require'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/configuration.rb:2:in `<top (required)>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.1.1/lib/rails/configuration.rb:2:in `require'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.1/lib/active_support/core_ext/object.rb:11:in `<top (required)>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.1/lib/active_support/core_ext/object.rb:11:in `require'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.1/lib/active_support/core_ext/object/json.rb:2:in `<top (required)>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.1.1/lib/active_support/core_ext/object/json.rb:2:in `require'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json.rb:54:in `<top (required)>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json.rb:58:in `<module:JSON>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json.rb:58:in `require'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/ext.rb:9:in `<top (required)>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/ext.rb:12:in `<module:JSON>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/ext.rb:17:in `<module:Ext>'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/common.rb:67:in `generator='
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/common.rb:67:in `new'
/home/starkers/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/common.rb:67:in `initialize'
-- A lot more stuff here!
[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
Aborted (core dumped)
When running rake spec I get the above. I can't run my rails project.
1) Could someone explain how I can use this information to find the error?
2) Can anyone see my personal problem? I'm trying to run Gitlab, which is a pretty huge project which others could run into
3) How can I get around this if it is indeed a bug? Change rails version? Change ruby version? How can I go about doing this.
I'm on Ubuntu and installed via RVM. So I can change ruby version via that. What about my Gems though? ~> x.x.x option and bundle install?
It seems there is a problem with one of the dependencies, the json gem. Following your numbering:
When you see a segmentation fault error it typically involves mismatching gemsets or gem's native extensions compiled against the wrong version of ruby, so you should look in that direction.
Indeed, the first line reports the gem being taken from one ruby 2.0.0p247 gemset while the second reports ruby 1.9.3p194 as the current interpreter.
In your particular case, I would cd into the project folder, rebuild the gemset with gem pristine --all, rebuild the project dependencies with bundle update and then try re-running the command using the project binstub: ./bin/rake rspec.
It doesn't seem a bug to me, but you should pay attention to the version of ruby you're using in every moment. With RVM you can specify a default wide system ruby version and gemset but also as many project specific ruby versions and gemsets as you wish, and it can lead to trouble sometimes.
Hope it helps.
Having some seriously strange problems with my rails install, any help much appreciated.
It all began when I ran bundle clean --force hoping to solve some gem issues with a project. I then ran bundle install, but things were never the same. First, I had a weird [BUG] cross-thread violation on rb_gc() error when running rails s. After running gem clean I managed to move on to a new error:
bundle exec rails s
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/rubyeventmachine.bundle: [BUG] Segmentation fault
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0]
-- Control frame information -----------------------------------------------
c:0034 p:-17535289580530 s:0105 b:0105 l:000104 d:000104 TOP
c:0033 p:---- s:0103 b:0103 l:000102 d:000102 CFUNC :require
c:0032 p:0010 s:0099 b:0099 l:000091 d:000098 BLOCK /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251
c:0031 p:0071 s:0097 b:0097 l:000096 d:000096 METHOD /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236
c:0030 p:0019 s:0092 b:0092 l:000091 d:000091 METHOD /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251
c:0029 p:0150 s:0087 b:0087 l:000086 d:000086 TOP /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/eventmachine.rb:66
c:0028 p:---- s:0085 b:0085 l:000084 d:000084 FINISH
c:0027 p:---- s:0083 b:0083 l:000082 d:000082 CFUNC :require
c:0026 p:0010 s:0079 b:0079 l:000071 d:000078 BLOCK /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251
c:0025 p:0071 s:0077 b:0077 l:000076 d:000076 METHOD /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236
c:0024 p:0019 s:0072 b:0072 l:000071 d:000071 METHOD /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251
c:0023 p:0083 s:0067 b:0067 l:000066 d:000066 TOP /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/thin-1.3.1/lib/thin.rb:7
c:0022 p:---- s:0065 b:0065 l:000064 d:000064 FINISH
c:0021 p:---- s:0063 b:0063 l:000062 d:000062 CFUNC :require
c:0020 p:0026 s:0059 b:0059 l:000039 d:000058 BLOCK /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:68
c:0019 p:---- s:0056 b:0056 l:000055 d:000055 FINISH
c:0018 p:---- s:0054 b:0054 l:000053 d:000053 CFUNC :each
c:0017 p:0091 s:0051 b:0051 l:000039 d:000050 BLOCK /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:66
c:0016 p:---- s:0045 b:0045 l:000044 d:000044 FINISH
c:0015 p:---- s:0043 b:0043 l:000042 d:000042 CFUNC :each
c:0014 p:0046 s:0040 b:0040 l:000039 d:000039 METHOD /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:55
c:0013 p:0021 s:0036 b:0036 l:000035 d:000035 METHOD /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler.rb:119
c:0012 p:0089 s:0032 b:0032 l:000031 d:000031 TOP /Users/yuletide/code/txtyourcity_rails/config/application.rb:7
c:0011 p:---- s:0030 b:0030 l:000029 d:000029 FINISH
c:0010 p:---- s:0028 b:0028 l:000027 d:000027 CFUNC :require
c:0009 p:0016 s:0024 b:0024 l:000015 d:000023 BLOCK /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.3/lib/rails/commands.rb:53
c:0008 p:---- s:0021 b:0021 l:000020 d:000020 FINISH
c:0007 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC :tap
c:0006 p:0702 s:0016 b:0016 l:000015 d:000015 TOP /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.3/lib/rails/commands.rb:50
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :require
c:0003 p:0061 s:0006 b:0006 l:000df8 d:0008c8 EVAL script/rails:6
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000df8 d:000df8 TOP
-- Ruby level backtrace information ----------------------------------------
script/rails:6:in `'
script/rails:6:in `require'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.3/lib/rails/commands.rb:50:in `'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.3/lib/rails/commands.rb:53:in `block in '
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.3/lib/rails/commands.rb:53:in `require'
/Users/yuletide/code/txtyourcity_rails/config/application.rb:7:in `'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `block in require'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `each'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `require'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/thin-1.3.1/lib/thin.rb:7:in `'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/eventmachine.rb:66:in `'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
-- 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: script/rails
* Loaded features:
0 enumerator.so
1 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/enc/encdb.bundle
2 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/enc/trans/transdb.bundle
3 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
4 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/rbconfig.rb
5 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
6 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
7 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
8 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb
9 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/pathname.bundle
10 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/pathname.rb
11 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
12 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/etc.bundle
13 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb
14 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
15 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
16 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
17 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
18 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
19 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/psych.bundle
20 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/stringio.bundle
21 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/psych/nodes/node.rb
22 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/psych/nodes/stream.rb
23 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/psych/nodes/document.rb
24 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/psych/nodes/sequence.rb
25 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/psych/nodes/scalar.rb
26 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/psych/nodes/mapping.rb
27 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/psych/nodes/alias.rb
28 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/psych/nodes.rb
29 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/psych/streaming.rb
30 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/psych/visitors/visitor.rb
31 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-darwin11.3.0/strscan.bundle
... snip ...
2.0.2/lib/simple_form/wrappers/builder.rb
629 /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/simple_form-2.0.2/lib/simple_form/wrappers/many.rb
630 /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/simple_form-2.0.2/lib/simple_form/wrappers/single.rb
631 /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/simple_form-2.0.2/lib/simple_form/wrappers/root.rb
632 /Users/yuletide/.rvm/gems/ruby-1.9.3-p125/gems/simple_form-2.0.2/lib/simple_form.rb
633 /Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/timeout.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
[1] 1577 abort bundle exec rails s
gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.21
- RUBY VERSION: 1.9.3 (2012-02-16 patchlevel 125) [x86_64-darwin11.3.0]
- INSTALLATION DIRECTORY: /Users/ayule/.rvm/gems/ruby-1.9.3-p125
- RUBY EXECUTABLE: /Users/ayule/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
- EXECUTABLE DIRECTORY: /Users/ayule/.rvm/gems/ruby-1.9.3-p125/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-11
- GEM PATHS:
- /Users/ayule/.rvm/gems/ruby-1.9.3-p125
- /Users/ayule/.rvm/gems/ruby-1.9.3-p125#global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
rvm seems to be working fine:
code/txtyourcity_rails(master) ☸ which ruby
/Users/yuletide/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
code/txtyourcity_rails(master) ☸ which rails
/Users/yuletide/.rvm/gems/ruby-1.9.3-p125/bin/rails
Just guessing - have you build your ruby using clang/LLVM, ruby is not yet ready for it, the bug should be reported most likely to bundler / ruby.
To fix follow instructions from my other answer https://stackoverflow.com/a/10540282/497756 to similar problem.
Not sure what caused it initially, but managed to get the error to go away by upgrading to 1.9.3-p194 with rvm, creating a .rvmrc, and then running bundle install
So I'm trying to learn Ruby and rails from Lynda.com When I get to the database sections the teacher has us do this schema dump with rake but it aborts and I cant figure out whats wrong (I'm very new to all this so please forgive me =))
OS: Lion
Ruby: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
Rails: Rails 3.2.3
Rake: rake (0.9.2.2)
$PATH: /usr/local/Cellar:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
All the gems should be up to date ( just reinstalled the other day ). If you need to know anything else to help troubleshoot please let me know!
This is the errors I'm getting:
Alex$ rake db:schema:dump
rake aborted!
cannot load such file -- bundler/setup
(See full trace by running task with --trace)
Alex$ rake --trace
rake aborted!
cannot load such file -- bundler/setup
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/Alex/Sites/simple_cms/config/boot.rb:6:in `<top (required)>'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/Alex/Sites/simple_cms/config/application.rb:1:in `<top (required)>'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/Alex/Sites/simple_cms/Rakefile:5:in `<top (required)>'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load_rakefile'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:501:in `raw_load_rakefile'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:82:in `block in load_rakefile'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:81:in `load_rakefile'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:65:in `block in run'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/usr/local/bin/rake:32:in `<main>'
Got this when I tried to reinstall budel and run this command:
Alex$ bundle exec rake db:schema:dump
/Library/Ruby/Gems/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
-- Control frame information -----------------------------------------------
c:0030 p:-17562901266652 s:0090 b:0090 l:000089 d:000089 TOP
c:0029 p:---- s:0088 b:0088 l:000087 d:000087 CFUNC :require
c:0028 p:0119 s:0084 b:0084 l:000083 d:000083 TOP /Library/Ruby/Gems/1.8/gems/mysql2-0.3.11/lib/mysql2.rb:9
c:0027 p:---- s:0082 b:0082 l:000081 d:000081 FINISH
c:0026 p:---- s:0080 b:0080 l:000079 d:000079 CFUNC :require
c:0025 p:0026 s:0076 b:0076 l:000056 d:000075 BLOCK /Library/Ruby/Gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:68
c:0024 p:---- s:0073 b:0073 l:000072 d:000072 FINISH
c:0023 p:---- s:0071 b:0071 l:000070 d:000070 CFUNC :each
c:0022 p:0091 s:0068 b:0068 l:000056 d:000067 BLOCK /Library/Ruby/Gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:66
c:0021 p:---- s:0062 b:0062 l:000061 d:000061 FINISH
c:0020 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC :each
c:0019 p:0046 s:0057 b:0057 l:000056 d:000056 METHOD /Library/Ruby/Gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:55
c:0018 p:0021 s:0053 b:0053 l:000052 d:000052 METHOD /Library/Ruby/Gems/1.8/gems/bundler-1.1.3/lib/bundler.rb:119
c:0017 p:0089 s:0049 b:0049 l:000048 d:000048 TOP /Users/Alex/Sites/simple_cms/config/application.rb:7
c:0016 p:---- s:0047 b:0047 l:000046 d:000046 FINISH
c:0015 p:---- s:0045 b:0045 l:000044 d:000044 CFUNC :require
c:0014 p:0026 s:0041 b:0041 l:000040 d:000040 TOP /Users/Alex/Sites/simple_cms/Rakefile:5
c:0013 p:---- s:0039 b:0039 l:000038 d:000038 FINISH
c:0012 p:---- s:0037 b:0037 l:000036 d:000036 CFUNC :load
c:0011 p:0013 s:0033 b:0033 l:000032 d:000032 METHOD /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25
c:0010 p:0274 s:0029 b:0029 l:000028 d:000028 METHOD /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:501
c:0009 p:0009 s:0024 b:0024 l:000017 d:000023 BLOCK /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:82
c:0008 p:0009 s:0022 b:0022 l:000021 d:000021 METHOD /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133
c:0007 p:0011 s:0018 b:0018 l:000017 d:000017 METHOD /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:81
c:0006 p:0019 s:0015 b:0015 l:000008 d:000014 BLOCK /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:65
c:0005 p:0009 s:0013 b:0013 l:000012 d:000012 METHOD /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133
c:0004 p:0011 s:0009 b:0009 l:000008 d:000008 METHOD /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63
c:0003 p:0048 s:0006 b:0006 l:0003a8 d:000a48 EVAL /usr/local/bin/rake:32
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0003a8 d:0003a8 TOP
......
[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
Alex$
The error is to long to fit into this field.
Install rvm
Create a new gemset for ur project. Im betting youre using aystem ruby that comes with Lion in some regards
I've resolved this by running:
gem install bundler
If you try that and it shows you have bundler installed, try typing:
bundle exec rake db:schema:dump
You may be running the command outside the scope of the current bundle.
Here's a bit more background information on why you need to add bundle exec in front of your rake commands:
http://gembundler.com/
Also, note that rake isn't required in your 'Gemfile' as long as you have rails specified. rake installs as a dependency of rails. To see the correlation, take a look at your Gemfile.lock.
Once you install rvm, add the following to a file named .rvmrc in the root directory of your project:
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
&& -s "${rvm_path:-$HOME/.rvm}/environments/ruby-1.9.3-p125#MYPROJECTNAME" ]] ; then
\. "${rvm_path:-$HOME/.rvm}/environments/ruby-1.9.3-p125#MYPROJECTNAME"
else
rvm --create use "ruby-1.9.3-p125#MYPROJECTNAME"
fi
Substitute your project name for "MYPROJECTNAME" and the appropriate ruby version where you see ruby-1.9.3-p125. Then when you change into that directory, rvm will automatically set the gemset and ruby version for you.
The problem seems to be that I installed bundle after I installed ruby & rails. I uninstalled ruby and all my gems (but left bundle and homebrew) and then used rvm to install the latest ruby and rails.
Also note I did not use sudo unless it required me to. I think this put the files in a different place and that might have also helped.
rake commands are now working (with out using the bundle command before it).
So basically I had bundle installed and then did everything this guy did at the bottom of his questions ( #5 gave me and error and did not install ).
How do you install (build) Ruby 1.9.3 on OSX Lion?
Hope this helps anyone else running into the same problem I did.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I was running code in ruby console and I suddenly found console crahsed with error below.
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:90: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
-- control frame ----------
c:0015 p:0106 s:0053 b:0053 l:001904 d:001ed4 BLOCK /home/cis/.rvm/rubies/ruby-1.9.2- p290/lib/ruby/1.9.1/webrick/server.rb:90
c:0014 p:0007 s:0047 b:0047 l:000046 d:000046 METHOD /home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:22
c:0013 p:0063 s:0044 b:0044 l:001904 d:001904 METHOD /home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:81
c:0012 p:0118 s:0039 b:0039 l:000038 d:000038 METHOD /home/cis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13
c:0011 p:0269 s:0034 b:0034 l:00165c d:00165c METHOD /home/cis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.6/lib/rack/server.rb:265
c:0010 p:0231 s:0029 b:0029 l:001f00 d:001f00 METHOD /home/cis/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/server.rb:70
c:0009 p:0063 s:0025 b:0025 l:000016 d:000024 BLOCK /home/cis/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:54
c:0008 p:---- s:0022 b:0022 l:000021 d:000021 FINISH
c:0007 p:---- s:0020 b:0020 l:000019 d:000019 CFUNC :tap
c:0006 p:0721 s:0017 b:0017 l:000016 d:000016 TOP /home/cis/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:49
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :require
c:0003 p:0061 s:0006 b:0006 l:0012e4 d:0007f4 EVAL script/rails:6
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0012e4 d:0012e4 TOP
---- - Ruby level backtrace information ------------
script/rails:6:in `<main>'
script/rails:6:in `require'
/home/cis/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:49:in `<top (required)>'
/home/cis/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:49:in `tap'
/home/cis/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:54:in `block in <top (required)>'
/home/cis/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/server.rb:70:in `start'
/home/cis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.6/lib/rack/server.rb:265:in `start'
/home/cis/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.6/lib/rack/handler/webrick.rb:13:in `run'
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:81:in `start'
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:22:in `start'
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:90:in `block in start'
-- C level backtrace information ---------
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_vm_bugreport+0x72) [0xd19702]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x56757) [0xbf1757]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_bug+0x3a) [0xbf184a]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x10a6d4) [0xca56d4]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_thread_run+0x22) [0xd1ead2]
/home/cis/.rvm/gems/ruby-1.9.2-p290/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so(+0x7bfc) [0x17abfc]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_threadptr_exec_event_hooks+0xdd) [0xd19d6d]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x179474) [0xd14474]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x16e100) [0xd09100]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x173728) [0xd0e728]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_yield+0x62) [0xd11562]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_obj_tap+0x22) [0xc41f52]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x16880d) [0xd0380d]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x17941e) [0xd1441e]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x16e100) [0xd09100]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x173728) [0xd0e728]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_iseq_eval+0x15b) [0xd0eceb]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x5bcbf) [0xbf6cbf]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_require_safe+0x602) [0xbf8362]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_f_require+0x26) [0xbf8646]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x168803) [0xd03803]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x17941e) [0xd1441e]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x16e100) [0xd09100]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x173728) [0xd0e728]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(rb_iseq_eval_main+0x1f2) [0xd0eb62]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(+0x5905a) [0xbf405a]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(ruby_exec_node+0x25) [0xbf4095]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.so.1.9(ruby_run_node+0x35) [0xbf5815]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/bin/ruby(main+0x68) [0x80487f8]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x4f8bd6]
/home/cis/.rvm/rubies/ruby-1.9.2-p290/bin/ruby() [0x80486f1]
[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)[http://www.ruby-lang.org/bugreport.html]
Aborted
Kindly let me know if any solution of this bug?
This is not the right place to report a bug in ruby.
As your bug report already stated, go to http://www.ruby-lang.org/bugreport.html and perform the steps the web page lists there to report the bug.