Bug #4821

Random Segfaults (in start_thread?)

Added by Ivan Bortko almost 3 years ago. Updated 10 months ago.

[ruby-core:36711]
Status:Rejected
Priority:Normal
Assignee:Aaron Patterson
Category:core
Target version:next minor
ruby -v:- Backport:

Description

Rails application regularly encounters segfaults in random places (with or without mongomapper or zeromq, which are used in app).

Here output:

Started POST "/config/changeobjectoptions" for 127.0.0.1 at 2011-06-03 12:13:41 +0400
Processing by ConfigController#changeobjectoptions as
Parameters: {"opts"=>{"host"=>"10.40.21.71", "path"=>"/", "systemuser"=>"g", "port"=>"23093", "hosts"=>"127.0.0.1", "revision"=>"develop", "faceport"=>"8080", "facehost"=>"0.0.0.0", "dbhost"=>"127.0.0.1", "dbport"=>"27017"}, "serviceid"=>"4de8977979db734abf000003"}
Completed 200 OK in 24ms (Views: 6.6ms | ActiveRecord: 0.0ms)
SESSSION : {"sessionid"=>"111ef3a8da3494b2d24ec971697fc40f", "csrftoken"=>"483lQ1IO/KbO8SgWfihQuLwEKC1ceTsmy26TVKkrziE=", "userid"=>BSON::ObjectId('4de8977879db734abf000002')}
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/whinynil.rb:46: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]

-- control frame ----------
c:0092 p:---- s:0491 b:0491 l:000490 d:000490 CFUNC :caller
c:0091 p:0034 s:0488 b:0485 l:000484 d:000484 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/whinynil.rb:46
c:0090 p:---- s:0478 b:0478 l:000477 d:000477 FINISH
c:0089 p:---- s:0476 b:0476 l:000475 d:000475 CFUNC :flatten
c:0088 p:0012 s:0473 b:0473 l:000472 d:000472 METHOD /prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/associations/base.rb:81
c:0087 p:0066 s:0469 b:0467 l:000466 d:000466 METHOD /prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/associations/base.rb:14
c:0086 p:---- s:0461 b:0461 l:000460 d:000460 FINISH
c:0085 p:---- s:0459 b:0459 l:000458 d:000458 CFUNC :new
c:0084 p:0028 s:0454 b:0453 l:000452 d:000452 METHOD /prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/associations.rb:22
c:0083 p:0044 s:0447 b:0447 l:000446 d:000446 CLASS /prj/app/models/user.rb:6
c:0082 p:0015 s:0445 b:0445 l:000444 d:000444 TOP /prj/app/models/user.rb:1
c:0081 p:---- s:0443 b:0443 l:000442 d:000442 FINISH
c:0080 p:---- s:0441 b:0441 l:000440 d:000440 CFUNC :load
c:0079 p:0018 s:0437 b:0437 l:000428 d:000436 BLOCK /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:454
c:0078 p:0045 s:0435 b:0435 l:000434 d:000434 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:596
c:0077 p:0086 s:0429 b:0429 l:000428 d:000428 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:453
c:0076 p:0194 s:0421 b:0421 l:000420 d:000420 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:340
c:0075 p:0277 s:0413 b:0413 l:000412 d:000412 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:491
c:0074 p:0036 s:0400 b:0400 l:000390 d:000399 BLOCK /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:183
c:0073 p:---- s:0396 b:0396 l:000395 d:000395 FINISH
c:0072 p:---- s:0394 b:0394 l:000393 d:000393 CFUNC :each
c:0071 p:0076 s:0391 b:0391 l:000390 d:000390 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:181
c:0070 p:0420 s:0384 b:0384 l:000383 d:000383 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:503
c:0069 p:0036 s:0371 b:0371 l:000361 d:000370 BLOCK /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:183
c:0068 p:---- s:0367 b:0367 l:000366 d:000366 FINISH
c:0067 p:---- s:0365 b:0365 l:000364 d:000364 CFUNC :each
c:0066 p:0076 s:0362 b:0362 l:000361 d:000361 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:181
c:0065 p:---- s:0355 b:0355 l:000354 d:000354 FINISH
c:0064 p:0038 s:0353 b:0353 l:000352 d:000352 METHOD /prj/app/controllers/applicationcontroller.rb:15
c:0063 p:0059 s:0350 b:0349 l:000348 d:000348 METHOD /prj/app/controllers/config
controller.rb:162
c:0062 p:0058 s:0346 b:0346 l:000345 d:000345 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/callbacks.rb:437
c:0061 p:0113 s:0340 b:0340 l:000339 d:000339 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/callbacks.rb:410
c:0060 p:0024 s:0331 b:0331 l:000330 d:000330 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/callbacks.rb:94
c:0059 p:0015 s:0325 b:0325 l:001078 d:001078 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/abstract
controller/callbacks.rb:17
c:0058 p:0012 s:0320 b:0320 l:000301 d:000319 BLOCK /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actioncontroller/metal/instrumentation.rb:30
c:0057 p:0017 s:0316 b:0316 l:000306 d:000315 BLOCK /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/notifications.rb:52
c:0056 p:0032 s:0314 b:0314 l:000313 d:000313 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/notifications/instrumenter.rb:21
c:0055 p:0036 s:0307 b:0307 l:000306 d:000306 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/notifications.rb:52
c:0054 p:0152 s:0302 b:0302 l:000301 d:000301 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actioncontroller/metal/instrumentation.rb:29
c:0053 p:0012 s:0296 b:0296 l:000295 d:000295 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
controller/metal/rescue.rb:17
c:0052 p:0093 s:0291 b:0291 l:000290 d:000290 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/abstractcontroller/base.rb:119
c:0051 p:0084 s:0285 b:0285 l:000284 d:000284 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/abstract
controller/rendering.rb:41
c:0050 p:0048 s:0280 b:0280 l:000279 d:000279 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actioncontroller/metal.rb:138
c:0049 p:0086 s:0275 b:0275 l:000274 d:000274 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
controller/metal/rackdelegation.rb:14
c:0048 p:0030 s:0269 b:0269 l:0019b8 d:000268 BLOCK /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
controller/metal.rb:178
c:0047 p:---- s:0266 b:0266 l:000265 d:000265 FINISH
c:0046 p:---- s:0264 b:0264 l:000263 d:000263 CFUNC :call
c:0045 p:0022 s:0260 b:0260 l:000259 d:000259 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/routing/routeset.rb:62
c:0044 p:0094 s:0254 b:0254 l:000253 d:000253 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/routing/routeset.rb:27
c:0043 p:0097 s:0248 b:0248 l:000220 d:000247 BLOCK /prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/routeset.rb:148
c:0042 p:0014 s:0242 b:0242 l:000226 d:000241 BLOCK /prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code
generation.rb:93
c:0041 p:0361 s:0237 b:0237 l:000236 d:000236 METHOD /prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/codegeneration.rb:75
c:0040 p:0137 s:0227 b:0227 l:000226 d:000226 METHOD /prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code
generation.rb:92
c:0039 p:0092 s:0221 b:0221 l:000220 d:000220 METHOD /prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/routeset.rb:139
c:0038 p:0025 s:0215 b:0215 l:000214 d:000214 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/routing/routeset.rb:493
c:0037 p:0035 s:0211 b:0211 l:000210 d:000210 METHOD /prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/middleware/identitymap.rb:10
c:0036 p:0015 s:0207 b:0207 l:000206 d:000206 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/beststandardssupport.rb:17
c:0035 p:0093 s:0200 b:0200 l:000199 d:000199 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/head.rb:14
c:0034 p:0155 s:0193 b:0193 l:000192 d:000192 METHOD /prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/methodoverride.rb:24
c:0033 p:0046 s:0187 b:0187 l:000186 d:000186 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/paramsparser.rb:21
c:0032 p:0054 s:0182 b:0182 l:000181 d:000181 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/flash.rb:182
c:0031 p:0027 s:0175 b:0175 l:000174 d:000174 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/session/abstractstore.rb:149
c:0030 p:0015 s:0164 b:0164 l:000163 d:000163 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/cookies.rb:302
c:0029 p:0014 s:0156 b:0156 l:002330 d:000155 BLOCK /prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/activerecord/querycache.rb:32
c:0028 p:0019 s:0154 b:0154 l:000153 d:000153 METHOD /prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/activerecord/connectionadapters/abstract/querycache.rb:28
c:0027 p:0051 s:0150 b:0150 l:000149 d:000149 METHOD /prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active
record/querycache.rb:12
c:0026 p:0019 s:0146 b:0146 l:002330 d:002330 METHOD /prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active
record/querycache.rb:31
c:0025 p:0015 s:0142 b:0142 l:000141 d:000141 METHOD /prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active
record/connectionadapters/abstract/connectionpool.rb
c:0024 p:0029 s:0138 b:0138 l:000030 d:000137 BLOCK /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/callbacks.rb:46
c:0023 p:0155 s:0136 b:0136 l:000135 d:000135 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/callbacks.rb:416
c:0022 p:0011 s:0126 b:0126 l:000030 d:000030 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/callbacks.rb:44
c:0021 p:0015 s:0122 b:0122 l:000121 d:000121 METHOD /prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/sendfile.rb:107
c:0020 p:0049 s:0112 b:0112 l:000111 d:000111 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/remoteip.rb:48
c:0019 p:0017 s:0108 b:0108 l:000107 d:000107 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/showexceptions.rb:47
c:0018 p:0027 s:0100 b:0100 l:000099 d:000099 METHOD /prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/rack/logger.rb:13
c:0017 p:0032 s:0096 b:0096 l:000095 d:000095 METHOD /prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/runtime.rb:17
c:0016 p:0052 s:0087 b:0087 l:000086 d:000086 METHOD /prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/cache/strategy/localcache.rb:72
c:0015 p:0014 s:0083 b:0083 l:000077 d:000082 BLOCK /prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11
c:0014 p:0019 s:0081 b:0081 l:000080 d:000080 METHOD internal:prelude:10
c:0013 p:0054 s:0078 b:0078 l:000077 d:000077 METHOD /prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11
c:0012 p:0193 s:0073 b:0073 l:000072 d:000072 METHOD /prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/static.rb:30
c:0011 p:0032 s:0066 b:0066 l:000065 d:000065 METHOD /prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:168
c:0010 p:0021 s:0062 b:0062 l:000061 d:000061 METHOD /prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:77
c:0009 p:---- s:0057 b:0057 l:000056 d:000056 FINISH
c:0008 p:0015 s:0055 b:0055 l:000054 d:000054 METHOD /prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/rack/logtailer.rb:14
c:0007 p:0015 s:0050 b:0050 l:000049 d:000049 METHOD /prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/content
length.rb:13
c:0006 p:0338 s:0042 b:0042 l:000041 d:000041 METHOD /prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/handler/webrick.rb:52
c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111
c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70
c:0003 p:0126 s:0009 b:0009 l:000978 d:000008 BLOCK /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183
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/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in block in start_thread'
/Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
run'
/Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service'
/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/handler/webrick.rb:52:in
service'
/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/contentlength.rb:13:in call'
/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/rack/log_tailer.rb:14:in
call'
/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:77:in method_missing'
/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:168:in
call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/static.rb:30:in call'
/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11:in
call'
internal:prelude:10:in synchronize'
/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11:in
block in call'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/cache/strategy/localcache.rb:72:in call'
/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/runtime.rb:17:in
call'
/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/rack/logger.rb:13:in call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/show_exceptions.rb:47:in
call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/remoteip.rb:48:in call'
/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/sendfile.rb:107:in
call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/callbacks.rb:44:in call'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/callbacks.rb:416:in
runcallcallbacks'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/callbacks.rb:46:in block in call'
/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in
call'
/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active
record/querycache.rb:31:in call'
/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active_record/query_cache.rb:12:in
cache'
/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active
record/connectionadapters/abstract/querycache.rb:28:in cache'
/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active_record/query_cache.rb:32:in
block in call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/cookies.rb:302:in call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/session/abstract_store.rb:149:in
call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/flash.rb:182:in call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/params_parser.rb:21:in
call'
/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/methodoverride.rb:24:in call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/head.rb:14:in
call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/beststandardssupport.rb:17:in call'
/prj/test/ruby/1.9.1/gems/mongo_mapper-0.9.0/lib/mongo_mapper/middleware/identity_map.rb:10:in
call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/routing/routeset.rb:493:in call'
/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:139:in
call'
/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code
generation.rb:92:in recognize'
/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:75:in
optimizedeach'
/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code
generation.rb:93:in block in recognize'
/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:148:in
block in call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/routing/routeset.rb:27:in call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:62:in
dispatch'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/routing/routeset.rb:62:in call'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_controller/metal.rb:178:in
block in action'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actioncontroller/metal/rackdelegation.rb:14:in dispatch'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_controller/metal.rb:138:in
dispatch'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/abstractcontroller/rendering.rb:41:in process'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/abstract_controller/base.rb:119:in
process'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
controller/metal/rescue.rb:17:in process_action'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_controller/metal/instrumentation.rb:29:in
processaction'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/notifications.rb:52:in instrument'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/notifications/instrumenter.rb:21:in
instrument'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/notifications.rb:52:in block in instrument'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_controller/metal/instrumentation.rb:30:in
block in process
action'
/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/abstractcontroller/callbacks.rb:17:in process_action'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/callbacks.rb:94:in
run
callbacks'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/callbacks.rb:410:in _run_process_action_callbacks'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/callbacks.rb:437:in
run4460000177441777005processaction561900033028814358callbacks'
/prj/app/controllers/config
controller.rb:162:in get_client_and_grida_name'
/prj/app/controllers/application_controller.rb:15:in
currentuser'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:181:in const_missing'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:181:in
each'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:183:in block in const_missing'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:503:in
load
missingconstant'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:181:in const_missing'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:181:in
each'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:183:in block in const_missing'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:491:in
load
missingconstant'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:340:in require_or_load'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:453:in
loadfile'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:596:in new_constants_in'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:454:in
block in loadfile'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:454:in load'
/prj/app/models/user.rb:1:in
'
/prj/app/models/user.rb:6:in <class:User>'
/prj/test/ruby/1.9.1/gems/mongo_mapper-0.9.0/lib/mongo_mapper/plugins/associations.rb:22:in
one'
/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/associations.rb:22:in new'
/prj/test/ruby/1.9.1/gems/mongo_mapper-0.9.0/lib/mongo_mapper/plugins/associations/base.rb:14:in
initialize'
/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/associations/base.rb:81:in modularized_extensions'
/prj/test/ruby/1.9.1/gems/mongo_mapper-0.9.0/lib/mongo_mapper/plugins/associations/base.rb:81:in
flatten'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/whinynil.rb:46:in method_missing'
/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/whiny_nil.rb:46:in
caller'

