-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/criteria.rb:596: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
-- Control frame information -----------------------------------------------
c:0070 p:---- s:0315 b:0315 l:000314 d:000314 CFUNC :dup
c:0069 p:0018 s:0312 b:0312 l:000311 d:000311 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/criteria.rb:596
c:0068 p:---- s:0308 b:0308 l:000307 d:000307 FINISH
c:0067 p:---- s:0306 b:0306 l:000305 d:000305 CFUNC :initialize_clone
c:0066 p:---- s:0304 b:0304 l:000303 d:000303 CFUNC :clone
c:0065 p:0011 s:0301 b:0301 l:000300 d:000300 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/criterion/scoping.rb:145
c:0064 p:0017 s:0297 b:0297 l:000296 d:000296 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/scoping.rb:172
c:0063 p:0011 s:0294 b:0294 l:000293 d:000293 METHOD (eval):2
c:0062 p:0035 s:0289 b:0287 l:000286 d:000286 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/referenced/many.rb:527
c:0061 p:0022 s:0281 b:0281 l:000280 d:000280 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/metadata.rb:153
c:0060 p:0114 s:0275 b:0275 l:000274 d:000274 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/builders/referenced/many.rb:20
c:0059 p:0040 s:0270 b:0270 l:000269 d:000269 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/accessors.rb:43
c:0058 p:0015 s:0263 b:0263 l:000262 d:000262 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/accessors.rb:26
c:0057 p:0033 s:0256 b:0256 l:000758 d:000255 BLOCK /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/accessors.rb:156
c:0056 p:0025 s:0254 b:0254 l:000253 d:000253 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/threaded/lifecycle.rb:125
c:0055 p:0009 s:0251 b:0251 l:000758 d:000250 BLOCK /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/accessors.rb:156
c:0054 p:0025 s:0249 b:0249 l:000248 d:000248 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/threaded/lifecycle.rb:84
c:0053 p:0069 s:0246 b:0246 l:000758 d:000245 LAMBDA /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/accessors.rb:155
c:0052 p:---- s:0240 b:0240 l:000239 d:000239 FINISH
c:0051 p:0054 s:0238 b:0238 l:000237 d:000237 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/validations.rb:53
c:0050 p:0014 s:0232 b:0232 l:000222 d:000231 BLOCK /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validator.rb:151
c:0049 p:---- s:0228 b:0228 l:000227 d:000227 FINISH
c:0048 p:---- s:0226 b:0226 l:000225 d:000225 CFUNC :each
c:0047 p:0017 s:0223 b:0223 l:000222 d:000222 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validator.rb:150
c:0046 p:0022 s:0219 b:0219 l:000218 d:000218 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:310
c:0045 p:0078 s:0215 b:0215 l:000214 d:000214 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:418
c:0044 p:0115 s:0209 b:0209 l:000208 d:000208 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405
c:0043 p:0027 s:0200 b:0200 l:000199 d:000199 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385
c:0042 p:0024 s:0195 b:0195 l:000194 d:000194 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81
c:0041 p:0034 s:0189 b:0189 l:000188 d:000188 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/callbacks.rb:98
c:0040 p:0013 s:0183 b:0183 l:000182 d:000182 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validations.rb:226
c:0039 p:0008 s:0180 b:0180 l:001158 d:000179 BLOCK /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validations/callbacks.rb:53
c:0038 p:0085 s:0178 b:0178 l:000177 d:000177 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:414
c:0037 p:0115 s:0172 b:0172 l:000171 d:000171 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405
c:0036 p:0027 s:0163 b:0163 l:000162 d:000162 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385
c:0035 p:0024 s:0158 b:0158 l:000157 d:000157 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81
c:0034 p:0034 s:0152 b:0152 l:000151 d:000151 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/callbacks.rb:98
c:0033 p:0013 s:0146 b:0146 l:001158 d:001158 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validations/callbacks.rb:53
c:0032 p:0059 s:0143 b:0143 l:000142 d:000142 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validations.rb:193
c:0031 p:0038 s:0138 b:0138 l:000137 d:000137 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/validations.rb:77
c:0030 p:0016 s:0134 b:0134 l:000133 d:000133 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validations.rb:201
c:0029 p:0028 s:0130 b:0130 l:000129 d:000129 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/persistence/insertion.rb:22
c:0028 p:0011 s:0125 b:0125 l:000568 d:000568 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/persistence/operations/insert.rb:26
c:0027 p:0030 s:0122 b:0122 l:000121 d:000121 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/persistence.rb:50
c:0026 p:0028 s:0118 b:0118 l:000117 d:000117 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/persistence.rb:79
c:0025 p:1026 s:0114 b:0114 l:0020d0 d:000113 BLOCK ./aftership_csv.rb:148
c:0024 p:0028 s:0107 b:0107 l:000106 d:000106 METHOD /Users/Dante/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/csv.rb:1792
c:0023 p:0064 s:0103 b:0103 l:000102 d:000102 METHOD /Users/Dante/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/csv.rb:1384
c:0022 p:0277 s:0097 b:0097 l:0020d0 d:0020d0 METHOD ./aftership_csv.rb:68
c:0021 p:0048 s:0085 b:0085 l:001958 d:000084 BLOCK ./aftership_csv.rb:34
c:0020 p:---- s:0082 b:0082 l:000081 d:000081 FINISH
c:0019 p:---- s:0080 b:0080 l:000079 d:000079 CFUNC :call
c:0018 p:0014 s:0076 b:0076 l:0002e0 d:000075 BLOCK /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/connection.rb:243
c:0017 p:---- s:0073 b:0073 l:000072 d:000072 FINISH
c:0016 p:---- s:0071 b:0071 l:000070 d:000070 CFUNC :call
c:0015 p:0136 s:0067 b:0067 l:000066 d:000066 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/eventmachine-1.0.0.rc.4/lib/em/deferrable.rb:151
c:0014 p:0015 s:0060 b:0060 l:000059 d:000059 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/eventmachine-1.0.0.rc.4/lib/em/deferrable.rb:191
c:0013 p:0091 s:0056 b:0056 l:000055 d:000055 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/handlers/reserved.rb:20
c:0012 p:0164 s:0046 b:0046 l:000034 d:000045 BLOCK /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/connection.rb:365
c:0011 p:---- s:0040 b:0040 l:000039 d:000039 FINISH
c:0010 p:---- s:0038 b:0038 l:000037 d:000037 CFUNC :each
c:0009 p:0119 s:0035 b:0035 l:000034 d:000034 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/connection.rb:349
c:0008 p:0015 s:0026 b:0026 l:000025 d:000025 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/beanstalk_connection.rb:12
c:0007 p:---- s:0022 b:0022 l:000021 d:000021 FINISH
c:0006 p:---- s:0020 b:0020 l:000019 d:000019 CFUNC :run_machine
c:0005 p:0325 s:0017 b:0017 l:000016 d:000016 METHOD /Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/eventmachine-1.0.0.rc.4/lib/eventmachine.rb:187
c:0004 p:0029 s:0010 b:0010 l:001958 d:001958 METHOD ./aftership_csv.rb:25
c:0003 p:0094 s:0007 b:0007 l:002208 d:002290 EVAL ./aftership_csv.rb:190
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:002208 d:002208 TOP
-- Ruby level backtrace information ----------------------------------------
./aftership_csv.rb:190:in `<main>'
./aftership_csv.rb:25:in `run'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/eventmachine-1.0.0.rc.4/lib/eventmachine.rb:187:in `run'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/eventmachine-1.0.0.rc.4/lib/eventmachine.rb:187:in `run_machine'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/beanstalk_connection.rb:12:in `receive_data'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/connection.rb:349:in `received'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/connection.rb:349:in `each'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/connection.rb:365:in `block in received'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/handlers/reserved.rb:20:in `handle'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/eventmachine-1.0.0.rc.4/lib/em/deferrable.rb:191:in `succeed'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/eventmachine-1.0.0.rc.4/lib/em/deferrable.rb:151:in `set_deferred_status'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/eventmachine-1.0.0.rc.4/lib/em/deferrable.rb:151:in `call'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/connection.rb:243:in `block (2 levels) in each_job'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/em-jack-0.1.5/lib/em-jack/connection.rb:243:in `call'
./aftership_csv.rb:34:in `block (2 levels) in run'
./aftership_csv.rb:68:in `process'
/Users/Dante/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/csv.rb:1384:in `parse'
/Users/Dante/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/csv.rb:1792:in `each'
./aftership_csv.rb:148:in `block in process'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/persistence.rb:79:in `save'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/persistence.rb:50:in `insert'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/persistence/operations/insert.rb:26:in `persist'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/persistence/insertion.rb:22:in `prepare'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validations.rb:201:in `invalid?'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/validations.rb:77:in `valid?'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validations.rb:193:in `valid?'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validations/callbacks.rb:53:in `run_validations!'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/callbacks.rb:98:in `run_callbacks'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:414:in `_run__2181932985860373200__validation__3978672235902363496__callbacks'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validations.rb:226:in `run_validations!'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/callbacks.rb:98:in `run_callbacks'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385:in `_run_validate_callbacks'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:418:in `_run__2181932985860373200__validate__3978672235902363496__callbacks'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:310:in `_callback_before_375'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validator.rb:150:in `validate'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validator.rb:150:in `each'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/activemodel-3.2.6/lib/active_model/validator.rb:151:in `block in validate'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/validations.rb:53:in `read_attribute_for_validation'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/accessors.rb:155:in `block in getter'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/accessors.rb:156:in `block (2 levels) in getter'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/threaded/lifecycle.rb:125:in `_loading'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/accessors.rb:156:in `block (3 levels) in getter'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/accessors.rb:26:in `__build__'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/accessors.rb:43:in `create_relation'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/builders/referenced/many.rb:20:in `build'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/metadata.rb:153:in `criteria'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/relations/referenced/many.rb:527:in `criteria'
(eval):2:in `where'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/scoping.rb:172:in `with_default_scope'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/criterion/scoping.rb:145:in `with_default_scope'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/criterion/scoping.rb:145:in `clone'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/criterion/scoping.rb:145:in `initialize_clone'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/criteria.rb:596:in `initialize_copy'
/Users/Dante/.rvm/gems/ruby-1.9.3-p194@global/gems/mongoid-3.0.1/lib/mongoid/criteria.rb:596:in `dup'
-- C level backtrace information -------------------------------------------
See Crash Report log file under ~/Library/Logs/CrashReporter or
/Library/Logs/CrashReporter, for the more detail of.
-- Other runtime information -----------------------------------------------
any thoughts on this?