Issue #16620 has been updated by jeremyevans0 (Jeremy Evans).

Status changed from Open to Feedback

Can you please run the failing code from the command line and include the output?  The awd files provided are binary files and I have no idea how to read them, and the diag file doesn't include the necessary information.

It appears that the exception occurs inside bootsnap, but I don't know where the `index` method is defined.  Could be `String#index` looking a the code, but I'm not sure.  With a corrupt string, that could result in a segfault.  Anyway, if you could reduce this to a minimal reproducible example, we might be able to help, but with the information given I don't think we can do anything.

----------------------------------------
Bug #16620: [BUG] Segmentation fault at 0x0000000103bae000
https://bugs.ruby-lang.org/issues/16620#change-84351

* Author: bart / myfaro.be (Bart Vanhoutte)
* Status: Feedback
* Priority: Normal
* ruby -v: ruby 2.5.7p206 (2019-10-01 revision 67816) [x86_64-darwin19]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
I have started to see this bug today.   I did not recently upgrade any gems.  The trigger seems to be the first find of an instance of the User model.   Here is the trace:

-- Control frame information -----------------------------------------------
c:0100 p:---- s:0728 e:000727 CFUNC  :index
c:0099 p:0007 s:0723 e:000722 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/bootsnap-1.4.5/lib/bootsnap/compile_cache/yaml.rb:11 [FINISH]
c:0098 p:---- s:0716 e:000715 CFUNC  :fetch
c:0097 p:0030 s:0709 e:000708 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/bootsnap-1.4.5/lib/bootsnap/compile_cache/yaml.rb:50 [FINISH]
c:0096 p:0012 s:0705 e:000704 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n/backend/base.rb:242
c:0095 p:0089 s:0699 e:000698 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n/backend/base.rb:225
c:0094 p:0007 s:0692 e:000691 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n/backend/base.rb:18 [FINISH]
c:0093 p:---- s:0688 e:000687 CFUNC  :each
c:0092 p:0028 s:0684 e:000683 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n/backend/base.rb:18
c:0091 p:0004 s:0679 e:000678 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n/backend/simple.rb:80
c:0090 p:0023 s:0675 e:000674 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n/backend/simple.rb:90
c:0089 p:0124 s:0666 e:000665 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n/backend/base.rb:32
c:0088 p:0015 s:0655 e:000654 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n/backend/fallbacks.rb:48 [FINISH]
c:0087 p:---- s:0651 e:000650 CFUNC  :catch
c:0086 p:0008 s:0646 e:000645 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n/backend/fallbacks.rb:47 [FINISH]
c:0085 p:---- s:0642 e:000641 CFUNC  :each
c:0084 p:0100 s:0638 e:000637 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n/backend/fallbacks.rb:45
c:0083 p:0034 s:0629 e:000628 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n.rb:206 [FINISH]
c:0082 p:---- s:0626 e:000625 CFUNC  :catch
c:0081 p:0069 s:0621 e:000620 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/i18n-1.8.2/lib/i18n.rb:202
c:0080 p:0046 s:0608 e:000607 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/mongoid-6.4.4/lib/mongoid/errors/mongoid_error.rb:49
c:0079 p:0021 s:0602 e:000601 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/mongoid-6.4.4/lib/mongoid/errors/mongoid_error.rb:64
c:0078 p:0012 s:0596 e:000595 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/mongoid-6.4.4/lib/mongoid/errors/mongoid_error.rb:23
c:0077 p:0010 s:0590 e:000588 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/mongoid-6.4.4/lib/mongoid/errors/invalid_find.rb:15 [FINISH]
c:0076 p:---- s:0585 e:000584 CFUNC  :new
c:0075 p:0013 s:0581 e:000579 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/mongoid-6.4.4/lib/mongoid/criteria/findable.rb:139
c:0074 p:0021 s:0576 e:000575 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/mongoid-6.4.4/lib/mongoid/criteria/findable.rb:40
c:0073 p:0011 s:0570 e:000569 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/mongoid-6.4.4/lib/mongoid/findable.rb:94
c:0072 p:0066 s:0565 E:001240 METHOD /Users/bart/RubymineProjects/myFaro_development/app/controllers/home_controller.rb:8
c:0071 p:0012 s:0551 E:001270 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_controller/metal/basic_implicit_render.rb:6
c:0070 p:0010 s:0545 E:0012a0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:194
c:0069 p:0031 s:0539 E:0012c8 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_controller/metal/rendering.rb:30
c:0068 p:0011 s:0534 E:000fc0 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:42
c:0067 p:0113 s:0531 E:001468 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:132
c:0066 p:0007 s:0521 E:0014a8 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:41
c:0065 p:0010 s:0516 E:002230 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_controller/metal/rescue.rb:22
c:0064 p:0011 s:0510 E:001790 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:34
c:0063 p:0011 s:0505 E:0025f0 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168
c:0062 p:0018 s:0502 E:001870 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb:23
c:0061 p:0027 s:0494 E:0017f0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168
c:0060 p:0104 s:0488 E:002260 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:32
c:0059 p:0100 s:0482 E:0018c0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_controller/metal/params_wrapper.rb:256
c:0058 p:0023 s:0474 E:0018f0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/mongoid-6.4.4/lib/mongoid/railties/controller_runtime.rb:19
c:0057 p:0081 s:0468 E:001928 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:134
c:0056 p:0061 s:0461 E:001960 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionview-5.2.3/lib/action_view/rendering.rb:32
c:0055 p:0236 s:0455 E:0019b8 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/rack-mini-profiler-1.1.4/lib/mini_profiler/profiling_methods.rb:104 [FINISH]
c:0054 p:0020 s:0445 E:0019f8 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_controller/metal.rb:191
c:0053 p:0042 s:0438 E:001a38 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_controller/metal.rb:252
c:0052 p:0011 s:0431 E:001a80 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:52
c:0051 p:0041 s:0423 E:001ac0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:34
c:0050 p:0135 s:0415 E:0023b8 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:52 [FINISH]
c:0049 p:---- s:0403 e:000402 CFUNC  :each
c:0048 p:0010 s:0399 E:002348 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:35
c:0047 p:0041 s:0394 E:0023f0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:840
c:0046 p:0043 s:0388 E:001660 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/pdfkit-0.8.4.1/lib/pdfkit/middleware.rb:20
c:0045 p:0009 s:0376 E:001688 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/pdfkit-0.8.4.1/lib/pdfkit/middleware.rb:12
c:0044 p:0043 s:0371 E:0016f0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/pdfkit-0.8.4.1/lib/pdfkit/middleware.rb:20
c:0043 p:0009 s:0359 E:001718 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/pdfkit-0.8.4.1/lib/pdfkit/middleware.rb:12
c:0042 p:0020 s:0354 E:002420 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/warden-1.2.8/lib/warden/manager.rb:36 [FINISH]
c:0041 p:---- s:0351 e:000350 CFUNC  :catch
c:0040 p:0064 s:0346 E:001750 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/warden-1.2.8/lib/warden/manager.rb:34
c:0039 p:0036 s:0340 E:001798 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/rack-2.1.1/lib/rack/tempfile_reaper.rb:17
c:0038 p:0008 s:0331 E:0017f8 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/rack-2.1.1/lib/rack/etag.rb:27
c:0037 p:0049 s:0320 E:001118 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/rack-2.1.1/lib/rack/conditional_get.rb:27
c:0036 p:0008 s:0311 E:001160 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/rack-2.1.1/lib/rack/head.rb:14
c:0035 p:0024 s:0303 E:0011c0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/http/content_security_policy.rb:18
c:0034 p:0030 s:0291 E:001218 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/rack-2.1.1/lib/rack/session/abstract/id.rb:277
c:0033 p:0006 s:0280 E:001248 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/rack-2.1.1/lib/rack/session/abstract/id.rb:271
c:0032 p:0024 s:0275 E:0012a0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/middleware/cookies.rb:670
c:0031 p:0009 s:0265 E:001820 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:28
c:0030 p:0029 s:0262 E:001d38 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:98
c:0029 p:0010 s:0253 E:0012d8 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:26
c:0028 p:0016 s:0246 E:0009e0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14
c:0027 p:0008 s:0238 E:000a10 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/better_errors-2.5.1/lib/better_errors/middleware.rb:84
c:0026 p:0027 s:0232 E:002178 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/better_errors-2.5.1/lib/better_errors/middleware.rb:79
c:0025 p:0014 s:0227 E:0021a8 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/better_errors-2.5.1/lib/better_errors/middleware.rb:57
c:0024 p:0024 s:0222 E:002208 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:61
c:0023 p:0024 s:0211 E:002248 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/middleware/show_exceptions.rb:33
c:0022 p:0042 s:0204 E:000460 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/railties-5.2.3/lib/rails/rack/logger.rb:38
c:0021 p:0009 s:0194 E:000a90 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/railties-5.2.3/lib/rails/rack/logger.rb:26
c:0020 p:0004 s:0191 E:000870 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71
c:0019 p:0013 s:0188 E:002340 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:28
c:0018 p:0012 s:0182 E:0022d8 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71
c:0017 p:0041 s:0177 E:002280 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/railties-5.2.3/lib/rails/rack/logger.rb:26
c:0016 p:0053 s:0171 E:002380 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/middleware/remote_ip.rb:81
c:0015 p:0039 s:0165 E:0023b0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/middleware/request_id.rb:27
c:0014 p:0091 s:0159 E:0007b0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/rack-2.1.1/lib/rack/method_override.rb:24
c:0013 p:0020 s:0153 E:000800 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/rack-2.1.1/lib/rack/runtime.rb:24
c:0012 p:0016 s:0143 E:000840 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14
c:0011 p:0083 s:0135 E:000880 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/middleware/static.rb:127
c:0010 p:0008 s:0127 E:0008e0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/rack-2.1.1/lib/rack/sendfile.rb:113
c:0009 p:1050 s:0115 E:0009d8 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/rack-mini-profiler-1.1.4/lib/mini_profiler/profiler.rb:296
c:0008 p:0083 s:0084 E:001730 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/actionpack-5.2.3/lib/action_dispatch/middleware/static.rb:127
c:0007 p:0020 s:0076 E:0013b0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/railties-5.2.3/lib/rails/engine.rb:524
c:0006 p:0026 s:0070 E:000668 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/puma-4.3.1/lib/puma/configuration.rb:228
c:0005 p:0263 s:0065 E:0014f8 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/puma-4.3.1/lib/puma/server.rb:681
c:0004 p:0029 s:0040 E:001ec0 METHOD /Users/bart/.rvm/gems/ruby-2.5.7/gems/puma-4.3.1/lib/puma/server.rb:472
c:0003 p:0065 s:0026 E:000a38 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/puma-4.3.1/lib/puma/server.rb:328 [FINISH]
c:0002 p:0107 s:0016 E:001f40 BLOCK  /Users/bart/.rvm/gems/ruby-2.5.7/gems/puma-4.3.1/lib/puma/thread_pool.rb:134 [FINISH]
c:0001 p:---- s:0003 e:000002 (none) [FINISH]


---Files--------------------------------
awdd_2020-02-10-113648-1_Barts-MacBook-Pro.awd (4.16 KB)
rubymine_2020-02-10-115409_Barts-MacBook-Pro.wakeups_resource.diag (89.8 KB)
awdd_2020-02-10-113648_Barts-MacBook-Pro.awd (11.7 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>