This project is archived and is in readonly mode.

#4910 ✓invalid
chaitanyav

rails 3 beta 4 ,seg fault

Reported by chaitanyav | June 20th, 2010 @ 06:33 AM

I installed rails 3 beta 4 on my arch linux box . I created a sample app with the following command

rails new awesome

I got it running with
rails server

I opened the url http://localhost:3000 in the browser and just out of inquisitiveness clicked on this link on the home page(About your application’s environment)
http://localhost:3000/rails/info/properties

It resulted in a seg fault with the following trace
rails server
=> Booting WEBrick => Rails 3.0.0.beta4 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2010-06-19 22:26:25] INFO WEBrick 1.3.1 [2010-06-19 22:26:25] INFO ruby 1.9.1 (2010-01-10) [i686-linux] [2010-06-19 22:26:25] INFO WEBrick::HTTPServer#start: pid=24021 port=3000 /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:418: [BUG] Segmentation fault ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]

-- control frame ---------- c:0079 p:---- s:0390 b:0390 l:000389 d:000389 CFUNC :load
c:0078 p:0018 s:0386 b:0386 l:000376 d:000385 BLOCK /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:418
c:0077 p:0046 s:0384 b:0384 l:000383 d:000383 METHOD /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:554
c:0076 p:0086 s:0377 b:0377 l:000376 d:000376 METHOD /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:417
c:0075 p:0194 s:0369 b:0369 l:000368 d:000368 METHOD /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:313
c:0074 p:0040 s:0361 b:0361 l:000360 d:000360 METHOD /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:273
c:0073 p:0076 s:0353 b:0353 l:000352 d:000352 METHOD /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:189
c:0072 p:0119 s:0348 b:0348 l:000338 d:000347 BLOCK /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/abstract_controller/helpers.rb:131
c:0071 p:---- s:0344 b:0344 l:000343 d:000343 FINISH
c:0070 p:---- s:0342 b:0342 l:000341 d:000341 CFUNC :map!
c:0069 p:0018 s:0339 b:0339 l:000338 d:000338 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/abstract_controller/helpers.rb:127
c:0068 p:0038 s:0335 b:0335 l:000334 d:000334 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_controller/metal/helpers.rb:100
c:0067 p:0013 s:0331 b:0331 l:000330 d:000330 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/abstract_controller/helpers.rb:91
c:0066 p:0046 s:0326 b:0326 l:000325 d:000325 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/abstract_controller/helpers.rb:144
c:0065 p:0021 s:0320 b:0320 l:000312 d:000319 BLOCK /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/abstract_controller/helpers.rb:21
c:0064 p:---- s:0318 b:0318 l:000317 d:000317 FINISH
c:0063 p:---- s:0316 b:0316 l:000315 d:000315 CFUNC :class_eval
c:0062 p:0047 s:0313 b:0313 l:000312 d:000312 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/abstract_controller/helpers.rb:21
c:0061 p:0023 s:0308 b:0308 l:000307 d:000307 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_controller/metal/hide_actions.rb:33
c:0060 p:0011 s:0304 b:0304 l:001090 d:000303 LAMBDA /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_controller/railties/url_helpers.rb:7
c:0059 p:---- s:0301 b:0301 l:000300 d:000300 FINISH
c:0058 p:0042 s:0299 b:0299 l:000298 d:000298 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_controller/base.rb:62
c:0057 p:---- s:0295 b:0295 l:000294 d:000294 FINISH
c:0056 p:0022 s:0293 b:0293 l:000292 d:000292 TOP /usr/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta4/lib/rails/info_controller.rb:1
c:0055 p:---- s:0291 b:0291 l:000290 d:000290 FINISH
c:0054 p:---- s:0289 b:0289 l:000288 d:000288 CFUNC :const_get
c:0053 p:0030 s:0285 b:0285 l:000276 d:000284 BLOCK /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/inflector/methods.rb:114
c:0052 p:---- s:0282 b:0282 l:000281 d:000281 FINISH
c:0051 p:---- s:0280 b:0280 l:000279 d:000279 CFUNC :each
c:0050 p:0074 s:0277 b:0277 l:000276 d:000276 METHOD /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/inflector/methods.rb:113
c:0049 p:0025 s:0271 b:0268 l:0022ac d:000267 BLOCK /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:487
c:0048 p:---- s:0264 b:0264 l:000263 d:000263 FINISH
c:0047 p:---- s:0262 b:0262 l:000261 d:000261 CFUNC :yield
c:0046 p:---- s:0260 b:0260 l:000259 d:000259 CFUNC :default
c:0045 p:0009 s:0258 b:0258 l:000257 d:000257 METHOD /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:497
c:0044 p:0111 s:0255 b:0255 l:000254 d:000254 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_dispatch/routing/route_set.rb:44
c:0043 p:0049 s:0246 b:0246 l:000245 d:000245 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_dispatch/routing/route_set.rb:23
c:0042 p:0095 s:0240 b:0240 l:000214 d:000239 BLOCK /usr/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.4/lib/rack/mount/route_set.rb:148
c:0041 p:0014 s:0234 b:0234 l:000220 d:000233 BLOCK /usr/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.4/lib/rack/mount/code_generation.rb:89
c:0040 p:0099 s:0229 b:0229 l:000228 d:000228 METHOD /usr/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.4/lib/rack/mount/code_generation.rb:66
c:0039 p:0067 s:0221 b:0221 l:000220 d:000220 METHOD /usr/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.4/lib/rack/mount/code_generation.rb:88
c:0038 p:0089 s:0215 b:0215 l:000214 d:000214 METHOD /usr/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.4/lib/rack/mount/route_set.rb:139
c:0037 p:0024 s:0209 b:0209 l:000208 d:000208 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_dispatch/routing/route_set.rb:457
c:0036 p:0090 s:0205 b:0205 l:000204 d:000204 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/head.rb:14
c:0035 p:0150 s:0198 b:0198 l:000197 d:000197 METHOD /usr/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/methodoverride.rb:24
c:0034 p:0045 s:0192 b:0192 l:000191 d:000191 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/params_parser.rb:21
c:0033 p:0051 s:0187 b:0187 l:000186 d:000186 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/flash.rb:177
c:0032 p:0026 s:0181 b:0181 l:000180 d:000180 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/session/abstract_store.rb:106
c:0031 p:0014 s:0170 b:0170 l:000169 d:000169 METHOD /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/cookies.rb:235
c:0030 p:0013 s:0162 b:0162 l:001cc8 d:000161 BLOCK /usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/active_record/query_cache.rb:31
c:0029 p:0017 s:0160 b:0160 l:000159 d:000159 METHOD /usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/query_cache.rb:28
c:0028 p:0051 s:0156 b:0156 l:000155 d:000155 METHOD /usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/active_record/query_cache.rb:11
c:0027 p:0019 s:0152 b:0152 l:001cc8 d:001cc8 METHOD /usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/active_record/query_cache.rb:30
c:0026 p:0014 s:0148 b:0148 l:000147 d:000147 METHOD /usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:365
c:0025 p:0029 s:0144 b:0144 l:001870 d:000143 BLOCK /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/callbacks.rb:46
fish: Job 1, “rails server ” terminated by signal SIGSEGV (Address boundary error)


