Project

General

Profile

Bug #14560

Segmentation fault near the end of large Rails test suite

Added by moveson (Mark Oveson) over 1 year ago. Updated over 1 year ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:85864]

Description

I am consistently getting a Segmentation Fault about 1800 tests into a test suite with about 1900 tests. This is for a Rails 5.1.5 project using Ruby 2.5.0.

Crash report follows:

/Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy/stub.rb:65: [BUG] Segmentation fault at 0x00007000034063b0
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]

-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:

* ~/Library/Logs/DiagnosticReports

* /Library/Logs/DiagnosticReports

for more details.

Don't forget to include the above Crash Report log file in bug reports.

-- Control frame information -----------------------------------------------
c:0093 p:---- s:0474 e:000473 CFUNC :define_singleton_method
c:0092 p:0008 s:0469 E:001408 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy/stub.rb:65 [FINISH]
c:0091 p:---- s:0465 e:000464 CFUNC :each
c:0090 p:0042 s:0461 E:001790 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy/stub.rb:64 [FINISH]
c:0089 p:---- s:0458 e:000457 CFUNC :instance_eval
c:0088 p:0031 s:0454 E:0006a0 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy/stub.rb:51
c:0087 p:0007 s:0444 e:000443 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy/stub.rb:36 [FINISH]
c:0086 p:---- s:0440 e:000439 CFUNC :tap
c:0085 p:0009 s:0436 e:000435 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy/stub.rb:35
c:0084 p:0131 s:0431 E:000b38 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/factory.rb:43
c:0083 p:0014 s:0420 e:000419 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/factory_runner.rb:29
c:0082 p:0038 s:0417 e:000416 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168
c:0081 p:0088 s:0411 e:000410 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/factory_runner.rb:28
c:0080 p:0023 s:0403 e:000402 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy_syntax_method_registrar.rb [FINISH]
c:0079 p:0017 s:0397 e:000396 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy_syntax_method_registrar.rb [FINISH]
c:0078 p:---- s:0394 e:000393 IFUNC
c:0077 p:---- s:0391 e:000390 CFUNC :times
c:0076 p:---- s:0388 e:000387 CFUNC :each
c:0075 p:---- s:0385 e:000384 CFUNC :map
c:0074 p:0048 s:0381 e:000380 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy_syntax_method_registrar.rb [FINISH]
c:0073 p:0011 s:0374 e:000373 BLOCK /Users/mmo/Development/OpenSplitTime/spec/factories/event.rb:62 [FINISH]
c:0072 p:---- s:0369 e:000368 CFUNC :each
c:0071 p:0115 s:0365 e:000364 BLOCK /Users/mmo/Development/OpenSplitTime/spec/factories/event.rb:61 [FINISH]
c:0070 p:---- s:0352 e:000351 CFUNC :instance_exec
c:0069 p:0078 s:0346 e:000345 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/callback.rb:14
c:0068 p:0011 s:0340 e:000339 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/callbacks_observer.rb:11 [FINISH]
c:0067 p:---- s:0336 e:000335 CFUNC :each
c:0066 p:0010 s:0332 e:000331 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/callbacks_observer.rb:10
c:0065 p:0012 s:0326 e:000325 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/2.5.0/observer.rb:197 [FINISH]
c:0064 p:---- s:0321 e:000320 CFUNC :each
c:0063 p:0026 s:0317 e:000316 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/2.5.0/observer.rb:196
c:0062 p:0013 s:0312 e:000311 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/evaluation.rb:24
c:0061 p:0024 s:0306 e:000305 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy/stub.rb:38 [FINISH]
c:0060 p:---- s:0302 e:000301 CFUNC :tap
c:0059 p:0009 s:0298 e:000297 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy/stub.rb:35
c:0058 p:0131 s:0293 E:002088 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/factory.rb:43
c:0057 p:0014 s:0282 e:000281 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/factory_runner.rb:29
c:0056 p:0038 s:0279 e:000278 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168
c:0055 p:0088 s:0273 e:000272 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/factory_runner.rb:28
c:0054 p:0023 s:0265 e:000264 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/factory_bot-4.8.2/lib/factory_bot/strategy_syntax_method_registrar.rb [FINISH]
c:0053 p:0014 s:0259 e:000258 BLOCK /Users/mmo/Development/OpenSplitTime/spec/view_models/live_effort_data_spec.rb:6 [FINISH]
c:0052 p:0008 s:0256 e:000255 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/memoized_helpers.rb:298
c:0051 p:0010 s:0253 e:000249 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/memoized_helpers.rb:157 [FINISH]
c:0050 p:---- s:0247 e:000246 CFUNC :fetch
c:0049 p:0011 s:0242 e:000241 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/memoized_helpers.rb:157
c:0048 p:0007 s:0239 e:000238 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-support-3.7.1/lib/rspec/support/reentrant_mutex.rb:23
c:0047 p:0008 s:0235 e:000234 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/memoized_helpers.rb:156 [FINISH]
c:0046 p:---- s:0232 e:000231 CFUNC :fetch
c:0045 p:0009 s:0227 e:000226 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/memoized_helpers.rb:155
c:0044 p:0011 s:0222 e:000221 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/memoized_helpers.rb:298 [FINISH]
c:0043 p:0005 s:0219 e:000218 BLOCK /Users/mmo/Development/OpenSplitTime/spec/view_models/live_effort_data_spec.rb:53 [FINISH]
c:0042 p:---- s:0213 e:000212 CFUNC :instance_exec
c:0041 p:0017 s:0208 e:000207 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:254
c:0040 p:0003 s:0203 e:000202 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:500
c:0039 p:0003 s:0200 e:000199 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:457
c:0038 p:0003 s:0197 e:000196 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:466
c:0037 p:0003 s:0194 e:000193 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:606 [FINISH]
c:0036 p:0018 s:0191 e:000190 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:342
c:0035 p:0011 s:0185 e:000184 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-rails-3.7.2/lib/rspec/rails/adapters.rb:127 [FINISH]
c:0034 p:---- s:0181 e:000180 CFUNC :instance_exec
c:0033 p:0013 s:0176 e:000175 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:447
c:0032 p:0012 s:0170 e:000169 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:375
c:0031 p:0011 s:0164 e:000163 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:608 [FINISH]
c:0030 p:0018 s:0161 e:000160 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:342
c:0029 p:0055 s:0155 E:001008 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:609
c:0028 p:0116 s:0148 E:000018 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:466
c:0027 p:0013 s:0141 E:001c38 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:457
c:0026 p:0024 s:0136 E:002588 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:500
c:0025 p:0116 s:0131 E:0011e8 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:251
c:0024 p:0049 s:0124 e:000123 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:628 [FINISH]
c:0023 p:---- s:0118 e:000117 CFUNC :map
c:0022 p:0015 s:0114 e:000113 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:624
c:0021 p:0067 s:0109 e:000108 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:590
c:0020 p:0008 s:0100 e:000099 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591 [FINISH]
c:0019 p:---- s:0096 e:000095 CFUNC :map
c:0018 p:0084 s:0092 e:000091 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591
c:0017 p:0008 s:0083 e:000082 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591 [FINISH]
c:0016 p:---- s:0079 e:000078 CFUNC :map
c:0015 p:0084 s:0075 e:000074 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591
c:0014 p:0009 s:0066 e:000065 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118 [FINISH]
c:0013 p:---- s:0062 e:000061 CFUNC :map
c:0012 p:0034 s:0058 e:000057 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118
c:0011 p:0021 s:0055 e:000054 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/configuration.rb:1926
c:0010 p:0008 s:0051 e:000050 BLOCK /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:113
c:0009 p:0010 s:0047 e:000046 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:79
c:0008 p:0022 s:0042 e:000041 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:112
c:0007 p:0019 s:0035 e:000034 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:87
c:0006 p:0072 s:0029 e:000028 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:71
c:0005 p:0020 s:0021 e:000020 METHOD /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:45
c:0004 p:0021 s:0016 e:000015 TOP /Users/mmo/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/exe/rspec:4 [FINISH]
c:0003 p:---- s:0013 e:000012 CFUNC :load
c:0002 p:0132 s:0008 E:001d20 EVAL /Users/mmo/.rbenv/versions/2.5.0/bin/rspec:23 [FINISH]
c:0001 p:0000 s:0003 E:001830 (none) [FINISH]


Files

ruby_2018-03-05-211755_Mark-Big-Good-Mac.crash (56.9 KB) ruby_2018-03-05-211755_Mark-Big-Good-Mac.crash Crash report from a similar segfault moveson (Mark Oveson), 03/06/2018 04:21 AM

Also available in: Atom PDF