-- C level backtrace information -------------------------------------------

Output with ruby -w:

Started POST "/config/updatexy" for 127.0.0.1 at 2011-06-03 12:47:56 +0400
Processing by ConfigController#update
xy as
Parameters: {"serviceid"=>"4de89fa479db735426000006", "x"=>"99", "y"=>"217"}
Completed 200 OK in 24ms (Views: 6.6ms | ActiveRecord: 0.0ms)
~/prj/app/controllers/config
controller.rb:87: warning: mismatched indentations at 'end' with 'def' at 76
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/coreext/class/inheritableattributes.rb:192: warning: method redefined; discarding old _validationcallbacks
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/coreext/class/inheritableattributes.rb:192: warning: previous definition of _validationcallbacks was here
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/coreext/class/inheritableattributes.rb:201: warning: method redefined; discarding old _validationcallbacks
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/coreext/class/inheritableattributes.rb:201: warning: previous definition of _validationcallbacks was here
~/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/safe.rb:18: warning: instance variable @safe not initialized
~/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/persistence.rb:25: warning: instance variable @databasename not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @id not initialized
~/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @type not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @ident not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @pipes not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @options not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @removed not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @userid not initialized
~/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/persistence.rb:25: warning: instance variable @databasename not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @id not initialized
~/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @type not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @ident not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @pipes not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @options not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @removed not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/keys.rb:300: warning: instance variable @userid not initialized
hp50
0
sdi
~/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/document.rb:19: warning: instance variable @destroyed not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/safe.rb:18: warning: instance variable @safe not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/persistence.rb:25: warning: instance variable @databasename not initialized
~/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/associations.rb:76: warning: instance variable @user not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/document.rb:19: warning: instance variable @destroyed not initialized
~/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/safe.rb:18: warning: instance variable @safe not initialized
~/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/plugins/persistence.rb:25: warning: instance variable @databasename not initialized
~/prj/test/ruby/1.9.1/gems/mongo
mapper-0.9.0/lib/mongomapper/plugins/associations.rb:76: warning: instance variable @user not initialized
saved
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/http/response.rb:143: warning: instance variable @etag not initialized

Started POST "/config/addconnection" for 127.0.0.1 at 2011-06-03 12:47:57 +0400
Processing by ConfigController#add
connection as
Parameters: {"inpobjid"=>"4de89fa479db735426000006", "inppipename"=>"default", "inpconnname"=>"default", "outobjid"=>"4de89fa479db735426000005", "outpipename"=>"default", "outconnname"=>"default", "type"=>"decklink::raw::", "options"=>"{\"mode\":\"hp50\",\"card-index\":\"0\",\"video-connection\":\"sdi\"}"}
Completed 200 OK in 24ms (Views: 6.7ms | ActiveRecord: 0.0ms)
~/prj/app/controllers/configcontroller.rb:87: warning: mismatched indentations at 'end' with 'def' at 76
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:454: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]

