This project is archived and is in readonly mode.
Segfault with Ruby 1.9.1 and Rails 3.0.0.beta2
-
Jeremy Kemper
- State changed from new to wontfix
Upstream issue in Ruby 1.9.1, fixed in svn but not in a released version yet.
See the Rails 3.0.0 beta 2 release notes. Ruby 1.9.1 outright crashes.
-
Felipe Rodrigues
Move back to 1.9.1-p376 and the error should run way.
-
Matija Folnovic
I'm using older version ( 1.9.1-p243 ), and I tried to update to 1.9.1-p376 by compiling code ( since ubuntu doesn't have it in repository ), and now I'm getting
/usr/local/lib/ruby/1.9.1/rubygems/requirement.rb:150:in `parse': Illformed requirement ["3.0.0.beta2"] (ArgumentError) from /usr/local/lib/ruby/1.9.1/rubygems/requirement.rb:75:in `block in initialize' from /usr/local/lib/ruby/1.9.1/rubygems/requirement.rb:74:in `map' from /usr/local/lib/ruby/1.9.1/rubygems/requirement.rb:74:in `initialize' from /usr/local/lib/ruby/1.9.1/rubygems/requirement.rb:48:in `new' from /usr/local/lib/ruby/1.9.1/rubygems/requirement.rb:48:in `create' from /usr/local/lib/ruby/1.9.1/rubygems/dependency.rb:59:in `initialize' from /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.16/lib/bundler/dependency.rb:9:in `initialize' from /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.16/lib/bundler/dsl.rb:28:in `new' from /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.16/lib/bundler/dsl.rb:28:in `gem' from /home/mfolnovic/Projects/pokemon/Gemfile:4:in `evaluate' from /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.16/lib/bundler/dsl.rb:7:in `instance_eval' from /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.16/lib/bundler/dsl.rb:7:in `evaluate' from /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.16/lib/bundler/definition.rb:12:in `from_gemfile' from /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.16/lib/bundler.rb:96:in `definition' from /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.16/lib/bundler.rb:87:in `runtime' from /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.16/lib/bundler.rb:82:in `load' from /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.16/lib/bundler.rb:69:in `setup' from /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.16/lib/bundler/setup.rb:13:in `<top (required)>' from /usr/bin/ruby1.9.1:0:in `require' ~/Projects/*****[master]% ruby1.9.1 -v ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux]Also, I installed ruby1.9.1p176 in /usr/local/ so I made symlink to /usr/bin/ruby1.9.1
-
Jeremy Kemper
Update RubyGems to fix that.
-
Matija Folnovic
Now I'm getting segfault, but on different file ( Don't know does it matter ? )
~/Projects/*****[master]% rails s => Booting WEBrick => Rails 3.0.0.beta2 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2010-04-03 16:39:00] INFO WEBrick 1.3.1 [2010-04-03 16:39:00] INFO ruby 1.9.1 (2009-12-07) [i686-linux] [2010-04-03 16:39:05] INFO WEBrick::HTTPServer#start: pid=13460 port=3000 /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/dependencies.rb:445: [BUG] Segmentation fault ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux] -- control frame ---------- c:0067 p:---- s:0363 b:0363 l:000362 d:000362 CFUNC :caller c:0066 p:0172 s:0360 b:0360 l:000359 d:000359 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/dependencies.rb:445 c:0065 p:0029 s:0347 b:0347 l:000337 d:000346 BLOCK /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/dependencies.rb:153 c:0064 p:---- s:0343 b:0343 l:000342 d:000342 FINISH c:0063 p:---- s:0341 b:0341 l:000340 d:000340 CFUNC :each c:0062 p:0076 s:0338 b:0338 l:000337 d:000337 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/dependencies.rb:151 c:0061 p:---- s:0331 b:0331 l:000330 d:000330 FINISH c:0060 p:0019 s:0329 b:0328 l:000327 d:000327 TOP /home/mfolnovic/Projects/pokemon/app/controllers/maps_controller.rb:7 c:0059 p:---- s:0326 b:0326 l:000325 d:000325 FINISH c:0058 p:---- s:0324 b:0324 l:000323 d:000323 CFUNC :load c:0057 p:0018 s:0320 b:0320 l:000310 d:000319 BLOCK /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/dependencies.rb:415 c:0056 p:0046 s:0318 b:0318 l:000317 d:000317 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/dependencies.rb:523 c:0055 p:0086 s:0311 b:0311 l:000310 d:000310 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/dependencies.rb:414 c:0054 p:0194 s:0303 b:0303 l:000302 d:000302 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/dependencies.rb:310 c:0053 p:0279 s:0295 b:0295 l:000294 d:000294 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/dependencies.rb:452 c:0052 p:0029 s:0282 b:0282 l:000272 d:000281 BLOCK /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/dependencies.rb:153 c:0051 p:---- s:0278 b:0278 l:000277 d:000277 FINISH c:0050 p:---- s:0276 b:0276 l:000275 d:000275 CFUNC :each c:0049 p:0076 s:0273 b:0273 l:000272 d:000272 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/dependencies.rb:151 c:0048 p:0044 s:0266 b:0266 l:000257 d:000265 BLOCK /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/inflector/methods.rb:112 c:0047 p:---- s:0263 b:0263 l:000262 d:000262 FINISH c:0046 p:---- s:0261 b:0261 l:000260 d:000260 CFUNC :each c:0045 p:0074 s:0258 b:0258 l:000257 d:000257 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activesupport-3.0.0.beta2/lib/active_support/inflector/methods.rb:111 c:0044 p:0067 s:0252 b:0252 l:000251 d:000251 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/actionpack-3.0.0.beta2/lib/action_dispatch/routing/route_set.rb:47 c:0043 p:0049 s:0245 b:0245 l:000244 d:000244 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/actionpack-3.0.0.beta2/lib/action_dispatch/routing/route_set.rb:25 c:0042 p:0095 s:0239 b:0239 l:000211 d:000238 BLOCK /home/mfolnovic/.bundle/ruby/1.9.1/gems/rack-mount-0.6.1/lib/rack/mount/recognition/route_set.rb:75 c:0041 p:0014 s:0233 b:0233 l:000217 d:000232 BLOCK /home/mfolnovic/.bundle/ruby/1.9.1/gems/rack-mount-0.6.1/lib/rack/mount/recognition/code_generation.rb:99 c:0040 p:0099 s:0228 b:0228 l:000227 d:000227 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/rack-mount-0.6.1/lib/rack/mount/recognition/code_generation.rb:76 c:0039 p:0185 s:0218 b:0218 l:000217 d:000217 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/rack-mount-0.6.1/lib/rack/mount/recognition/code_generation.rb:98 c:0038 p:0089 s:0212 b:0212 l:000211 d:000211 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/rack-mount-0.6.1/lib/rack/mount/recognition/route_set.rb:66 c:0037 p:0024 s:0206 b:0206 l:000205 d:000205 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/actionpack-3.0.0.beta2/lib/action_dispatch/routing/route_set.rb:454 c:0036 p:0013 s:0202 b:0202 l:002198 d:000201 BLOCK /home/mfolnovic/.bundle/ruby/1.9.1/gems/activerecord-3.0.0.beta2/lib/active_record/query_cache.rb:31 c:0035 p:0038 s:0200 b:0200 l:000199 d:000199 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activerecord-3.0.0.beta2/lib/active_record/connection_adapters/abstract/query_cache.rb: c:0034 p:0051 s:0196 b:0196 l:000195 d:000195 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activerecord-3.0.0.beta2/lib/active_record/query_cache.rb:11 c:0033 p:0019 s:0192 b:0192 l:002198 d:002198 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activerecord-3.0.0.beta2/lib/active_record/query_cache.rb:30 c:0032 p:0014 s:0188 b:0188 l:000187 d:000187 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/activerecord-3.0.0.beta2/lib/active_record/connection_adapters/abstract/connection_pool c:0031 p:0090 s:0184 b:0184 l:000183 d:000183 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/head.rb:14 c:0030 p:0150 s:0177 b:0177 l:000176 d:000176 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/rack-1.1.0/lib/rack/methodoverride.rb:24 c:0029 p:0045 s:0171 b:0171 l:000170 d:000170 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/params_parser.rb:19 c:0028 p:0051 s:0166 b:0166 l:000165 d:000165 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/flash.rb:167 c:0027 p:0086 s:0160 b:0160 l:000159 d:000159 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/session/cookie_store.rb:107 c:0026 p:0014 s:0150 b:0150 l:000149 d:000149 METHOD /home/mfolnovic/.bundle/ruby/1.9.1/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/cookies.rb:206 c:0025 p:0029 s:0141 b:0141 l:001c30 d:000140 BLOCK /home/mfolnovic/.bundle/ruby/1.9.1/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/callbacks.rb:46 zsh: segmentation fault rails s -
Katherine G Pe
I get a similar result.
Some info:
Rails 3 Beta 2, RVM, Ruby 1.9.1
I tried deploying a simple Rails 3 Beta 2 app on a VPS (new setup).
The issue I get is "no such file to load -- rack" -
Matija Folnovic
@Jeremy Kemper:
~% ruby -v ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux] ~% gem -v 1.3.6 ~% rails -v Rails 3.0.0.beta2Any other ideas? Now I'm back where I started ( segfault, remove_method.rb )
-
Matija Folnovic
Ok, I fixed my problem by uninstalling everything ( including ruby, gem etc. ), and installing again...