rod mclaughlin


Rails 3.0.0 can crash Ruby 1.9.2p0 (23 oct 10)

A picture of Ruby (really - she's a belly dancer named 'Ruby'
who is currently being linked to the Italian prime minister)

I converted a Rails app to Rails 3, and upgraded Ruby to 1.9.2p0 as recommended. I clicked on a link, and the Ruby interpreter crashed. Exactly what happened is difficult to determine, but I enclose some of the crash trace, and I solved it by reinstalling Ruby 1.8.7-p302 from

http://www.ruby-lang.org/en/news/2010/08/16/ruby-1-8-7-p302-is-released/

then 'sudo apt-get install rubygems' then 'sudo gem install bundler' then 'bundle'

 

/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/active_support/
core_ext/module/introspection.rb:79: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]

-- control frame ----------
c:0104 p:0013 s:0524 b:0524 l:000523 d:000523 METHOD
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/
active_support/core_ext/module/introspection.rb:79
c:0103 p:0011 s:0521 b:0521 l:000520 d:000520 METHOD
 /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/
active_support/core_ext/module/introspection.rb:86
c:0102 p:0063 s:0518 b:0518 l:000507 d:000517 BLOCK 
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0/lib/
active_support/dependencies.rb:128
c:0101 p:---- s:0513 b:0513 l:000512 d:000512 FINISH
-- Ruby level backtrace information ----------------------------------------
/usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:
in `service'
/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/content_length.rb:13:
in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/rack/log_tailer.rb:14:
in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/application.rb:77:
in `method_missing'



Back
Portland London