-- control frame ----------
c:0065 p:---- s:0354 b:0354 l:000353 d:000353 CFUNC :load
c:0064 p:0018 s:0350 b:0350 l:000341 d:000349 BLOCK ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:454
c:0063 p:0045 s:0348 b:0348 l:000347 d:000347 METHOD ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:596
c:0062 p:0086 s:0342 b:0342 l:000341 d:000341 METHOD ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:453
c:0061 p:0194 s:0334 b:0334 l:000333 d:000333 METHOD ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:340
c:0060 p:0277 s:0326 b:0326 l:000325 d:000325 METHOD ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:491
c:0059 p:0036 s:0313 b:0313 l:000303 d:000312 BLOCK ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:183
c:0058 p:---- s:0309 b:0309 l:000308 d:000308 FINISH
c:0057 p:---- s:0307 b:0307 l:000306 d:000306 CFUNC :each
c:0056 p:0076 s:0304 b:0304 l:000303 d:000303 METHOD ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:181
c:0055 p:0044 s:0297 b:0297 l:000288 d:000296 BLOCK ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/inflector/methods.rb:124
c:0054 p:---- s:0294 b:0294 l:000293 d:000293 FINISH
c:0053 p:---- s:0292 b:0292 l:000291 d:000291 CFUNC :each
c:0052 p:0074 s:0289 b:0289 l:000288 d:000288 METHOD ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/inflector/methods.rb:123
c:0051 p:0025 s:0283 b:0280 l:001298 d:000279 BLOCK ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:528
c:0050 p:---- s:0276 b:0276 l:000275 d:000275 FINISH
c:0049 p:---- s:0274 b:0274 l:000273 d:000273 CFUNC :yield
c:0048 p:---- s:0272 b:0272 l:000271 d:000271 CFUNC :default
c:0047 p:0011 s:0270 b:0270 l:000269 d:000269 METHOD ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:538
c:0046 p:0079 s:0267 b:0267 l:000266 d:000266 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/routing/routeset.rb:58
c:0045 p:0047 s:0261 b:0261 l:000260 d:000260 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/routing/routeset.rb:44
c:0044 p:0051 s:0254 b:0254 l:000253 d:000253 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/routing/routeset.rb:23
c:0043 p:0097 s:0248 b:0248 l:000220 d:000247 BLOCK ~/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route
set.rb:148
c:0042 p:0014 s:0242 b:0242 l:000226 d:000241 BLOCK ~/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/codegeneration.rb:93
c:0041 p:0361 s:0237 b:0237 l:000236 d:000236 METHOD ~/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code
generation.rb:75
c:0040 p:0137 s:0227 b:0227 l:000226 d:000226 METHOD ~/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/codegeneration.rb:92
c:0039 p:0092 s:0221 b:0221 l:000220 d:000220 METHOD ~/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route
set.rb:139
c:0038 p:0025 s:0215 b:0215 l:000214 d:000214 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/routing/routeset.rb:493
c:0037 p:0035 s:0211 b:0211 l:000210 d:000210 METHOD ~/prj/test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/middleware/identitymap.rb:10
c:0036 p:0015 s:0207 b:0207 l:000206 d:000206 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/beststandardssupport.rb:17
c:0035 p:0093 s:0200 b:0200 l:000199 d:000199 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/head.rb:14
c:0034 p:0155 s:0193 b:0193 l:000192 d:000192 METHOD ~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/methodoverride.rb:24
c:0033 p:0046 s:0187 b:0187 l:000186 d:000186 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/paramsparser.rb:21
c:0032 p:0054 s:0182 b:0182 l:000181 d:000181 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/flash.rb:182
c:0031 p:0027 s:0175 b:0175 l:000174 d:000174 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/session/abstractstore.rb:149
c:0030 p:0015 s:0164 b:0164 l:000163 d:000163 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/cookies.rb:302
c:0029 p:0014 s:0156 b:0156 l:000f20 d:000155 BLOCK ~/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active
record/querycache.rb:32
c:0028 p:0019 s:0154 b:0154 l:000153 d:000153 METHOD ~/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active
record/connectionadapters/abstract/querycache.rb:28
c:0027 p:0051 s:0150 b:0150 l:000149 d:000149 METHOD ~/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/activerecord/querycache.rb:12
c:0026 p:0019 s:0146 b:0146 l:000f20 d:000f20 METHOD ~/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/activerecord/querycache.rb:31
c:0025 p:0015 s:0142 b:0142 l:000141 d:000141 METHOD ~/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/activerecord/connectionadapters/abstract/connectionpool.rb
c:0024 p:0029 s:0138 b:0138 l:0008a0 d:000137 BLOCK ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/callbacks.rb:46
c:0023 p:0155 s:0136 b:0136 l:000135 d:000135 METHOD ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/callbacks.rb:416
c:0022 p:0011 s:0126 b:0126 l:0008a0 d:0008a0 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/callbacks.rb:44
c:0021 p:0015 s:0122 b:0122 l:000121 d:000121 METHOD ~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/sendfile.rb:107
c:0020 p:0049 s:0112 b:0112 l:000111 d:000111 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/remoteip.rb:48
c:0019 p:0017 s:0108 b:0108 l:000107 d:000107 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/showexceptions.rb:47
c:0018 p:0027 s:0100 b:0100 l:000099 d:000099 METHOD ~/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/rack/logger.rb:13
c:0017 p:0032 s:0096 b:0096 l:000095 d:000095 METHOD ~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/runtime.rb:17
c:0016 p:0052 s:0087 b:0087 l:000086 d:000086 METHOD ~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/cache/strategy/localcache.rb:72
c:0015 p:0014 s:0083 b:0083 l:000077 d:000082 BLOCK ~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11
c:0014 p:0019 s:0081 b:0081 l:000080 d:000080 METHOD internal:prelude:10
c:0013 p:0054 s:0078 b:0078 l:000077 d:000077 METHOD ~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11
c:0012 p:0193 s:0073 b:0073 l:000072 d:000072 METHOD ~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/static.rb:30
c:0011 p:0032 s:0066 b:0066 l:000065 d:000065 METHOD ~/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:168
c:0010 p:0021 s:0062 b:0062 l:000061 d:000061 METHOD ~/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:77
c:0009 p:---- s:0057 b:0057 l:000056 d:000056 FINISH
c:0008 p:0015 s:0055 b:0055 l:000054 d:000054 METHOD ~/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/rack/log
tailer.rb:14
c:0007 p:0015 s:0050 b:0050 l:000049 d:000049 METHOD ~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/content_length.rb:13
c:0006 p:0338 s:0042 b:0042 l:000041 d:000041 METHOD ~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/handler/webrick.rb:52
c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111
c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70
c:0003 p:0126 s:0009 b:0009 l:0011c8 d:000008 BLOCK ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183
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 ----------------------------------------
~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in block in start_thread'
~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
run'
~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service'
~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/handler/webrick.rb:52:in
service'
~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/contentlength.rb:13:in call'
~/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/rack/log_tailer.rb:14:in
call'
~/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:77:in method_missing'
~/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:168:in
call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/static.rb:30:in call'
~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11:in
call'
internal:prelude:10:in synchronize'
~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11:in
block in call'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/cache/strategy/localcache.rb:72:in call'
~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/runtime.rb:17:in
call'
~/prj/test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/rack/logger.rb:13:in call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/show_exceptions.rb:47:in
call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/remoteip.rb:48:in call'
~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/sendfile.rb:107:in
call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/callbacks.rb:44:in call'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/callbacks.rb:416:in
runcallcallbacks'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/callbacks.rb:46:in block in call'
~/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in
call'
~/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active
record/querycache.rb:31:in call'
~/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active_record/query_cache.rb:12:in
cache'
~/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active
record/connectionadapters/abstract/querycache.rb:28:in cache'
~/prj/test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active_record/query_cache.rb:32:in
block in call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/cookies.rb:302:in call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/session/abstract_store.rb:149:in
call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/flash.rb:182:in call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/params_parser.rb:21:in
call'
~/prj/test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/methodoverride.rb:24:in call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/head.rb:14:in
call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/beststandardssupport.rb:17:in call'
~/prj/test/ruby/1.9.1/gems/mongo_mapper-0.9.0/lib/mongo_mapper/middleware/identity_map.rb:10:in
call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/routing/routeset.rb:493:in call'
~/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:139:in
call'
~/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code
generation.rb:92:in recognize'
~/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:75:in
optimizedeach'
~/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code
generation.rb:93:in block in recognize'
~/prj/test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:148:in
block in call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/routing/routeset.rb:23:in call'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:44:in
controller'
~/prj/test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/routing/routeset.rb:58:in controller_reference'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:538:in
get'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:538:in default'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:538:in
yield'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:528:in block in <class:Reference>'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/inflector/methods.rb:123:in
constantize'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/inflector/methods.rb:123:in each'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/inflector/methods.rb:124:in
block in constantize'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:181:in const_missing'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:181:in
each'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/dependencies.rb:183:in block in const_missing'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:491:in
load
missingconstant'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:340:in require_or_load'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:453:in
loadfile'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:596:in new_constants_in'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:454:in
block in loadfile'
~/prj/test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/dependencies.rb:454:in `load'

-- C level backtrace information -------------------------------------------

[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

zsh: abort ruby -v script/rails s
ruby -v script/rails s 22.77s user 2.60s system 4% cpu 8:44.24 total

OSX Crash report:

Process: ruby [21542]
Path: /.rvm/rubies/ruby-1.9.2-p180/bin/ruby
Identifier: ruby
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: zsh [345]

Date/Time: 2011-06-03 12:48:05.403 +0400
OS Version: Mac OS X 10.6.7 (10J869)
Report Version: 6

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 3

Application Specific Information:
abort() called

Thread 0: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff8773ae52 select$DARWINEXTSN + 10
1 libruby.1.9.1.dylib 0x000000010018657d do
select + 605 (thread.c:2501)
2 libruby.1.9.1.dylib 0x000000010006633c selectcall + 1308 (io.c:7236)
3 libruby.1.9.1.dylib 0x000000010003ee6f rb
ensure + 127 (eval.c:743)
4 libruby.1.9.1.dylib 0x000000010005f58e rbfselect + 158 (io.c:7360)
5 libruby.1.9.1.dylib 0x000000010017bc03 vmcallmethod + 931 (vminsnhelper.c:402)
6 libruby.1.9.1.dylib 0x0000000100167da4 vm
execcore + 8260 (insns.def:1006)
7 libruby.1.9.1.dylib 0x000000010016fa53 vm
exec + 1507 (vm.c:1147)
8 libruby.1.9.1.dylib 0x000000010017cf00 rbyield + 640 (vm.c:558)
9 libruby.1.9.1.dylib 0x000000010008e9e1 rb
objtap + 17 (object.c:536)
10 libruby.1.9.1.dylib 0x000000010017bc03 vm
callmethod + 931 (vminsnhelper.c:402)
11 libruby.1.9.1.dylib 0x0000000100167da4 vmexeccore + 8260 (insns.def:1006)
12 libruby.1.9.1.dylib 0x000000010016fa53 vmexec + 1507 (vm.c:1147)
13 libruby.1.9.1.dylib 0x000000010016fef0 rb
iseqeval + 368 (vm.c:1375)
14 libruby.1.9.1.dylib 0x000000010004229c rb
loadinternal + 300 (load.c:304)
15 libruby.1.9.1.dylib 0x00000001000435dc rb
requiresafe + 1052 (load.c:595)
16 libruby.1.9.1.dylib 0x000000010017bc03 vm
callmethod + 931 (vminsnhelper.c:402)
17 libruby.1.9.1.dylib 0x000000010016a7f1 vmexeccore + 19089 (insns.def:1040)
18 libruby.1.9.1.dylib 0x000000010016fa53 vmexec + 1507 (vm.c:1147)
19 libruby.1.9.1.dylib 0x000000010016fd5b rb
iseqevalmain + 507 (vm.c:1389)
20 libruby.1.9.1.dylib 0x000000010003f4f2 rubyexecinternal + 178 (eval.c:214)
21 libruby.1.9.1.dylib 0x0000000100041e7c rubyrunnode + 60 (eval.c:261)
22 ruby 0x0000000100000ecf main + 79 (main.c:37)
23 ruby 0x0000000100000e74 start + 52

Thread 1:
0 libSystem.B.dylib 0x00007fff87731f8a _semwaitsignal + 10
1 libSystem.B.dylib 0x00007fff87735da1 pthreadcondwait + 1286
2 libruby.1.9.1.dylib 0x00000001001885b6 thread
timer + 182 (threadpthread.c:137)
3 libSystem.B.dylib 0x00007fff877304f6 _pthread
start + 331
4 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 2:
0 libSystem.B.dylib 0x00007fff87731f8a _semwaitsignal + 10
1 libSystem.B.dylib 0x00007fff87735da1 pthreadcondwait + 1286
2 libruby.1.9.1.dylib 0x0000000100185254 native
sleep + 388 (threadpthread.c:662)
3 libruby.1.9.1.dylib 0x000000010018534a sleep
timeval + 170 (thread.c:879)
4 libruby.1.9.1.dylib 0x00000001000bc870 rbfsleep + 80 (process.c:3283)
5 libruby.1.9.1.dylib 0x000000010017bc03 vmcallmethod + 931 (vminsnhelper.c:402)
6 libruby.1.9.1.dylib 0x0000000100167da4 vm
execcore + 8260 (insns.def:1006)
7 libruby.1.9.1.dylib 0x000000010016fa53 vm
exec + 1507 (vm.c:1147)
8 libruby.1.9.1.dylib 0x0000000100170dcd rbvminvokeproc + 877 (vm.c:558)
9 libruby.1.9.1.dylib 0x0000000100188279 thread
startfunc2 + 1705 (thread.c:441)
10 libruby.1.9.1.dylib 0x000000010018841d threadstartfunc1 + 29 (threadpthread.c:397)
11 libSystem.B.dylib 0x00007fff877304f6 pthreadstart + 331
12 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 3 Crashed:
0 libSystem.B.dylib 0x00007fff87769e4e _semwaitsignalnocancel + 10
1 libSystem.B.dylib 0x00007fff87769d50 nanosleep$NOCANCEL + 129
2 libSystem.B.dylib 0x00007fff877c66ae usleep$NOCANCEL + 57
3 libSystem.B.dylib 0x00007fff877e5ce0 abort + 93
4 libruby.1.9.1.dylib 0x000000010003a2bd 0x100003000 + 225981
5 libruby.1.9.1.dylib 0x00000001000ffe24 0x100003000 + 1035812
6 libSystem.B.dylib 0x00007fff8775766a _sigtramp + 26
7 libruby.1.9.1.dylib 0x0000000100055dcd garbage
collect + 317 (gc.c:2185)
8 libruby.1.9.1.dylib 0x0000000100057406 vmxmalloc + 150 (gc.c:656)
9 libruby.1.9.1.dylib 0x00000001001092a1 st
insert2 + 609 (st.c:503)
10 libruby.1.9.1.dylib 0x000000010005bcc6 rbhashaset + 150 (hash.c:1118)
11 libruby.1.9.1.dylib 0x000000010004d2e2 realpathrec + 498 (file.c:3299)
12 libruby.1.9.1.dylib 0x000000010004d6fe rb
realpathinternal + 446 (file.c:3375)
13 libruby.1.9.1.dylib 0x000000010015d4a7 prepare
iseqbuild + 119 (iseq.c:231)
14 libruby.1.9.1.dylib 0x000000010015ee2f rb
iseqnewwithopt + 127 (iseq.c:410)
15 libruby.1.9.1.dylib 0x000000010014ec3d iseq
compileeach + 11421 (compile.c:923)
16 libruby.1.9.1.dylib 0x0000000100151edc iseq
compileeach + 24380 (compile.c:393)
17 libruby.1.9.1.dylib 0x0000000100159e5e rb
iseqcompilenode + 1950 (compile.c:462)
18 libruby.1.9.1.dylib 0x000000010015ee3b rbiseqnewwithopt + 139 (iseq.c:411)
19 libruby.1.9.1.dylib 0x000000010014d72e iseqcompileeach + 6030 (compile.c:923)
20 libruby.1.9.1.dylib 0x000000010014c312 iseqcompileeach + 882 (compile.c:2980)
21 libruby.1.9.1.dylib 0x0000000100159ebe rbiseqcompilenode + 2046 (compile.c:456)
22 libruby.1.9.1.dylib 0x000000010015ee3b rb
iseqnewwithopt + 139 (iseq.c:411)
23 libruby.1.9.1.dylib 0x000000010014dcb3 iseq
compileeach + 7443 (compile.c:923)
24 libruby.1.9.1.dylib 0x000000010014c312 iseq
compileeach + 882 (compile.c:2980)
25 libruby.1.9.1.dylib 0x0000000100159e25 rb
iseqcompilenode + 1893 (compile.c:466)
26 libruby.1.9.1.dylib 0x0000000100160fbc rbiseqnewtop + 140 (iseq.c:411)
27 libruby.1.9.1.dylib 0x0000000100042287 rb
loadinternal + 279 (load.c:300)
28 libruby.1.9.1.dylib 0x0000000100043a4d rb
fload + 109 (load.c:377)
29 libruby.1.9.1.dylib 0x000000010017bc03 vm
callmethod + 931 (vminsnhelper.c:402)
30 libruby.1.9.1.dylib 0x0000000100167da4 vmexeccore + 8260 (insns.def:1006)
31 libruby.1.9.1.dylib 0x000000010016fa53 vmexec + 1507 (vm.c:1147)
32 libruby.1.9.1.dylib 0x000000010017cf00 rb
yield + 640 (vm.c:558)
33 libruby.1.9.1.dylib 0x0000000100009672 rbaryeach + 82 (array.c:1426)
34 libruby.1.9.1.dylib 0x000000010017bc03 vmcallmethod + 931 (vminsnhelper.c:402)
35 libruby.1.9.1.dylib 0x0000000100167da4 vm
execcore + 8260 (insns.def:1006)
36 libruby.1.9.1.dylib 0x000000010016fa53 vm
exec + 1507 (vm.c:1147)
37 libruby.1.9.1.dylib 0x000000010017cf00 rbyield + 640 (vm.c:558)
38 libruby.1.9.1.dylib 0x0000000100009672 rb
aryeach + 82 (array.c:1426)
39 libruby.1.9.1.dylib 0x000000010017bc03 vm
callmethod + 931 (vminsnhelper.c:402)
40 libruby.1.9.1.dylib 0x0000000100167da4 vmexeccore + 8260 (insns.def:1006)
41 libruby.1.9.1.dylib 0x000000010016fa53 vmexec + 1507 (vm.c:1147)
42 libruby.1.9.1.dylib 0x0000000100170dcd rb
vminvokeproc + 877 (vm.c:558)
43 libruby.1.9.1.dylib 0x0000000100046aee proccall + 94 (proc.c:558)
44 libruby.1.9.1.dylib 0x0000000100171214 vm
call0 + 612 (vmeval.c:79)
45 libruby.1.9.1.dylib 0x000000010017757e rb
funcall + 590 (vmeval.c:639)
46 libruby.1.9.1.dylib 0x000000010005934a rb
hashdefault + 138 (hash.c:620)
47 libruby.1.9.1.dylib 0x0000000100171214 vm
call0 + 612 (vmeval.c:79)
48 libruby.1.9.1.dylib 0x000000010017757e rb
funcall + 590 (vmeval.c:639)
49 libruby.1.9.1.dylib 0x00000001000593a5 rb
hasharef + 69 (hash.c:509)
50 libruby.1.9.1.dylib 0x000000010016ca42 vm
execcore + 27874 (insns.def:1892)
51 libruby.1.9.1.dylib 0x000000010016fa53 vm
exec + 1507 (vm.c:1147)
52 libruby.1.9.1.dylib 0x00000001001714ba vmcall0 + 1290 (vmeval.c:66)
53 libruby.1.9.1.dylib 0x000000010017b421 vmmethodmissing + 481 (vminsnhelper.c:449)
54 libruby.1.9.1.dylib 0x000000010017bd98 vm
callmethod + 1336 (vminsnhelper.c:666)
55 libruby.1.9.1.dylib 0x0000000100167da4 vmexeccore + 8260 (insns.def:1006)
56 libruby.1.9.1.dylib 0x000000010016fa53 vmexec + 1507 (vm.c:1147)
57 libruby.1.9.1.dylib 0x0000000100170dcd rb
vminvokeproc + 877 (vm.c:558)
58 libruby.1.9.1.dylib 0x0000000100188279 threadstartfunc2 + 1705 (thread.c:441)
59 libruby.1.9.1.dylib 0x000000010018841d thread
startfunc1 + 29 (threadpthread.c:397)
60 libSystem.B.dylib 0x00007fff877304f6 _pthread
start + 331
61 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 3 crashed with X86 Thread State (64-bit):
rax: 0x000000000000003c rbx: 0x0000000102fdea90 rcx: 0x0000000102fdea48 rdx: 0x0000000000000001
rdi: 0x0000000000000c03 rsi: 0x0000000000000000 rbp: 0x0000000102fdea80 rsp: 0x0000000102fdea48
r8: 0x0000000000000000 r9: 0x0000000000989680 r10: 0x0000000000000001 r11: 0x0000000000000246
r12: 0x0000000000000000 r13: 0x000000010019ace7 r14: 0x0000000100838000 r15: 0x0000000106080820
rip: 0x00007fff87769e4e rfl: 0x0000000000000247 cr2: 0x00000001005ad000

Binary Images:
0x100000000 - 0x100000fff +ruby ??? (???) /.rvm/rubies/ruby-1.9.2-p180/bin/ruby
0x100003000 - 0x100211ff7 +libruby.1.9.1.dylib 1.9.1 (compatibility 1.9.1) /.rvm/rubies/ruby-1.9.2-p180/lib/libruby.1.9.1.dylib
0x1002f2000 - 0x1002f3fff +encdb.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/encdb.bundle
0x1002f6000 - 0x1002f7fff +transdb.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/enc/trans/transdb.bundle
0x10056e000 - 0x10056fff7 +etc.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/etc.bundle
0x100573000 - 0x100578fff +stringio.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/stringio.bundle
0x10057d000 - 0x100597ff7 +syck.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/syck.bundle
0x1005a6000 - 0x1005a6ff7 +sha1.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/digest/sha1.bundle
0x1005a9000 - 0x1005abff7 +digest.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/digest.bundle
0x1005af000 - 0x1005affff +iso
88591.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/iso88591.bundle
0x1005b2000 - 0x1005bdff7 +zlib.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/zlib.bundle
0x1005c5000 - 0x1005c8ff7 +strscan.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/strscan.bundle
0x1005cd000 - 0x1005d8fff +bigdecimal.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/bigdecimal.bundle
0x1005de000 - 0x1005e2fe7 +cbson.bundle ??? (???) /prj/grida/test/ruby/1.9.1/gems/bson
ext-1.2.4/ext/bsonext/cbson.bundle
0x1005e7000 - 0x1005e7ff7 +md5.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/digest/md5.bundle
0x1005ea000 - 0x1005eefff +iconv.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/iconv.bundle
0x1005f3000 - 0x1005f6ff7 +parser.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/json/ext/parser.bundle
0x1005fa000 - 0x1005fafff +utf16be.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/utf16be.bundle
0x1005fd000 - 0x1005fdfff +utf
16le.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/utf16le.bundle
0x100700000 - 0x10071fff7 +socket.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/socket.bundle
0x10072f000 - 0x10072ffff +utf
32be.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/utf32be.bundle
0x100732000 - 0x100732fff +utf32le.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/utf32le.bundle
0x100735000 - 0x10073afe7 +generator.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/json/ext/generator.bundle
0x100740000 - 0x10077afff +openssl.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/openssl.bundle
0x1007a8000 - 0x1007a8fff +fcntl.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/fcntl.bundle
0x1007ab000 - 0x1007cefff +rubyeventmachine.bundle ??? (???) /prj/grida/test/ruby/1.9.1/gems/eventmachine-0.12.10/lib/rubyeventmachine.bundle
0x1007f5000 - 0x1007f8fff +thinparser.bundle ??? (???) /prj/grida/test/ruby/1.9.1/gems/thin-1.2.11/lib/thinparser.bundle
0x102f00000 - 0x102f4bfe7 +libssl.1.0.0.dylib ??? (???) /opt/local/lib/libssl.1.0.0.dylib
0x102f62000 - 0x102f76ff7 +libz.1.dylib 1.2.5 (compatibility 1.0.0) /opt/local/lib/libz.1.dylib
0x102f7a000 - 0x102f7bff7 +posixspawnext.bundle ??? (???) /prj/grida/test/ruby/1.9.1/gems/posix-spawn-0.3.6/lib/posixspawnext.bundle
0x102f7f000 - 0x102f91fff +singlebyte.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/trans/singlebyte.bundle
0x102f99000 - 0x102f9bfff +cparse.bundle ??? (???) /.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/racc/cparse.bundle
0x102fdf000 - 0x102fe4fff +sqlite3native.bundle ??? (???) /prj/grida/test/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3/sqlite3native.bundle
0x102feb000 - 0x102ff5fe7 +yajl.bundle ??? (???) /prj/grida/test/ruby/1.9.1/gems/yajl-ruby-0.8.2/ext/yajl/yajl.bundle
0x103900000 - 0x103a4eff7 +libcrypto.1.0.0.dylib ??? (???) /opt/local/lib/libcrypto.1.0.0.dylib
0x104606000 - 0x104699fe7 +libsqlite3.0.dylib 9.6.0 (compatibility 9.0.0) /opt/local/lib/libsqlite3.0.dylib
0x104f00000 - 0x104f1dff7 +ffic.bundle ??? (???) /prj/grida/test/ruby/1.9.1/gems/ffi-1.0.9/lib/ffic.bundle
0x104f32000 - 0x104fbfff7 +libzmq.dylib 2.0.0 (compatibility 2.0.0) /usr/local/lib/libzmq.dylib
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) /usr/lib/dyld
0x7fff824d0000 - 0x7fff824d1ff7 com.apple.TrustEvaluationAgent 1.1 (1) /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x7fff82992000 - 0x7fff82ab3fe7 libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) /usr/lib/libcrypto.0.9.8.dylib
0x7fff82aca000 - 0x7fff82b80fff libobjc.A.dylib 227.0.0 (compatibility 1.0.0) /usr/lib/libobjc.A.dylib
0x7fff84a81000 - 0x7fff84abbfff libssl.0.9.8.dylib 0.9.8 (compatibility 0.9.8) /usr/lib/libssl.0.9.8.dylib
0x7fff84abc000 - 0x7fff84b39fef libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) /usr/lib/libstdc++.6.dylib
0x7fff8750f000 - 0x7fff87607ff7 libiconv.2.dylib 7.0.0 (compatibility 7.0.0) /usr/lib/libiconv.2.dylib
0x7fff87608000 - 0x7fff87654fff libauto.dylib ??? (???) /usr/lib/libauto.dylib
0x7fff87655000 - 0x7fff87666ff7 libz.1.dylib 1.2.3 (compatibility 1.0.0) /usr/lib/libz.1.dylib
0x7fff876f6000 - 0x7fff878b7fff libSystem.B.dylib 125.2.10 (compatibility 1.0.0) /usr/lib/libSystem.B.dylib
0x7fff890ed000 - 0x7fff890f1ff7 libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) /usr/lib/system/libmathCommon.A.dylib
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib

I can't reproduce segfault, but i can make several requests and it happens (without any regularity or law).

noname (500 Bytes) Aaron Patterson, 06/12/2011 02:23 AM

Gemfile.lock (5 KB) Dmytrii Nagirniak, 06/12/2011 07:09 PM

terminal.txt Magnifier (35.3 KB) Dmytrii Nagirniak, 06/12/2011 07:09 PM

segfault-trace.txt Magnifier (28.5 KB) Christian Peters, 08/06/2011 09:55 PM

Gemfile.lock (8.76 KB) Christian Peters, 08/06/2011 09:55 PM

History

#1 Updated by Ivan Bortko almost 3 years ago

There is another segfault:

OSX Crash Reporter:

Process: ruby [56504]
Path: ~/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
Identifier: ruby
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: zsh [345]

Date/Time: 2011-06-06 18:23:25.860 +0400
OS Version: Mac OS X 10.6.7 (10J869)
Report Version: 6

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 3

Application Specific Information:
abort() called

Thread 0: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff8773ae52 select$DARWINEXTSN + 10
1 libruby.1.9.1.dylib 0x000000010018657d do
select + 605 (thread.c:2501)
2 libruby.1.9.1.dylib 0x000000010006633c selectcall + 1308 (io.c:7236)
3 libruby.1.9.1.dylib 0x000000010003ee6f rb
ensure + 127 (eval.c:743)
4 libruby.1.9.1.dylib 0x000000010005f58e rbfselect + 158 (io.c:7360)
5 libruby.1.9.1.dylib 0x000000010017bc03 vmcallmethod + 931 (vminsnhelper.c:402)
6 libruby.1.9.1.dylib 0x0000000100167da4 vm
execcore + 8260 (insns.def:1006)
7 libruby.1.9.1.dylib 0x000000010016fa53 vm
exec + 1507 (vm.c:1147)
8 libruby.1.9.1.dylib 0x000000010017cf00 rbyield + 640 (vm.c:558)
9 libruby.1.9.1.dylib 0x000000010008e9e1 rb
objtap + 17 (object.c:536)
10 libruby.1.9.1.dylib 0x000000010017bc03 vm
callmethod + 931 (vminsnhelper.c:402)
11 libruby.1.9.1.dylib 0x0000000100167da4 vmexeccore + 8260 (insns.def:1006)
12 libruby.1.9.1.dylib 0x000000010016fa53 vmexec + 1507 (vm.c:1147)
13 libruby.1.9.1.dylib 0x000000010016fef0 rb
iseqeval + 368 (vm.c:1375)
14 libruby.1.9.1.dylib 0x000000010004229c rb
loadinternal + 300 (load.c:304)
15 libruby.1.9.1.dylib 0x00000001000435dc rb
requiresafe + 1052 (load.c:595)
16 libruby.1.9.1.dylib 0x000000010017bc03 vm
callmethod + 931 (vminsnhelper.c:402)
17 libruby.1.9.1.dylib 0x000000010016a7f1 vmexeccore + 19089 (insns.def:1040)
18 libruby.1.9.1.dylib 0x000000010016fa53 vmexec + 1507 (vm.c:1147)
19 libruby.1.9.1.dylib 0x000000010016fd5b rb
iseqevalmain + 507 (vm.c:1389)
20 libruby.1.9.1.dylib 0x000000010003f4f2 rubyexecinternal + 178 (eval.c:214)
21 libruby.1.9.1.dylib 0x0000000100041e7c rubyrunnode + 60 (eval.c:261)
22 ruby 0x0000000100000ecf main + 79 (main.c:37)
23 ruby 0x0000000100000e74 start + 52

Thread 1:
0 libSystem.B.dylib 0x00007fff87731f8a _semwaitsignal + 10
1 libSystem.B.dylib 0x00007fff87735da1 pthreadcondwait + 1286
2 libruby.1.9.1.dylib 0x00000001001885b6 thread
timer + 182 (threadpthread.c:137)
3 libSystem.B.dylib 0x00007fff877304f6 _pthread
start + 331
4 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 2:
0 libSystem.B.dylib 0x00007fff87731f8a _semwaitsignal + 10
1 libSystem.B.dylib 0x00007fff87735da1 pthreadcondwait + 1286
2 libruby.1.9.1.dylib 0x0000000100185254 native
sleep + 388 (threadpthread.c:662)
3 libruby.1.9.1.dylib 0x000000010018534a sleep
timeval + 170 (thread.c:879)
4 libruby.1.9.1.dylib 0x00000001000bc870 rbfsleep + 80 (process.c:3283)
5 libruby.1.9.1.dylib 0x000000010017bc03 vmcallmethod + 931 (vminsnhelper.c:402)
6 libruby.1.9.1.dylib 0x0000000100167da4 vm
execcore + 8260 (insns.def:1006)
7 libruby.1.9.1.dylib 0x000000010016fa53 vm
exec + 1507 (vm.c:1147)
8 libruby.1.9.1.dylib 0x0000000100170dcd rbvminvokeproc + 877 (vm.c:558)
9 libruby.1.9.1.dylib 0x0000000100188279 thread
startfunc2 + 1705 (thread.c:441)
10 libruby.1.9.1.dylib 0x000000010018841d threadstartfunc1 + 29 (threadpthread.c:397)
11 libSystem.B.dylib 0x00007fff877304f6 pthreadstart + 331
12 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 3 Crashed:
0 libSystem.B.dylib 0x00007fff87769e4e _semwaitsignalnocancel + 10
1 libSystem.B.dylib 0x00007fff87769d50 nanosleep$NOCANCEL + 129
2 libSystem.B.dylib 0x00007fff877c66ae usleep$NOCANCEL + 57
3 libSystem.B.dylib 0x00007fff877e5ce0 abort + 93
4 libruby.1.9.1.dylib 0x000000010003a2bd 0x100003000 + 225981
5 libruby.1.9.1.dylib 0x00000001000ffe24 0x100003000 + 1035812
6 libSystem.B.dylib 0x00007fff8775766a _sigtramp + 26
7 libruby.1.9.1.dylib 0x0000000100055dcd garbage
collect + 317 (gc.c:2185)
8 libruby.1.9.1.dylib 0x0000000100057406 vmxmalloc + 150 (gc.c:656)
9 libruby.1.9.1.dylib 0x000000010018178c rb
fdinit + 28 (thread.c:2257)
10 libruby.1.9.1.dylib 0x000000010005f55a rb
fselect + 106 (io.c:7351)
11 libruby.1.9.1.dylib 0x000000010017bc03 vm
callmethod + 931 (vminsnhelper.c:402)
12 libruby.1.9.1.dylib 0x0000000100167da4 vmexeccore + 8260 (insns.def:1006)
13 libruby.1.9.1.dylib 0x000000010016fa53 vmexec + 1507 (vm.c:1147)
14 libruby.1.9.1.dylib 0x0000000100170dcd rb
vminvokeproc + 877 (vm.c:558)
15 libruby.1.9.1.dylib 0x0000000100188279 threadstartfunc2 + 1705 (thread.c:441)
16 libruby.1.9.1.dylib 0x000000010018841d thread
startfunc1 + 29 (threadpthread.c:397)
17 libSystem.B.dylib 0x00007fff877304f6 _pthread
start + 331
18 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 4:
0 libSystem.B.dylib 0x00007fff8773ae52 select$DARWINEXTSN + 10
1 libruby.1.9.1.dylib 0x000000010018657d do
select + 605 (thread.c:2501)
2 libruby.1.9.1.dylib 0x000000010006633c selectcall + 1308 (io.c:7236)
3 libruby.1.9.1.dylib 0x000000010003ee6f rb
ensure + 127 (eval.c:743)
4 libruby.1.9.1.dylib 0x000000010005f58e rbfselect + 158 (io.c:7360)
5 libruby.1.9.1.dylib 0x000000010017bc03 vmcallmethod + 931 (vminsnhelper.c:402)
6 libruby.1.9.1.dylib 0x0000000100167da4 vm
execcore + 8260 (insns.def:1006)
7 libruby.1.9.1.dylib 0x000000010016fa53 vm
exec + 1507 (vm.c:1147)
8 libruby.1.9.1.dylib 0x0000000100170dcd rbvminvokeproc + 877 (vm.c:558)
9 libruby.1.9.1.dylib 0x0000000100188279 thread
startfunc2 + 1705 (thread.c:441)
10 libruby.1.9.1.dylib 0x000000010018841d threadstartfunc1 + 29 (threadpthread.c:397)
11 libSystem.B.dylib 0x00007fff877304f6 pthreadstart + 331
12 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 5:
0 libSystem.B.dylib 0x00007fff8773ae52 select$DARWINEXTSN + 10
1 libruby.1.9.1.dylib 0x000000010018657d do
select + 605 (thread.c:2501)
2 libruby.1.9.1.dylib 0x000000010006633c selectcall + 1308 (io.c:7236)
3 libruby.1.9.1.dylib 0x000000010003ee6f rb
ensure + 127 (eval.c:743)
4 libruby.1.9.1.dylib 0x000000010005f58e rbfselect + 158 (io.c:7360)
5 libruby.1.9.1.dylib 0x000000010017bc03 vmcallmethod + 931 (vminsnhelper.c:402)
6 libruby.1.9.1.dylib 0x0000000100167da4 vm
execcore + 8260 (insns.def:1006)
7 libruby.1.9.1.dylib 0x000000010016fa53 vm
exec + 1507 (vm.c:1147)
8 libruby.1.9.1.dylib 0x0000000100170dcd rbvminvokeproc + 877 (vm.c:558)
9 libruby.1.9.1.dylib 0x0000000100188279 thread
startfunc2 + 1705 (thread.c:441)
10 libruby.1.9.1.dylib 0x000000010018841d threadstartfunc1 + 29 (threadpthread.c:397)
11 libSystem.B.dylib 0x00007fff877304f6 pthreadstart + 331
12 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 6:
0 libSystem.B.dylib 0x00007fff8773ae52 select$DARWINEXTSN + 10
1 libruby.1.9.1.dylib 0x000000010018657d do
select + 605 (thread.c:2501)
2 libruby.1.9.1.dylib 0x000000010006633c selectcall + 1308 (io.c:7236)
3 libruby.1.9.1.dylib 0x000000010003ee6f rb
ensure + 127 (eval.c:743)
4 libruby.1.9.1.dylib 0x000000010005f58e rbfselect + 158 (io.c:7360)
5 libruby.1.9.1.dylib 0x000000010017bc03 vmcallmethod + 931 (vminsnhelper.c:402)
6 libruby.1.9.1.dylib 0x0000000100167da4 vm
execcore + 8260 (insns.def:1006)
7 libruby.1.9.1.dylib 0x000000010016fa53 vm
exec + 1507 (vm.c:1147)
8 libruby.1.9.1.dylib 0x0000000100170dcd rbvminvokeproc + 877 (vm.c:558)
9 libruby.1.9.1.dylib 0x0000000100188279 thread
startfunc2 + 1705 (thread.c:441)
10 libruby.1.9.1.dylib 0x000000010018841d threadstartfunc1 + 29 (threadpthread.c:397)
11 libSystem.B.dylib 0x00007fff877304f6 pthreadstart + 331
12 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 7:
0 libSystem.B.dylib 0x00007fff8773ae52 select$DARWINEXTSN + 10
1 libruby.1.9.1.dylib 0x000000010018657d do
select + 605 (thread.c:2501)
2 libruby.1.9.1.dylib 0x000000010006633c selectcall + 1308 (io.c:7236)
3 libruby.1.9.1.dylib 0x000000010003ee6f rb
ensure + 127 (eval.c:743)
4 libruby.1.9.1.dylib 0x000000010005f58e rbfselect + 158 (io.c:7360)
5 libruby.1.9.1.dylib 0x000000010017bc03 vmcallmethod + 931 (vminsnhelper.c:402)
6 libruby.1.9.1.dylib 0x0000000100167da4 vm
execcore + 8260 (insns.def:1006)
7 libruby.1.9.1.dylib 0x000000010016fa53 vm
exec + 1507 (vm.c:1147)
8 libruby.1.9.1.dylib 0x0000000100170dcd rbvminvokeproc + 877 (vm.c:558)
9 libruby.1.9.1.dylib 0x0000000100188279 thread
startfunc2 + 1705 (thread.c:441)
10 libruby.1.9.1.dylib 0x000000010018841d threadstartfunc1 + 29 (threadpthread.c:397)
11 libSystem.B.dylib 0x00007fff877304f6 pthreadstart + 331
12 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 8:
0 libSystem.B.dylib 0x00007fff8773ae52 select$DARWINEXTSN + 10
1 libruby.1.9.1.dylib 0x000000010018657d do
select + 605 (thread.c:2501)
2 libruby.1.9.1.dylib 0x000000010006633c selectcall + 1308 (io.c:7236)
3 libruby.1.9.1.dylib 0x000000010003ee6f rb
ensure + 127 (eval.c:743)
4 libruby.1.9.1.dylib 0x000000010005f58e rbfselect + 158 (io.c:7360)
5 libruby.1.9.1.dylib 0x000000010017bc03 vmcallmethod + 931 (vminsnhelper.c:402)
6 libruby.1.9.1.dylib 0x0000000100167da4 vm
execcore + 8260 (insns.def:1006)
7 libruby.1.9.1.dylib 0x000000010016fa53 vm
exec + 1507 (vm.c:1147)
8 libruby.1.9.1.dylib 0x0000000100170dcd rbvminvokeproc + 877 (vm.c:558)
9 libruby.1.9.1.dylib 0x0000000100188279 thread
startfunc2 + 1705 (thread.c:441)
10 libruby.1.9.1.dylib 0x000000010018841d threadstartfunc1 + 29 (threadpthread.c:397)
11 libSystem.B.dylib 0x00007fff877304f6 pthreadstart + 331
12 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 9:
0 libSystem.B.dylib 0x00007fff8771012a kevent + 10
1 libzmq.dylib 0x0000000105706720 zmq::kqueuet::loop() + 176 (kqueue.cpp:157)
2 libzmq.dylib 0x0000000105718a1d thread
routine + 45 (thread.cpp:75)
3 libSystem.B.dylib 0x00007fff877304f6 pthreadstart + 331
4 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 10:
0 libSystem.B.dylib 0x00007fff8771012a kevent + 10
1 libzmq.dylib 0x0000000105706720 zmq::kqueuet::loop() + 176 (kqueue.cpp:157)
2 libzmq.dylib 0x0000000105718a1d thread
routine + 45 (thread.cpp:75)
3 libSystem.B.dylib 0x00007fff877304f6 pthreadstart + 331
4 libSystem.B.dylib 0x00007fff877303a9 thread_start + 13

Thread 3 crashed with X86 Thread State (64-bit):
rax: 0x000000000000003c rbx: 0x0000000104dc8a90 rcx: 0x0000000104dc8a48 rdx: 0x0000000000000001
rdi: 0x0000000000001907 rsi: 0x0000000000000000 rbp: 0x0000000104dc8a80 rsp: 0x0000000104dc8a48
r8: 0x0000000000000000 r9: 0x0000000000989680 r10: 0x0000000000000001 r11: 0x0000000000000246
r12: 0x0000000000000000 r13: 0x000000010019ace7 r14: 0x0000000100838000 r15: 0x0000000104d845c0
rip: 0x00007fff87769e4e rfl: 0x0000000000000247 cr2: 0x0000000057e2e000

Binary Images:
0x100000000 - 0x100000fff +ruby ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
0x100003000 - 0x100211ff7 +libruby.1.9.1.dylib 1.9.1 (compatibility 1.9.1) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.1.9.1.dylib
0x1002f2000 - 0x1002f3fff +encdb.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/encdb.bundle
0x1002f6000 - 0x1002f7fff +transdb.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/enc/trans/transdb.bundle
0x10056e000 - 0x10056fff7 +etc.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/etc.bundle
0x100573000 - 0x100578fff +stringio.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/stringio.bundle
0x10057d000 - 0x100597ff7 +syck.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/syck.bundle
0x1005a6000 - 0x1005a6ff7 +sha1.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/digest/sha1.bundle
0x1005a9000 - 0x1005abff7 +digest.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/digest.bundle
0x1005af000 - 0x1005affff +iso
88591.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/iso88591.bundle
0x1005b2000 - 0x1005bdff7 +zlib.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/zlib.bundle
0x1005c5000 - 0x1005c8ff7 +strscan.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/strscan.bundle
0x1005cd000 - 0x1005ecff7 +socket.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/socket.bundle
0x1005fc000 - 0x1005fcff7 +md5.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/digest/md5.bundle
0x100700000 - 0x10070bfff +bigdecimal.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/bigdecimal.bundle
0x100711000 - 0x100715fe7 +cbson.bundle ??? (???) /Users/roma/prj/grida/test/ruby/1.9.1/gems/bson
ext-1.2.4/ext/bsonext/cbson.bundle
0x10071a000 - 0x10071efff +iconv.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/iconv.bundle
0x100723000 - 0x100726ff7 +parser.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/json/ext/parser.bundle
0x10072a000 - 0x10072afff +utf
16be.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/utf16be.bundle
0x10072d000 - 0x10072dfff +utf16le.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/utf16le.bundle
0x100730000 - 0x100730fff +utf
32be.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/utf32be.bundle
0x100733000 - 0x100733fff +utf32le.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/utf32le.bundle
0x100736000 - 0x10073bfe7 +generator.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/json/ext/generator.bundle
0x100741000 - 0x10077bfff +openssl.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/openssl.bundle
0x1007a9000 - 0x1007a9fff +fcntl.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/fcntl.bundle
0x1007ac000 - 0x1007cffff +rubyeventmachine.bundle ??? (???) /Users/roma/prj/grida/test/ruby/1.9.1/gems/eventmachine-0.12.10/lib/rubyeventmachine.bundle
0x1007f6000 - 0x1007f9fff +thinparser.bundle ??? (???) /Users/roma/prj/grida/test/ruby/1.9.1/gems/thin-1.2.11/lib/thinparser.bundle
0x102f00000 - 0x102f4bfe7 +libssl.1.0.0.dylib ??? (???) /opt/local/lib/libssl.1.0.0.dylib
0x102f62000 - 0x102f76ff7 +libz.1.dylib 1.2.5 (compatibility 1.0.0) /opt/local/lib/libz.1.dylib
0x102f7a000 - 0x102f7bff7 +posixspawnext.bundle ??? (???) /Users/roma/prj/grida/test/ruby/1.9.1/gems/posix-spawn-0.3.6/lib/posixspawnext.bundle
0x102f7f000 - 0x102f91fff +singlebyte.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x8664-darwin10.6.0/enc/trans/singlebyte.bundle
0x102f99000 - 0x102f9bfff +cparse.bundle ??? (???) /Users/roma/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/x86
64-darwin10.6.0/racc/cparse.bundle
0x102fdf000 - 0x102fe4fff +sqlite3native.bundle ??? (???) /Users/roma/prj/grida/test/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3/sqlite3native.bundle
0x102feb000 - 0x102ff5fe7 +yajl.bundle ??? (???) /Users/roma/prj/grida/test/ruby/1.9.1/gems/yajl-ruby-0.8.2/ext/yajl/yajl.bundle
0x104100000 - 0x10424eff7 +libcrypto.1.0.0.dylib ??? (???) /opt/local/lib/libcrypto.1.0.0.dylib
0x104dc9000 - 0x104de6ff7 +ffic.bundle ??? (???) /Users/roma/prj/grida/test/ruby/1.9.1/gems/ffi-1.0.9/lib/ffic.bundle
0x105300000 - 0x105393fe7 +libsqlite3.0.dylib 9.6.0 (compatibility 9.0.0) /opt/local/lib/libsqlite3.0.dylib
0x105700000 - 0x10578dff7 +libzmq.dylib 2.0.0 (compatibility 2.0.0) /usr/local/lib/libzmq.dylib
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) /usr/lib/dyld
0x7fff824d0000 - 0x7fff824d1ff7 com.apple.TrustEvaluationAgent 1.1 (1) /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x7fff82992000 - 0x7fff82ab3fe7 libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) /usr/lib/libcrypto.0.9.8.dylib
0x7fff82aca000 - 0x7fff82b80fff libobjc.A.dylib 227.0.0 (compatibility 1.0.0) /usr/lib/libobjc.A.dylib
0x7fff84a81000 - 0x7fff84abbfff libssl.0.9.8.dylib 0.9.8 (compatibility 0.9.8) /usr/lib/libssl.0.9.8.dylib
0x7fff84abc000 - 0x7fff84b39fef libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) /usr/lib/libstdc++.6.dylib
0x7fff8750f000 - 0x7fff87607ff7 libiconv.2.dylib 7.0.0 (compatibility 7.0.0) /usr/lib/libiconv.2.dylib
0x7fff87608000 - 0x7fff87654fff libauto.dylib ??? (???) /usr/lib/libauto.dylib
0x7fff87655000 - 0x7fff87666ff7 libz.1.dylib 1.2.3 (compatibility 1.0.0) /usr/lib/libz.1.dylib
0x7fff876f6000 - 0x7fff878b7fff libSystem.B.dylib 125.2.10 (compatibility 1.0.0) /usr/lib/libSystem.B.dylib
0x7fff890ed000 - 0x7fff890f1ff7 libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) /usr/lib/system/libmathCommon.A.dylib
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib

Ruby traceback:

NoMethodError (You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]):
app/controllers/configcontroller.rb:186:in get_git_revision'
app/controllers/config_controller.rb:52:in
get
data'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actioncontroller/metal/implicitrender.rb:5:in send_action'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/abstract_controller/base.rb:150:in
processaction'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
controller/metal/rendering.rb:11:in process_action'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/abstract_controller/callbacks.rb:18:in
block in processaction'
test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/callbacks.rb:441:in _run__616943919693375605__process_action__2180890801788295077__callbacks'
test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/callbacks.rb:410:in
runprocessactioncallbacks'
test/ruby/1.9.1/gems/activesupport-3.0.7/lib/activesupport/callbacks.rb:94:in run_callbacks'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/abstract_controller/callbacks.rb:17:in
process
action'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actioncontroller/metal/instrumentation.rb:30:in block in process_action'
test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
block in instrument'
test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/notifications/instrumenter.rb:21:in instrument'
test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/notifications.rb:52:in
instrument'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actioncontroller/metal/instrumentation.rb:29:in process_action'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_controller/metal/rescue.rb:17:in
process
action'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/abstractcontroller/base.rb:119:in process'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/abstract_controller/rendering.rb:41:in
process'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
controller/metal.rb:138:in dispatch'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actioncontroller/metal.rb:178:in block in action'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:62:in
call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/routing/routeset.rb:62:in dispatch'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:27:in
call'
test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route
set.rb:148:in block in call'
test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:93:in
block in recognize'
test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/codegeneration.rb:82:in optimized_each'
test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:92:in
recognize'
test/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route
set.rb:139:in call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/routing/route_set.rb:493:in
call'
test/ruby/1.9.1/gems/mongomapper-0.9.0/lib/mongomapper/middleware/identitymap.rb:10:in call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action
dispatch/middleware/head.rb:14:in call'
test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/methodoverride.rb:24:in
call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/paramsparser.rb:21:in call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/flash.rb:182:in
call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/session/abstractstore.rb:149:in call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/cookies.rb:302:in
call'
test/ruby/1.9.1/gems/activerecord-3.0.7/lib/activerecord/querycache.rb:32:in block in call'
test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in
cache'
test/ruby/1.9.1/gems/activerecord-3.0.7/lib/activerecord/querycache.rb:12:in cache'
test/ruby/1.9.1/gems/activerecord-3.0.7/lib/active_record/query_cache.rb:31:in
call'
test/ruby/1.9.1/gems/activerecord-3.0.7/lib/activerecord/connectionadapters/abstract/connectionpool.rb:354:in call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/callbacks.rb:46:in
block in call'
test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active
support/callbacks.rb:416:in _run_call_callbacks'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/callbacks.rb:44:in
call'
test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/sendfile.rb:107:in call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/action_dispatch/middleware/remote_ip.rb:48:in
call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/showexceptions.rb:47:in call'
test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/rack/logger.rb:13:in
call'
test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/runtime.rb:17:in call'
test/ruby/1.9.1/gems/activesupport-3.0.7/lib/active_support/cache/strategy/local_cache.rb:72:in
call'
test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11:in block in call'
test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11:in
call'
test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/static.rb:30:in call'
test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:168:in
call'
test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/application.rb:77:in method_missing'
test/ruby/1.9.1/gems/railties-3.0.7/lib/rails/rack/log_tailer.rb:14:in
call'
test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/content
length.rb:13:in call'
test/ruby/1.9.1/gems/rack-1.2.3/lib/rack/handler/webrick.rb:52:in
service'

Rendered test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/templates/rescues/trace.erb (1.0ms)
Rendered test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/templates/rescues/requestandresponse.erb (2.6ms)
Rendered test/ruby/1.9.1/gems/actionpack-3.0.7/lib/actiondispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (8.7ms)
~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:51: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86
64-darwin10.6.0]

-- control frame ----------
c:0005 p:---- s:0027 b:0027 l:000026 d:000026 CFUNC :select
c:0004 p:0097 s:0020 b:0020 l:000019 d:000019 METHOD ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:51
c:0003 p:0126 s:0009 b:0009 l:002578 d:000008 BLOCK ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183
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 ----------------------------------------
~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in block in start_thread'
~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:51:in
run'
~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:51:in `select'

-- C level backtrace information -------------------------------------------

[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

#2 Updated by Yui NARUSE almost 3 years ago

It seems in garbage collection; marking or freeing some invalid objet causes segv.
But the murderer is not clear.

#3 Updated by Corné Verbruggen almost 3 years ago

Running rails 3.1.0.rc4 on ruby 1.9.2 on Ubuntu 11.04 64bit, I get segfaults that might point at the same problem. It happens randomly when starting the app. The line at the top of the ouput which ends with "[BUG] Segmentation fault" shows different source files and line numbers on each run.

Every now and then during unit testing I also got "*** glibc detected *** ruby: double free or corruption (fasttop)" errors. After searching around I found a question on Stackoverflow (http://stackoverflow.com/questions/2235355/ruby-glibc-coredump-double-free-or-corruption) with an answer that suggested to do set MALLOCCHECK to 2 with "export MALLOCCHECK=2". I don't know much about glibc and segfaults, but whenever I set MALLOCCHECK to 2, the segfaults don't happen anymore. No guarantee of course, because the error happens randomly, but after many trials I get the impression that segfaults don't happen after this setting.

Here is one of the segfault outputs:

/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/activesupport/coreext/module/introspection.rb:79: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]

-- control frame ----------
c:0043 p:---- s:0157 b:0157 l:000156 d:000156 CFUNC :constants
c:0042 p:0013 s:0153 b:0153 l:000152 d:000152 METHOD /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/activesupport/coreext/module/introspection.rb:79
c:0041 p:0011 s:0150 b:0150 l:000149 d:000149 METHOD /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/activesupport/coreext/module/introspection.rb:86
c:0040 p:0063 s:0147 b:0147 l:000136 d:000146 BLOCK /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/activesupport/dependencies.rb:126
c:0039 p:---- s:0142 b:0142 l:000141 d:000141 FINISH
c:0038 p:---- s:0140 b:0140 l:000139 d:000139 CFUNC :map
c:0037 p:0018 s:0137 b:0137 l:000136 d:000136 METHOD /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active
support/dependencies.rb:123
c:0036 p:0031 s:0132 b:0132 l:000131 d:000131 METHOD /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/activesupport/dependencies.rb:635
c:0035 p:0041 s:0126 b:0126 l:000125 d:000125 METHOD /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active
support/dependencies.rb:223
c:0034 p:0013 s:0121 b:0121 l:000120 d:000120 METHOD /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/activesupport/dependencies.rb:237
c:0033 p:0059 s:0116 b:0116 l:000115 d:000115 TOP /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active
support/rescuable.rb:5
c:0032 p:---- s:0114 b:0114 l:000113 d:000113 FINISH
c:0031 p:0031 s:0112 b:0111 l:000110 d:000110 CLASS /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/actioncontroller/metal/rescue.rb:4
c:0030 p:0011 s:0109 b:0109 l:000108 d:000108 CLASS /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/action
controller/metal/rescue.rb:2
c:0029 p:0009 s:0107 b:0107 l:000106 d:000106 TOP /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/actioncontroller/metal/rescue.rb:1
c:0028 p:---- s:0105 b:0105 l:000104 d:000104 FINISH
c:0027 p:0253 s:0103 b:0075 l:000074 d:000074 CLASS /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/action
controller/base.rb:222
c:0026 p:0017 s:0073 b:0073 l:000072 d:000072 CLASS /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/actioncontroller/base.rb:169
c:0025 p:0021 s:0071 b:0071 l:000070 d:000070 TOP /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/action
controller/base.rb:3
c:0024 p:---- s:0069 b:0069 l:000068 d:000068 FINISH
c:0023 p:0266 s:0067 b:0067 l:000066 d:000066 TOP /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/metasearch-1.1.0.pre/lib/metasearch.rb:59
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:000040 d:000058 BLOCK /home/corne/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.15/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:000040 d:000050 BLOCK /home/corne/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.15/lib/bundler/runtime.rb:66
c:0016 p:---- s:0046 b:0046 l:000045 d:000045 FINISH
c:0015 p:---- s:0044 b:0044 l:000043 d:000043 CFUNC :each
c:0014 p:0046 s:0041 b:0041 l:000040 d:000040 METHOD /home/corne/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.15/lib/bundler/runtime.rb:55
c:0013 p:0021 s:0037 b:0037 l:000036 d:000036 METHOD /home/corne/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.15/lib/bundler.rb:120
c:0012 p:0079 s:0033 b:0033 l:000032 d:000032 TOP /home/corne/X/projecten/ProjectX/config/application.rb:7
c:0011 p:---- s:0031 b:0031 l:000030 d:000030 FINISH
c:0010 p:---- s:0029 b:0029 l:000028 d:000028 CFUNC :require
c:0009 p:0016 s:0025 b:0025 l:000016 d:000024 BLOCK /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc4/lib/rails/commands.rb:52
c:0008 p:---- s:0022 b:0022 l:000021 d:000021 FINISH
c:0007 p:---- s:0020 b:0020 l:000019 d:000019 CFUNC :tap
c:0006 p:0721 s:0017 b:0017 l:000016 d:000016 TOP /home/corne/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc4/lib/rails/commands.rb:49
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:0021c8 d:002648 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:0021c8 d:0021c8 TOP

-- Ruby level backtrace information ----------------------------------------
script/rails:6:in <main>'
script/rails:6:in
require'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc4/lib/rails/commands.rb:49:in <top (required)>'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc4/lib/rails/commands.rb:49:in
tap'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc4/lib/rails/commands.rb:52:in block in <top (required)>'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/railties-3.1.0.rc4/lib/rails/commands.rb:52:in
require'
/home/corne/X/projecten/ProjectX/config/application.rb:7:in <top (required)>'
/home/corne/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.15/lib/bundler.rb:120:in
require'
/home/corne/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in require'
/home/corne/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in
each'
/home/corne/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in block in require'
/home/corne/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in
each'
/home/corne/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in block (2 levels) in require'
/home/corne/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in
require'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/metasearch-1.1.0.pre/lib/metasearch.rb:59:in <top (required)>'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/action_controller/base.rb:3:in
'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/actioncontroller/base.rb:169:in <module:ActionController>'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/action_controller/base.rb:222:in
class:Base'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/action
controller/metal/rescue.rb:1:in <top (required)>'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/action_controller/metal/rescue.rb:2:in
module:ActionController'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.0.rc4/lib/actioncontroller/metal/rescue.rb:4:in <module:Rescue>'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active_support/rescuable.rb:5:in
'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active
support/dependencies.rb:237:in require'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:223:in
loaddependency'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active
support/dependencies.rb:635:in new_constants_in'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:123:in
watchnamespaces'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active
support/dependencies.rb:123:in map'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:126:in
block in watchnamespaces'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active
support/coreext/module/introspection.rb:86:in local_constant_names'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/active_support/core_ext/module/introspection.rb:79:in
local
constants'
/home/corne/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.rc4/lib/activesupport/coreext/module/introspection.rb:79:in `constants'

-- C level backtrace information -------------------------------------------
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rbvmbugreport+0x5f) [0x7f27aa57ecaf]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x5ff7e) [0x7f27aa45df7e]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rbbug+0xa2) [0x7f27aa45eea2]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1140f5) [0x7f27aa5120f5]
/lib/x86
64-linux-gnu/libpthread.so.0(+0xfc60) [0x7f27aa1efc60]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(stclear+0x2d) [0x7f27aa519c6d]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(st
freetable+0x9) [0x7f27aa519cd9]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x7be87) [0x7f27aa479e87]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x7c6c8) [0x7f27aa47a6c8]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(st
insert+0x10f) [0x7f27aa51a0af]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x152ebf) [0x7f27aa550ebf]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x7d4f6) [0x7f27aa47b4f6]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(stforeach+0xb4) [0x7f27aa51b1e4]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(st
foreachsafe+0x21) [0x7f27aa47d601]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
modconstat+0x29) [0x7f27aa553839]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rbmodconstants+0x55) [0x7f27aa553965]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x17aaa6) [0x7f27aa578aa6]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1705ae) [0x7f27aa56e5ae]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1769a3) [0x7f27aa5749a3]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rbyield+0x47) [0x7f27aa579977]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x35b96) [0x7f27aa433b96]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x17aaa6) [0x7f27aa578aa6]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1705ae) [0x7f27aa56e5ae]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1769a3) [0x7f27aa5749a3]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
iseqeval+0x1f0) [0x7f27aa579e90]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x69b26) [0x7f27aa467b26]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
requiresafe+0x6df) [0x7f27aa46908f]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
autoloadload+0xa5) [0x7f27aa5535a5]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x155621) [0x7f27aa553621]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x16de4d) [0x7f27aa56be4d]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x16fc2c) [0x7f27aa56dc2c]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1769a3) [0x7f27aa5749a3]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
iseqeval+0x1f0) [0x7f27aa579e90]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x69b26) [0x7f27aa467b26]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
requiresafe+0x6df) [0x7f27aa46908f]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
autoloadload+0xa5) [0x7f27aa5535a5]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x16df7b) [0x7f27aa56bf7b]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x16fc2c) [0x7f27aa56dc2c]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1769a3) [0x7f27aa5749a3]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
iseqeval+0x1f0) [0x7f27aa579e90]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x69b26) [0x7f27aa467b26]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
requiresafe+0x6df) [0x7f27aa46908f]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
autoloadload+0xa5) [0x7f27aa5535a5]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x155621) [0x7f27aa553621]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x16de4d) [0x7f27aa56be4d]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x16fc2c) [0x7f27aa56dc2c]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1769a3) [0x7f27aa5749a3]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
iseqeval+0x1f0) [0x7f27aa579e90]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x69b26) [0x7f27aa467b26]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
requiresafe+0x6df) [0x7f27aa46908f]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x17aaa6) [0x7f27aa578aa6]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1705ae) [0x7f27aa56e5ae]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1769a3) [0x7f27aa5749a3]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
yield+0x47) [0x7f27aa579977]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rbaryeach+0x46) [0x7f27aa42d4f6]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x17aaa6) [0x7f27aa578aa6]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1705ae) [0x7f27aa56e5ae]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1769a3) [0x7f27aa5749a3]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rbyield+0x47) [0x7f27aa579977]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
aryeach+0x46) [0x7f27aa42d4f6]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x17aaa6) [0x7f27aa578aa6]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1705ae) [0x7f27aa56e5ae]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1769a3) [0x7f27aa5749a3]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
iseqeval+0x1f0) [0x7f27aa579e90]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x69b26) [0x7f27aa467b26]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
requiresafe+0x6df) [0x7f27aa46908f]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x17aaa6) [0x7f27aa578aa6]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1705ae) [0x7f27aa56e5ae]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1769a3) [0x7f27aa5749a3]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb
yield+0x47) [0x7f27aa579977]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rbobjtap+0x9) [0x7f27aa4adb79]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x17aaa6) [0x7f27aa578aa6]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1705ae) [0x7f27aa56e5ae]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1769a3) [0x7f27aa5749a3]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rbiseqeval+0x1f0) [0x7f27aa579e90]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x69b26) [0x7f27aa467b26]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rbrequiresafe+0x6df) [0x7f27aa46908f]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x17aaa6) [0x7f27aa578aa6]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1705ae) [0x7f27aa56e5ae]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x1769a3) [0x7f27aa5749a3]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rbiseqevalmain+0xb1) [0x7f27aa579f91]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(+0x663da) [0x7f27aa4643da]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(ruby
execnode+0x1d) [0x7f27aa46533d]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(ruby
runnode+0x1e) [0x7f27aa46754e]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/bin/ruby(main+0x4b) [0x40095b]
/lib/x86
64-linux-gnu/libc.so.6(_libcstart_main+0xff) [0x7f27a95a0eff]
/home/corne/.rvm/rubies/ruby-1.9.2-p180/bin/ruby() [0x400849]

[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

Aborted

#4 Updated by Aaron Patterson almost 3 years ago

  • ruby -v changed from ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0] to -

On Sat, Jun 11, 2011 at 07:07:31PM +0900, Corné Verbruggen wrote:

Issue #4821 has been updated by Corné Verbruggen.

Running rails 3.1.0.rc4 on ruby 1.9.2 on Ubuntu 11.04 64bit, I get segfaults that might point at the same problem. It happens randomly when starting the app. The line at the top of the ouput which ends with "[BUG] Segmentation fault" shows different source files and line numbers on each run.

Every now and then during unit testing I also got "*** glibc detected *** ruby: double free or corruption (fasttop)" errors. After searching around I found a question on Stackoverflow (http://stackoverflow.com/questions/2235355/ruby-glibc-coredump-double-free-or-corruption) with an answer that suggested to do set MALLOCCHECK to 2 with "export MALLOCCHECK=2". I don't know much about glibc and segfaults, but whenever I set MALLOCCHECK to 2, the segfaults don't happen anymore. No guarantee of course, because the error happens randomly, but after many trials I get the impression that segfaults don't happen after this setting.

Hi Corné,

Would it be possible to put your application somewhere? I can take a
look and try to reduce the problem case.

--
Aaron Patterson
http://tenderlovemaking.com/

#5 Updated by Corné Verbruggen almost 3 years ago

Hi Aaron,

thanks! I sent you an email with a url.

Corné

#6 Updated by Dmytrii Nagirniak almost 3 years ago

It looks like I have the same (or very similar issue) in Rails 3.1.0.rc1-4.
I was trying to run request specs using Capybara from source and sprockets.

Attaching the Gemfile.lock with all the dependencies used and the terminal output.

#7 Updated by Dmytrii Nagirniak almost 3 years ago

It seems the problem is related to the therubyracer gem. If I remove it, no errors occur. I'll lodge bug there. Would be nice if it could be confirmed.

#8 Updated by Charles Lowell almost 3 years ago

As of 0.9.0, therubyracer does not support multithreaded webservers. We're working on this, but in the meantime, there are some workarounds here:

https://github.com/cowboyd/therubyracer/issues/79

#9 Updated by Charles Lowell almost 3 years ago

I've written up the issue here to explain what's going on, and timing for a comprehensive fix.

http://blog.thefrontside.net/2011/06/13/therubyracer-isnt-threadsafe-yet/

#10 Updated by Corné Verbruggen almost 3 years ago

This does not seem to be the bug that I experience, because I don't use therubyracer. I thought it might be a similar bug in execjs, but even disabling the uglifier gem (so not using execjs anymore) does not solve the bug.

#11 Updated by Ilya Sokolov almost 3 years ago

We don't use "therubyracer". Bug in something like webrick. Because we switch webrick to unicorn server, and all works great.

#12 Updated by Corné Verbruggen almost 3 years ago

I also get the segfault when running "rails generate" and when running tests. So it does not seem to be solely a problem with webrick? Maybe the causes are multiple?

#13 Updated by Corné Verbruggen almost 3 years ago

Did some further tests to find out where this (for me) hard to understand segfaults came from. I still don't know the root cause, but now I do know that using devise together with meta_search (1.1.0.pre) resulted in the segfaults. Disabling either one of the two "solved" the problem.

I will create an issue at the meta_search project page and investigate this further, but am still wondering whether this isn't a bug (i.e. Segmentation Faults) in Ruby in the end?

#14 Updated by Yui NARUSE almost 3 years ago

  • Status changed from Open to Assigned
  • Assignee set to Aaron Patterson

#15 Updated by Christian Peters over 2 years ago

I also got segfaults on OSX 10.6 on mongrel and unicorn after updating the Gems sass, compass and adding a file splitter that reads in and writes a few files. - and the segfaults only came in requests where this file processing is done.

/Users/christianpeters/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.4/lib/activesupport/coreext/module/introspection.rb:79: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0]

#16 Updated by Aaron Patterson about 2 years ago

I've tried, but I can't seem to reproduce this. Christian, are you still seeing these issues? If so, could you post an application that reproduces the problem? I'm happy to do this off-list if it's more convenient.

#17 Updated by Yui NARUSE about 2 years ago

  • Status changed from Assigned to Feedback

#18 Updated by Yui NARUSE about 1 year ago

  • Target version changed from 1.9.2 to next minor

#19 Updated by Aaron Patterson 10 months ago

  • Status changed from Feedback to Rejected

I'm closing this since I haven't heard any feedback from the reporter. If you can post an isolated example, I would be happy to help out.

Thanks!

Also available in: Atom PDF