Bug #3188: remove_method.rb:3: [BUG] Segmentation fault
http://redmine.ruby-lang.org/issues/show/3188

Author: Sergio Lima
Status: Open, Priority: Normal
ruby -v: ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin10.2.0]

Bug happens sometimes. When I start the WEBRick server, the following message appears at the Mac OS X Terminal. 

Then I can't continue using my site: everything freezes. When I command CONTROL+C nothing happens.

I have to open other Terminal window and type:
ps -U sergiosouzalima | grep ruby
and then
kill -9 <processes_number>

-------------- error mensage at Terminal window:
/Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/core_ext/module/remove_method.rb:3: [BUG] Segmentation fault
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin10.2.0]

-- control frame ----------
c:0080 p:---- s:0415 b:0415 l:000414 d:000414 CFUNC  :remove_method
c:0079 p:0013 s:0411 b:0411 l:000410 d:000410 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/core_ext/module/remove_metho
c:0078 p:0011 s:0407 b:0407 l:000399 d:000406 BLOCK  /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/core_ext/class/attribute.rb:
c:0077 p:---- s:0405 b:0405 l:000404 d:000404 FINISH
c:0076 p:---- s:0403 b:0403 l:000402 d:000402 CFUNC  :class_eval
c:0075 p:0017 s:0400 b:0400 l:000399 d:000399 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/core_ext/class/attribute.rb:
c:0074 p:0055 s:0396 b:0396 l:000395 d:000395 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/actionpack-3.0.0.beta3/lib/abstract_controller/layouts.rb:221
c:0073 p:0023 s:0391 b:0391 l:000390 d:000390 CLASS  /Users/sergiosouzalima/rails/blog/app/controllers/application_controller.rb:3
c:0072 p:0017 s:0389 b:0389 l:000388 d:000388 TOP    /Users/sergiosouzalima/rails/blog/app/controllers/application_controller.rb:1
c:0071 p:---- s:0387 b:0387 l:000386 d:000386 FINISH
c:0070 p:---- s:0385 b:0385 l:000384 d:000384 CFUNC  :load
c:0069 p:0018 s:0381 b:0381 l:000371 d:000380 BLOCK  /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:415
c:0068 p:0046 s:0379 b:0379 l:000378 d:000378 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:523
c:0067 p:0086 s:0372 b:0372 l:000371 d:000371 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:414
c:0066 p:0192 s:0364 b:0364 l:000363 d:000363 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:310
c:0065 p:0279 s:0356 b:0356 l:000355 d:000355 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:452
c:0064 p:0029 s:0343 b:0343 l:000333 d:000342 BLOCK  /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:153
c:0063 p:---- s:0339 b:0339 l:000338 d:000338 FINISH
c:0062 p:---- s:0337 b:0337 l:000336 d:000336 CFUNC  :each
c:0061 p:0076 s:0334 b:0334 l:000333 d:000333 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:151
c:0060 p:---- s:0327 b:0327 l:000326 d:000326 FINISH
c:0059 p:0009 s:0325 b:0324 l:000323 d:000323 TOP    /Users/sergiosouzalima/rails/blog/app/controllers/posts_controller.rb:1
c:0058 p:---- s:0322 b:0322 l:000321 d:000321 FINISH
c:0057 p:---- s:0320 b:0320 l:000319 d:000319 CFUNC  :load
c:0056 p:0018 s:0316 b:0316 l:000306 d:000315 BLOCK  /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:415
c:0055 p:0046 s:0314 b:0314 l:000313 d:000313 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:523
c:0054 p:0086 s:0307 b:0307 l:000306 d:000306 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:414
c:0053 p:0192 s:0299 b:0299 l:000298 d:000298 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:310
c:0052 p:0279 s:0291 b:0291 l:000290 d:000290 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:452
c:0051 p:0029 s:0278 b:0278 l:000268 d:000277 BLOCK  /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:153
c:0050 p:---- s:0274 b:0274 l:000273 d:000273 FINISH
c:0049 p:---- s:0272 b:0272 l:000271 d:000271 CFUNC  :each
c:0048 p:0076 s:0269 b:0269 l:000268 d:000268 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:151
c:0047 p:0044 s:0262 b:0262 l:000253 d:000261 BLOCK  /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/inflector/methods.rb:114
c:0046 p:---- s:0259 b:0259 l:000258 d:000258 FINISH
c:0045 p:---- s:0257 b:0257 l:000256 d:000256 CFUNC  :each
c:0044 p:0074 s:0254 b:0254 l:000253 d:000253 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activesupport-3.0.0.beta3/lib/active_support/inflector/methods.rb:113
c:0043 p:0065 s:0248 b:0248 l:000247 d:000247 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:47
c:0042 p:0049 s:0241 b:0241 l:000240 d:000240 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:25
c:0041 p:0095 s:0235 b:0235 l:000207 d:000234 BLOCK  /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/rack-mount-0.6.3/lib/rack/mount/route_set.rb:148
c:0040 p:0014 s:0229 b:0229 l:000213 d:000228 BLOCK  /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/rack-mount-0.6.3/lib/rack/mount/code_generation.rb:89
c:0039 p:1772 s:0224 b:0224 l:000223 d:000223 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/rack-mount-0.6.3/lib/rack/mount/code_generation.rb:115
c:0038 p:0185 s:0214 b:0214 l:000213 d:000213 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/rack-mount-0.6.3/lib/rack/mount/code_generation.rb:88
c:0037 p:0089 s:0208 b:0208 l:000207 d:000207 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/rack-mount-0.6.3/lib/rack/mount/route_set.rb:139
c:0036 p:0024 s:0202 b:0202 l:000201 d:000201 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:458
c:0035 p:0013 s:0198 b:0198 l:000670 d:000197 BLOCK  /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:31
c:0034 p:0017 s:0196 b:0196 l:000195 d:000195 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activerecord-3.0.0.beta3/lib/active_record/connection_adapters/abstract/q
c:0033 p:0051 s:0192 b:0192 l:000191 d:000191 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:11
c:0032 p:0019 s:0188 b:0188 l:000670 d:000670 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:30
c:0031 p:0014 s:0184 b:0184 l:000183 d:000183 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/activerecord-3.0.0.beta3/lib/active_record/connection_adapters/abstract/c
c:0030 p:0090 s:0180 b:0180 l:000179 d:000179 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/head.rb:14
c:0029 p:0150 s:0173 b:0173 l:000172 d:000172 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/rack-1.1.0/lib/rack/methodoverride.rb:24
c:0028 p:0045 s:0167 b:0167 l:000166 d:000166 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/params_parser.rb:19
c:0027 p:0051 s:0162 b:0162 l:000161 d:000161 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/flash.rb:167
c:0026 p:0086 s:0156 b:0156 l:000155 d:000155 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/session/cookie_stor
c:0025 p:0014 s:0146 b:0146 l:000145 d:000145 METHOD /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/cookies.rb:202
c:0024 p:0029 s:0137 b:0137 l:001fc0 d:000136 BLOCK  /Users/sergiosouzalima/.rvm/gems/ruby-1.9.1-p129/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/callbacks.rb:46


----------------------------------------
http://redmine.ruby-lang.org