Here is my setup info

ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]

gem list

LOCAL GEMS

abstract (1.0.0)
actionmailer (3.0.0.beta4)
actionpack (3.0.0.beta4)
activemodel (3.0.0.beta4)
activerecord (3.0.0.beta4)
activeresource (3.0.0.beta4)
activesupport (3.0.0.beta4)
arel (0.4.0)
builder (2.1.2)
bundler (0.9.26)
erubis (2.6.5)
i18n (0.4.1)
mail (2.2.5)
memcache-client (1.8.3)
mime-types (1.16)
polyglot (0.3.1)
rack (1.2.1, 1.1.0)
rack-mount (0.6.4)
rack-test (0.5.4)
rails (3.0.0.beta4)
railties (3.0.0.beta4)
rake (0.8.7)
rubygems-update (1.3.7)
rvm (0.1.39)
text-format (1.0.0)
text-hyphen (1.0.0)
thor (0.13.6)
treetop (1.4.8)
tzinfo (0.3.22)

Comments and changes to this ticket

  • Santiago Pastorino

    Santiago Pastorino June 20th, 2010 @ 04:43 PM

    • State changed from “new” to “invalid”

    Ruby 1.9.1 is not supported please use 1.9.2 preview 3

  • chaitanyav

    chaitanyav June 20th, 2010 @ 06:48 PM

    Thanks, I got it running. I installed rvm and ruby 1.9.2 preview. And it worked.

    About your application’s environment
    Ruby version 1.9.2 (i686-linux)
    RubyGems version 1.3.7
    Rack version 1.1
    Rails version 3.0.0.beta4
    Active Record version 3.0.0.beta4
    Action Pack version 3.0.0.beta4
    Active Resource version 3.0.0.beta4
    Action Mailer version 3.0.0.beta4
    Active Support version 3.0.0.beta4
    Application root /home/neo/projects/awesome
    Environment development
    Database adapter sqlite3
    Database schema version 0

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages