I'm trying to use the new Sidekiq gem in my rails application but when I run sidekiq I get:
Booting sidekiq 0.5.1 with Redis at redis://localhost:6379/0
/Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/task.rb:56: [BUG] Bus Error
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]
-- control frame ----------
c:0010 p:---- s:0034 b:0034 l:000033 d:000033 CFUNC :resume
c:0009 p:0018 s:0030 b:0030 l:000029 d:000029 METHOD /Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/task.rb:56
c:0008 p:0081 s:0025 b:0025 l:000c40 d:000c40 METHOD /Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/actor.rb:181
c:0007 p:0052 s:0021 b:0021 l:000020 d:000020 METHOD /Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/actor.rb:130
c:0006 p:0061 s:0015 b:0015 l:001db0 d:000014 BLOCK /Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/actor.rb:89
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :call
c:0003 p:0021 s:0008 b:0008 l:001f98 d:000007 BLOCK /Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/thread_pool.rb:46
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
/Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/thread_pool.rb:46:in `block in create'
/Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/thread_pool.rb:46:in `call'
/Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/actor.rb:89:in `block in initialize'
/Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/actor.rb:130:in `run'
/Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/actor.rb:181:in `handle_message'
/Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/task.rb:56:in `resume'
/Users/Kyle/.rvm/gems/ruby-1.9.2-p290#skateparks/gems/celluloid-0.8.0/lib/celluloid/task.rb:56:in `resume'
-- C level backtrace information -------------------------------------------
0 libruby.1.9.1.dylib 0x000000010834f51e rb_vm_bugreport + 110
1 libruby.1.9.1.dylib 0x0000000108243533 report_bug + 259
2 libruby.1.9.1.dylib 0x00000001082436a1 rb_bug + 161
3 libruby.1.9.1.dylib 0x00000001082e5fb2 sigbus + 18
4 libsystem_c.dylib 0x00007fff967d7cfa _sigtramp + 26
[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] 1782 abort sidekiq
First, you should not be using 1.9.2 for this gem (1.9.3-p0 or higher) and second there is an open issue (GH-26) that references this error.
Related
I am trying to run a Ruby on Rails application on my development environment (Ubuntu 14.04). rails s does not report errors and Webrick seems to start properly:
$ rails s
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2015-04-30 08:52:32] INFO WEBrick 1.3.1
[2015-04-30 08:52:32] INFO ruby 1.9.3 (2014-11-13) [x86_64-linux]
[2015-04-30 08:52:32] INFO WEBrick::HTTPServer#start: pid=15523 port=3000
However, once I try to access the application through a web browser Webrick crashes with the following error:
/home/desousa/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/webrick/server.rb:98: [BUG] Segmentation fault
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0016 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC :select
c:0015 p:0106 s:0053 b:0053 l:000043 d:000052 BLOCK /home/desousa/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/webrick/server.rb:98
c:0014 p:0007 s:0047 b:0047 l:000046 d:000046 METHOD /home/desousa/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/webrick/server.rb:22
c:0013 p:0063 s:0044 b:0044 l:000043 d:000043 METHOD /home/desousa/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/webrick/server.rb:89
c:0012 p:0118 s:0039 b:0039 l:000038 d:000038 METHOD /home/desousa/.rvm/gems/ruby-1.9.3-p551/gems/rack-1.4.5/lib/rack/handler/webrick.rb:13
c:0011 p:0294 s:0034 b:0034 l:002200 d:002200 METHOD /home/desousa/.rvm/gems/ruby-1.9.3-p551/gems/rack-1.4.5/lib/rack/server.rb:268
c:0010 p:0231 s:0028 b:0028 l:0011a0 d:0011a0 METHOD /home/desousa/.rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.13/lib/rails/commands/server.rb:70
c:0009 p:0063 s:0024 b:0024 l:000015 d:000023 BLOCK /home/desousa/.rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.13/lib/rails/commands.rb:55
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 /home/desousa/.rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.13/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:0016e8 d:001838 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:0016e8 d:0016e8 TOP
-- Ruby level backtrace information ----------------------------------------
script/rails:6:in `<main>'
script/rails:6:in `require'
/home/desousa/.rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
/home/desousa/.rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
/home/desousa/.rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
/home/desousa/.rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
/home/desousa/.rvm/gems/ruby-1.9.3-p551/gems/rack-1.4.5/lib/rack/server.rb:268:in `start'
/home/desousa/.rvm/gems/ruby-1.9.3-p551/gems/rack-1.4.5/lib/rack/handler/webrick.rb:13:in `run'
/home/desousa/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/webrick/server.rb:89:in `start'
/home/desousa/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/webrick/server.rb:22:in `start'
/home/desousa/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/webrick/server.rb:98:in `block in start'
/home/desousa/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/webrick/server.rb:98:in `select'
-- C level backtrace information -------------------------------------------
SEGV received in SEGV handler
Aborted (core dumped)
The software versions I am using in this project:
$ ruby -v
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux]
$ rails -v
Rails 3.2.13
What could be the cause of this? Or can I do to understand the cause?
I had some touble with Webrick too that caused a segementation fault. I only had this on one specific ubuntu box but I didn't have the same error on other ubuntu boxes with the exact same setup. Lately I solved it using thin. To do this add this to your Gemfile:
gem 'thin'
Then run
bundle install
rails server
Recently (few minutes ago) I deleted all my gems using:
rvm gemset empty mygems
rvm gemset delete global
I created my own gemset name.
rvm gemset create myname
I created a .ruby-gemset file in my project with myname
I did a: bundle install on my app so I have a fresh install.
Now I need to run the command like this to run my server:
bundle exec rails s
Before I was able to simply run: rails s.
Now it gives me this stack:
MacBook-Pro-de-Name-2:rails-app namename$ rails s
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json/ext/parser.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:0033 p:-17565584435966 s:0098 e:000097 TOP [FINISH]
c:0032 p:---- s:0096 e:000095 CFUNC :require
c:0031 p:0009 s:0092 e:000091 CLASS /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json/ext.rb:13
c:0030 p:0011 s:0090 e:000089 CLASS /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json/ext.rb:12
c:0029 p:0057 s:0088 e:000087 TOP /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json/ext.rb:9 [FINISH]
c:0028 p:---- s:0086 e:000085 CFUNC :require
c:0027 p:0019 s:0082 e:000081 CLASS /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json.rb:58
c:0026 p:0017 s:0080 e:000079 TOP /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json.rb:54 [FINISH]
c:0025 p:---- s:0078 e:000077 CFUNC :require
c:0024 p:0009 s:0074 e:000073 TOP /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/object/to_json.r [FINISH]
c:0023 p:---- s:0072 e:000071 CFUNC :require
c:0022 p:0071 s:0068 e:000067 TOP /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/object.rb:11 [FINISH]
c:0021 p:---- s:0066 e:000065 CFUNC :require
c:0020 p:0023 s:0062 e:000061 TOP /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/configuration.rb:3 [FINISH]
c:0019 p:---- s:0060 e:000059 CFUNC :require
c:0018 p:0015 s:0056 e:000055 TOP /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/railtie.rb:2 [FINISH]
c:0017 p:---- s:0054 e:000053 CFUNC :require
c:0016 p:0007 s:0050 e:000049 TOP /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/engine.rb:1 [FINISH]
c:0015 p:---- s:0048 e:000047 CFUNC :require
c:0014 p:0031 s:0044 e:000043 TOP /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/application.rb:4 [FINISH]
c:0013 p:---- s:0042 e:000041 CFUNC :require
c:0012 p:0047 s:0038 e:000037 TOP /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails.rb:9 [FINISH]
c:0011 p:---- s:0036 e:000035 CFUNC :require
c:0010 p:0007 s:0032 e:000031 TOP /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/all.rb:1 [FINISH]
c:0009 p:---- s:0030 e:000029 CFUNC :require
c:0008 p:0026 s:0026 e:000025 TOP /Users/namename/Documents/workspaces/rails-app/config/application.rb:3 [FINISH]
c:0007 p:---- s:0024 e:000023 CFUNC :require
c:0006 p:0014 s:0020 e:000019 BLOCK /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/commands.rb:74 [FINISH]
c:0005 p:---- s:0017 e:000016 CFUNC :tap
c:0004 p:0562 s:0014 e:000013 TOP /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/commands.rb:71 [FINISH]
c:0003 p:---- s:0008 e:000007 CFUNC :require
c:0002 p:0045 s:0004 E:001268 EVAL script/rails:6 [FINISH]
c:0001 p:0000 s:0002 E:0023d8 TOP [FINISH]
script/rails:6:in `<main>'
script/rails:6:in `require'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/commands.rb:71:in `<top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/commands.rb:71:in `tap'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/commands.rb:74:in `block in <top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/commands.rb:74:in `require'
/Users/namename/Documents/workspaces/rails-app/config/application.rb:3:in `<top (required)>'
/Users/namename/Documents/workspaces/rails-app/config/application.rb:3:in `require'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/all.rb:1:in `<top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/all.rb:1:in `require'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails.rb:9:in `<top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails.rb:9:in `require'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/application.rb:4:in `<top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/application.rb:4:in `require'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/engine.rb:1:in `<top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/engine.rb:1:in `require'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/railtie.rb:2:in `<top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/railtie.rb:2:in `require'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/configuration.rb:3:in `<top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/railties-4.0.12/lib/rails/configuration.rb:3:in `require'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/object.rb:11:in `<top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/object.rb:11:in `require'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/object/to_json.rb:3:in `<top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/object/to_json.rb:3:in `require'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json.rb:54:in `<top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json.rb:58:in `<module:JSON>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json.rb:58:in `require'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json/ext.rb:9:in `<top (required)>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json/ext.rb:12:in `<module:JSON>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json/ext.rb:13:in `<module:Ext>'
/Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json/ext.rb:13:in `require'
-- C level backtrace information -------------------------------------------
-- Other runtime information -----------------------------------------------
* Loaded script: script/rails
* 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/rubygems/path_support.rb
19 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb
20 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/pathname.bundle
21 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb
22 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/constants.rb
23 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/user_interaction.rb
24 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/etc.bundle
25 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/config_file.rb
26 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/rubygems_integration.rb
27 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/current_ruby.rb
28 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/shared_helpers.rb
29 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb
30 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/gem_path_manipulation.rb
31 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/gem_helpers.rb
32 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/match_platform.rb
33 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/rubygems_ext.rb
34 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/version.rb
35 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler.rb
36 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/settings.rb
37 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/digest.bundle
38 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/digest.rb
39 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/digest/sha1.bundle
40 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/set.rb
41 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/definition.rb
42 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/dependency.rb
43 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/ruby_dsl.rb
44 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/dsl.rb
45 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/source_list.rb
46 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/source.rb
47 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb
48 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/generic.rb
49 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/ftp.rb
50 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/http.rb
51 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/https.rb
52 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/ldap.rb
53 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/ldaps.rb
54 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/mailto.rb
55 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri.rb
56 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/cgi/core.rb
57 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/cgi/util.rb
58 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/cgi/cookie.rb
59 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/cgi.rb
60 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/socket.bundle
61 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/socket.rb
62 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/fcntl.bundle
63 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb
64 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/openssl.bundle
65 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/openssl/bn.rb
66 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/openssl/cipher.rb
67 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/stringio.bundle
68 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/openssl/config.rb
69 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/openssl/digest.rb
70 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/openssl/x509.rb
71 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/openssl/buffering.rb
72 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/openssl/ssl.rb
73 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/openssl.rb
74 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/securerandom.rb
75 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/resolv.rb
76 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/remote_fetcher.rb
77 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/text.rb
78 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/name_tuple.rb
79 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/spec_fetcher.rb
80 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/source/rubygems.rb
81 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/ruby_version.rb
82 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/strscan.bundle
83 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/source/path.rb
84 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/source/git.rb
85 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/lockfile_parser.rb
86 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/lazy_specification.rb
87 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb
88 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/forwardable.rb
89 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/spec_set.rb
90 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/environment.rb
91 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/runtime.rb
92 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/index.rb
93 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/remote_specification.rb
94 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/endpoint_specification.rb
95 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/dep_proxy.rb
96 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/bundler-1.7.12/lib/bundler/setup.rb
97 /Users/namename/Documents/workspaces/rails-app/config/boot.rb
98 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/optparse.rb
99 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/thread_safe-0.3.4/lib/thread_safe/version.rb
100 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/delegate.rb
101 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/thread_safe-0.3.4/lib/thread_safe/synchronized_delegator.rb
102 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/thread_safe-0.3.4/lib/thread_safe.rb
103 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/array/prepend_and_append.rb
104 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/hash/deep_merge.rb
105 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/hash/except.rb
106 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/hash/slice.rb
107 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/i18n-0.7.0/lib/i18n/version.rb
108 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/i18n-0.7.0/lib/i18n/exceptions.rb
109 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/i18n-0.7.0/lib/i18n/interpolate/ruby.rb
110 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/i18n-0.7.0/lib/i18n.rb
111 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/lazy_load_hooks.rb
112 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/i18n-0.7.0/lib/i18n/config.rb
113 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/i18n.rb
114 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/thread_safe-0.3.4/lib/thread_safe/non_concurrent_cache_backend.rb
115 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/thread_safe-0.3.4/lib/thread_safe/mri_cache_backend.rb
116 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/thread_safe-0.3.4/lib/thread_safe/cache.rb
117 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/inflector/inflections.rb
118 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/inflections.rb
119 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/inflector/methods.rb
120 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/dependencies/autoload.rb
121 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/version.rb
122 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/array/extract_options.rb
123 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/class/attribute_accessors.rb
124 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/concern.rb
125 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/logger_silence.rb
126 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/logger.rb
127 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/logger.rb
128 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support.rb
129 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/object/blank.rb
130 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/kernel/singleton_class.rb
131 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/module/remove_method.rb
132 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/class/attribute.rb
133 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/module/delegation.rb
134 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/singleton.rb
135 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/deprecation/instance_delegator.rb
136 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/notifications/instrumenter.rb
137 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mutex_m.rb
...
...
209 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/string/conversions.rb
210 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/string/zones.rb
211 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/time.rb
212 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/array/wrap.rb
213 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/hash/reverse_merge.rb
214 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/hash/conversions.rb
215 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/object/conversions.rb
216 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/activesupport-4.0.12/lib/active_support/core_ext/object/instance_variables.rb
217 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json/version.rb
218 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/ostruct.rb
219 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json/generic_object.rb
220 /Users/namename/.rvm/gems/ruby-2.0.0-p598#myname/gems/json-1.8.1/lib/json/common.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Your stack trace mixes parts from your RVM ruby and your system ruby. These are not compatible. It seems your RVM setup is incomplete/broken. If you don't want to dig in there and find the actual cause, you might want to complete remove and reinstall RVM:
# completely remove rvm, including all rvm-installed rubies and gems
rvm implode
# re-install RVM
\curl -sSL "https://get.rvm.io" | bash -s stable
I am trying to set up a RoR development environment on my Windows 7 PC.
I have so far been able to:
Install Ruby
Install Rails
Install a few gems, including the mysql2 gem (I had to download and install the MySQL community server again, since the one which came with XAMPP was 32 bit, and my Ruby is 64 bit)
Execute the 'Rails New' command to create a project
Run 'Bundler Install' command
Now however, when I try to run the server from the project root, I am getting a huge error message of more than 600 lines, beginning with:
C:\Users\Chinmay\Documents\Sites\TaxCloud>rails s
C:/Ruby21-x64/lib/ruby/gems/2.1.0/extensions/x64-mingw32/2.1.0/mysql2-0.3.16/mysql2/mysql2.so:
[BUG] Segmentation fault ruby 2.1.4p265 (2014-10-27 revision 48166)
[x64-mingw32]
-- Control frame information ----------------------------------------------- c:0020 p:-10803034 s:0067 e:000066 TOP [FINISH] c:0019 p:---- s:0065 e:000064 CFUNC
:require c:0018 p:0083 s:0061 e:000060 TOP
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mysql2-0.3.16/lib/mysql2.rb:8
[FINISH] c:0017 p:---- s:0059 e:000058 CFUNC :require c:0016 p:0037
s:0055 e:000054 BLOCK
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:76
[FINISH] c:0015 p:---- s:0052 e:000051 CFUNC :each c:0014 p:0055
s:0049 e:000048 BLOCK
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:72
[FINISH] c:0013 p:---- s:0042 e:000041 CFUNC :each c:0012 p:0030
s:0039 e:000038 METHOD
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:61
c:0011 p:0013 s:0035 e:000034 METHOD
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler.rb:133
c:0010 p:0047 s:0031 e:000030 TOP
C:/Users/Chinmay/Documents/Sites/TaxCloud/config/application.rb:7
[FINISH] c:0009 p:---- s:0029 e:000028 CFUNC :require c:0008 p:0014
s:0025 e:000024 BLOCK
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb
:79 [FINISH] c:0007 p:---- s:0022 e:000021 CFUNC :tap c:0006 p:0031
s:0019 e:000018 METHOD
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb
:76 c:0005 p:0033 s:0016 e:000015 METHOD
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb
:40 c:0004 p:0116 s:0012 e:000011 TOP
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands.rb:17
[FINISH] c:0003 p:---- s:0008 e:000007 CFUNC :require c:0002 p:0034
s:0004 E:000218 EVAL bin/rails:4 [FINISH] c:0001 p:0000 s:0002
E:000a78 TOP [FINISH]
-- Ruby level backtrace information ---------------------------------------- bin/rails:4:in <main>' bin/rails:4:inrequire'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands.rb:17:in
<top (required)>'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:40:in
run_command!'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:76:in
server'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:76:in
tap'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:79:in
block in server'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:79:in
require'
C:/Users/Chinmay/Documents/Sites/TaxCloud/config/application.rb:7:in
<top (required)>'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler.rb:133:in
require'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:61:in
require'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:61:in
each'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:72:in
block in require'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:72:in
each'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:76:in
block (2 levels) in require'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:76:in
require'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mysql2-0.3.16/lib/mysql2.rb:8:in
<top (required)>'
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mysql2-0.3.16/lib/mysql2.rb:8:in
require'
-- C level backtrace information ------------------------------------------- C:\Windows\SYSTEM32\ntdll.dll(ZwWaitForSingleObject+0xa)
[0x0000000077B3F6FA]
C:\Windows\system32\KERNELBASE.dll(WaitForSingleObjectEx+0x9c)
[0x000007FEFE1810DC]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_bugreport+0xa4)
[0x000000006B417364]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_name_err_mesg_new+0x841)
[0x000000006B2C9801]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_bug+0x45)
[0x000000006B2CA545]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_check_safe_str+0x351)
[0x000000006B398E11] [0x0000000000401A85]
C:\Windows\SYSTEM32\ntdll.dll(_C_specific_handler+0x9c)
[0x0000000077B04F58]
C:\Windows\SYSTEM32\ntdll.dll(RtlCompareUnicodeString+0x7d)
[0x0000000077B24F4D]
C:\Windows\SYSTEM32\ntdll.dll(RtlTimeToSecondsSince1970+0x63c)
[0x0000000077B05B3C]
C:\Windows\SYSTEM32\ntdll.dll(KiUserExceptionDispatcher+0x2e)
[0x0000000077B3F638] [0x000003B7A8300000] [0x000000000202343D]
C:\Ruby21-x64\lib\ruby\gems\2.1.0\extensions\x64-mingw32\2.1.0\mysql2-0.3.16\mysql2\mysql2.so(Init_mysql2+0x5a)
[0x000000000202 43BA]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(dln_load+0x1d6)
[0x000000006B281646]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_call_cfunc+0x130)
[0x000000006B414300]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_require_safe+0x56f)
[0x000000006B2D558F]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_error_arity+0x1c6)
[0x000000006B402206]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_f_send+0x5c1)
[0x000000006B411601]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x1618)
[0x000000006B406C98]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x5a8d)
[0x000000006B40B10D]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_iseq_eval+0x183)
[0x000000006B413C23]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_rubylevel_errinfo+0x66c)
[0x000000006B2D396C]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_require_safe+0x5a9)
[0x000000006B2D55C9]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_error_arity+0x1c6)
[0x000000006B402206]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x1618)
[0x000000006B406C98]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x5a8d)
[0x000000006B40B10D]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_funcall+0x503)
[0x000000006B40C503]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_yield+0x74)
[0x000000006B4134D4]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_ary_each+0x51)
[0x000000006B281971]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_error_arity+0x1c6)
[0x000000006B402206]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x1f61)
[0x000000006B4075E1]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x5a8d)
[0x000000006B40B10D]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_funcall+0x503)
[0x000000006B40C503]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_yield+0x74)
[0x000000006B4134D4]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_ary_each+0x51)
[0x000000006B281971]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_error_arity+0x1c6)
[0x000000006B402206]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_f_send+0x5c1)
[0x000000006B411601]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x1f61)
[0x000000006B4075E1]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x5a8d)
[0x000000006B40B10D]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_iseq_eval+0x183)
[0x000000006B413C23]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_rubylevel_errinfo+0x66c)
[0x000000006B2D396C]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_require_safe+0x5a9)
[0x000000006B2D55C9]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_error_arity+0x1c6)
[0x000000006B402206]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_f_send+0x5c1)
[0x000000006B411601]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x1618)
[0x000000006B406C98]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x5a8d)
[0x000000006B40B10D]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_funcall+0x503)
[0x000000006B40C503]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_yield+0x74)
[0x000000006B4134D4]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_obj_tap+0x16)
[0x000000006B32D5C6]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_error_arity+0x1c6)
[0x000000006B402206]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_f_send+0x5c1)
[0x000000006B411601]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x1f61)
[0x000000006B4075E1]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x5a8d)
[0x000000006B40B10D]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_iseq_eval+0x183)
[0x000000006B413C23]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_rubylevel_errinfo+0x66c)
[0x000000006B2D396C]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_require_safe+0x5a9)
[0x000000006B2D55C9]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_error_arity+0x1c6)
[0x000000006B402206]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_f_send+0x5c1)
[0x000000006B411601]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x1618)
[0x000000006B406C98]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_vm_localjump_error+0x5a8d)
[0x000000006B40B10D]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_iseq_eval_main+0x1d0)
[0x000000006B413E40]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(rb_check_copyable+0x304a)
[0x000000006B2CF31A]
C:\Ruby21-x64\bin\x64-msvcrt-ruby210.dll(ruby_run_node+0x51)
[0x000000006B2D2231] [0x0000000000402D14] [0x00000000004013D7]
[0x00000000004014F8]
C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+0xd)
[0x000000007763F34D]
-- Other runtime information -----------------------------------------------
Loaded script: bin/rails
Loaded features:
0 enumerator.so
1 C:/Ruby21-x64/lib/ruby/2.1.0/x64-mingw32/enc/encdb.so
2 C:/Ruby21-x64/lib/ruby/2.1.0/x64-mingw32/enc/iso_8859_1.so
3 C:/Ruby21-x64/lib/ruby/2.1.0/x64-mingw32/enc/trans/transdb.so
4 C:/Ruby21-x64/lib/ruby/2.1.0/x64-mingw32/rbconfig.rb
5 thread.rb
6 C:/Ruby21-x64/lib/ruby/2.1.0/x64-mingw32/thread.so
7 C:/Ruby21-x64/lib/ruby/site_ruby/2.1.0/rubygems/compatibility.rb
8 C:/Ruby21-x64/lib/ruby/site_ruby/2.1.0/rubygems/defaults.rb
9 C:/Ruby21-x64/lib/ruby/site_ruby/2.1.0/rubygems/deprecate.rb
And ending with:
580
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.1.7/lib/active_support/number_helper.rb
581
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/actionview-4.1.7/lib/action_view/helpers/number_helper.rb
582
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.1.7/lib/active_support/core_ext/module/concerning.rb
583
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.1.7/lib/active_support/core_ext/module/qualified_const.rb
584
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.1.7/lib/active_support/core_ext/module.rb
585
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/actionview-4.1.7/lib/action_view/record_identifier.rb
586
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/actionview-4.1.7/lib/action_view/helpers/record_tag_helper.rb 587
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/actionview-4.1.7/lib/action_view/helpers/rendering_helper.rb
588
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/actionview-4.1.7/lib/action_view/helpers/translation_helper.rb
589
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/actionview-4.1.7/lib/action_view/helpers.rb
590
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sprockets-rails-2.2.0/lib/sprockets/rails/helper.rb
591
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sprockets-rails-2.2.0/lib/sprockets/rails/version.rb
592
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/engine/configuration.rb
593
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/application/configuration.rb
594
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sprockets-rails-2.2.0/lib/sprockets/railtie.rb
595
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.1.7/lib/rails/all.rb
596
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mysql2-0.3.16/lib/mysql2/version.rb
597
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/mysql2-0.3.16/lib/mysql2/error.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
This application has requested the Runtime to terminate it in an
unusual way. Please contact the application's support team for more
information.
[NOTE] You may have encountered a bug in the Ruby Interpreter or
extension libraries. Bug reports and welcome.
For details: http://www.ruby-lang.org/bugreport.html
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
So, what do I need to do, to ride ruby on rails?
BTW: Initially I thought the problem could have been with the Webrick Server. So I have configured apache manually to listen to port 3000. However, this hasn't helped.
Another concern is that I can neither see the full output in the command prompt, nor can I save it to a text file. So I do not really know what the full error message is.
Webrick uses port 3000. Don't set Apache to listen to port 3000 because that will create a port conflict. Start webrick from the command line with 'rails s'.
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
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