brianmario/mysql2

Segmentation faults randomly when running test on CircleCI (Rails, Minitest)

dichvti opened this issue · 0 comments

Overview

We are running Rails test on CircleCI pipeline that got the segmentation faults error. It doesn't alway occur but randomly after some pipelines.

We saw that issue before when running with Ruby 2.6.5, Rails 6.0.3 and Mysql 5.7 with gem mysql2 0.5.2, but lately it seems to happen more often when we upgrade to Ruby 3.2.2, Rails 7.0.4 and Mysql 8.0 with gem mysql2 0.5.5.

Here is the Dockerfile for image that the tests running on

FROM ruby:3.2.2

ARG RAILS_ENV

RUN apt-get update -qq \
    && apt-get upgrade -y \
    && default-libmysqlclient-dev

RUN mkdir -p /myapp
WORKDIR /myapp

COPY Gemfile* /myapp/
ENV BUNDLER_VERSION 2.4.1
RUN gem install bundler -v ${BUNDLER_VERSION} \
    && if [ -n "$RAILS_ENV" ]; then \
          bundle install --without development test -j20; \
       else \
          bundle install -j20; \
       fi

Error log

We randomly get this error when running bundle exec rails test

.................../root/project/vendor/bundle/ruby/3.2.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:151: [BUG] Segmentation fault at 0x00000000ba1ca09e
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0059 p:---- s:0337 e:000336 CFUNC  :_query
c:0058 p:0012 s:0331 e:000330 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:151 [FINISH]
c:0057 p:---- s:0328 e:000327 CFUNC  :handle_interrupt
c:0056 p:0011 s:0323 e:000322 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:150
c:0055 p:0008 s:0317 e:000316 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_mysql_adapter.r
c:0054 p:0022 s:0314 e:000313 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/share_lock.rb:187
c:0053 p:0011 s:0304 e:000303 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/dependencies/interlock.rb:41
c:0052 p:0007 s:0299 e:000298 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_mysql_adapter.r [FINISH]
c:0051 p:---- s:0296 e:000295 CFUNC  :handle_interrupt
c:0050 p:0015 s:0291 e:000290 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.r [FINISH]
c:0049 p:---- s:0288 e:000287 CFUNC  :handle_interrupt
c:0048 p:0007 s:0283 e:000282 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.r
c:0047 p:0010 s:0278 e:000277 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:765
c:0046 p:0023 s:0274 e:000273 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/notifications/instrumenter.rb:24
c:0045 p:0036 s:0266 e:000265 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:756
c:0044 p:0020 s:0254 e:000253 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_mysql_adapter.r
c:0043 p:0032 s:0246 e:000245 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/mysql/database_statement
c:0042 p:0025 s:0238 e:000237 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/mysql/database_statement
c:0041 p:0010 s:0230 e:000229 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/mysql/database_statement
c:0040 p:0011 s:0224 e:000222 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/database_statem
c:0039 p:0005 s:0217 e:000216 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_mysql_adapter.r
c:0038 p:0004 s:0212 e:000211 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/database_statem
c:0037 p:0023 s:0209 e:000208 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/mysql/database_statement
c:0036 p:0030 s:0204 e:000203 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/database_statem
c:0035 p:0024 s:0195 E:000f18 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/fixtures.rb:630 [FINISH]
c:0034 p:---- s:0189 e:000188 CFUNC  :each
c:0033 p:0012 s:0185 E:000908 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/fixtures.rb:621
c:0032 p:0024 s:0178 e:000177 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/fixtures.rb:607
c:0031 p:0073 s:0168 E:000020 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/fixtures.rb:567
c:0030 p:0015 s:0156 e:000155 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/test_fixtures.rb:275
c:0029 p:0111 s:0151 E:000e78 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/test_fixtures.rb:125
c:0028 p:0003 s:0146 e:000145 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/test_fixtures.rb:10
c:0027 p:0004 s:0142 e:000141 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/spec.rb:330
c:0026 p:0004 s:0138 e:000137 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/testing/setup_and_teardown.rb:40
c:0025 p:0005 s:0134 e:000133 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:99 [FINISH]
c:0024 p:---- s:0130 e:000129 CFUNC  :each
c:0023 p:0005 s:0126 e:000125 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:98
c:0022 p:0002 s:0123 e:000122 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:199
c:0021 p:0004 s:0118 e:000117 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:97
c:0020 p:0008 s:0115 e:000114 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:296
c:0019 p:0004 s:0110 e:000109 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:96
c:0018 p:0022 s:0107 e:000106 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:391
c:0017 p:0027 s:0099 E:0024d8 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:247
c:0016 p:0004 s:0092 E:001200 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:95
c:0015 p:0008 s:0088 e:000087 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:1051
c:0014 p:0019 s:0081 e:000079 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:365
c:0013 p:0009 s:0073 e:000072 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:352 [FINISH]
c:0012 p:---- s:0069 e:000068 CFUNC  :each
c:0011 p:0005 s:0065 e:000064 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:351
c:0010 p:0022 s:0062 e:000061 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:391
c:0009 p:0019 s:0054 E:000668 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:378
c:0008 p:0096 s:0047 E:002698 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:350
c:0007 p:0030 s:0038 e:000037 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4.3/lib/rails/test_unit/line_filtering.rb:10
c:0006 p:0008 s:0032 e:000031 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:182 [FINISH]
c:0005 p:---- s:0028 e:000027 CFUNC  :map
c:0004 p:0025 s:0024 e:000023 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:182
c:0003 p:0133 s:0015 e:000014 METHOD /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:159
c:0002 p:0045 s:0008 E:0003f0 BLOCK  /root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:83 [FINISH]
c:0001 p:0000 s:0003 E:000630 DUMMY  [FINISH]

-- Ruby level backtrace information ----------------------------------------
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:83:in `block in autorun'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:159:in `run'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:182:in `__run'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:182:in `map'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:182:in `block in __run'
/root/project/vendor/bundle/ruby/3.2.0/gems/railties-7.0.4.3/lib/rails/test_unit/line_filtering.rb:10:in `run'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:350:in `run'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:378:in `with_info_handler'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:391:in `on_signal'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:351:in `block in run'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:351:in `each'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:352:in `block (2 levels) in run'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:365:in `run_one_method'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:1051:in `run_one_method'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:95:in `run'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:247:in `with_info_handler'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:391:in `on_signal'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:96:in `block in run'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest.rb:296:in `time_it'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:97:in `block (2 levels) in run'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:199:in `capture_exceptions'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:98:in `block (3 levels) in run'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:98:in `each'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/test.rb:99:in `block (4 levels) in run'
/root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/testing/setup_and_teardown.rb:40:in `before_setup'
/root/project/vendor/bundle/ruby/3.2.0/gems/minitest-5.18.0/lib/minitest/spec.rb:330:in `before_setup'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/test_fixtures.rb:10:in `before_setup'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/test_fixtures.rb:125:in `setup_fixtures'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/test_fixtures.rb:275:in `load_fixtures'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/fixtures.rb:567:in `create_fixtures'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/fixtures.rb:607:in `read_and_insert'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/fixtures.rb:621:in `insert'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/fixtures.rb:621:in `each'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/fixtures.rb:630:in `block in insert'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:406:in `insert_fixtures_set'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/mysql/database_statements.rb:132:in `with_multi_statements'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:407:in `block in insert_fixtures_set'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:184:in `disable_referential_integrity'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:95:in `query_value'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/mysql/database_statements.rb:19:in `query'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/mysql/database_statements.rb:47:in `execute'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/mysql/database_statements.rb:96:in `raw_execute'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:630:in `raw_execute'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:756:in `log'
/root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_adapter.rb:765:in `block in log'
/root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:631:in `block in raw_execute'
/root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/root/project/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/root/project/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:632:in `block (2 levels) in raw_execute'
/root/project/vendor/bundle/ruby/3.2.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in `query'
/root/project/vendor/bundle/ruby/3.2.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in `handle_interrupt'
/root/project/vendor/bundle/ruby/3.2.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in `block in query'
/root/project/vendor/bundle/ruby/3.2.0/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in `_query'

-- Machine register context ------------------------------------------------
 RIP: 0x00007fd2dcf7c305 RBP: 0x00007ffdc211df20 RSP: 0x00007ffdc211dea0
 RAX: 0x000055ddba1ca09f RBX: 0x00000000ba1ca09e RCX: 0x000055ddb951ff78
 RDX: 0x000000000000000c RDI: 0x000055ddb9520468 RSI: 0x0000000000000000
  R8: 0x000055ddb9520468  R9: 0x00007fd2e33debe0 R10: 0x0000000000000008
 R11: 0x0000000000000000 R12: 0x0000000000000018 R13: 0x000055ddba1ca028
 R14: 0x0000000000000010 R15: 0x000055ddb951ff58 EFL: 0x0000000000010246

-- C level backtrace information -------------------------------------------
/usr/local/lib/libruby.so.3.2(rb_print_backtrace+0x11) [0x7fd2e39962bf] vm_dump.c:785
/usr/local/lib/libruby.so.3.2(rb_vm_bugreport) vm_dump.c:1080
/usr/local/lib/libruby.so.3.2(rb_bug_for_fatal_signal+0xf0) [0x7fd2e37918a0] error.c:813
/usr/local/lib/libruby.so.3.2(sigsegv+0x49) [0x7fd2e38e8619] signal.c:964
/lib/x86_64-linux-gnu/libpthread.so.0(__restore_rt+0x0) [0x7fd2e33f7140]
/usr/lib/x86_64-linux-gnu/libmariadb.so.3(0x7fd2dcf7c305) [0x7fd2dcf7c305]
/usr/lib/x86_64-linux-gnu/libmariadb.so.3(0x7fd2dcf7d173) [0x7fd2dcf7d173]
/usr/lib/x86_64-linux-gnu/libmariadb.so.3(mysql_read_query_result+0xe) [0x7fd2dcf7554e]
/root/project/vendor/bundle/ruby/3.2.0/gems/mysql2-0.5.5/lib/mysql2/mysql2.so(nogvl_read_query_result+0x9) [0x7fd2dcfb03b9] client.c:620
/usr/local/lib/libruby.so.3.2(rb_nogvl+0xd1) [0x7fd2e3935151] thread.c:1548
/root/project/vendor/bundle/ruby/3.2.0/gems/mysql2-0.5.5/lib/mysql2/mysql2.so(rb_mysql_client_async_result+0x5e) [0x7fd2dcfb367e] client.c:667
/usr/local/lib/libruby.so.3.2(rb_ensure+0x113) [0x7fd2e379b013] eval.c:1007
/root/project/vendor/bundle/ruby/3.2.0/gems/mysql2-0.5.5/lib/mysql2/mysql2.so(rb_mysql_query+0x249) [0x7fd2dcfb1699] client.c:884
/usr/local/lib/libruby.so.3.2(vm_cfp_consistent_p+0x0) [0x7fd2e396b35c] vm_insnhelper.c:3268
/usr/local/lib/libruby.so.3.2(vm_call_cfunc_with_frame) vm_insnhelper.c:3270
/usr/local/lib/libruby.so.3.2(vm_sendish+0x0) [0x7fd2e397b539] vm_insnhelper.c:5080
/usr/local/lib/libruby.so.3.2(vm_exec_core) insns.def:820
/usr/local/lib/libruby.so.3.2(rb_vm_exec+0xbb) [0x7fd2e3980b2b] vm.c:2374
/usr/local/lib/libruby.so.3.2(rb_yield+0x1e2) [0x7fd2e3985722] vm.c:1398
/usr/local/lib/libruby.so.3.2(rb_thread_s_handle_interrupt+0x150) [0x7fd2e39335f0] thread.c:2143
/usr/local/lib/libruby.so.3.2(vm_cfp_consistent_p+0x0) [0x7fd2e396b35c] vm_insnhelper.c:3268
/usr/local/lib/libruby.so.3.2(vm_call_cfunc_with_frame) vm_insnhelper.c:3270
/usr/local/lib/libruby.so.3.2(vm_sendish+0xcc) [0x7fd2e3970f9c] vm_insnhelper.c:5080
/usr/local/lib/libruby.so.3.2(vm_exec_core+0x1cf) [0x7fd2e397b60f] insns.def:801
/usr/local/lib/libruby.so.3.2(rb_vm_exec+0xbb) [0x7fd2e3980b2b] vm.c:2374
/usr/local/lib/libruby.so.3.2(rb_yield+0x1e2) [0x7fd2e3985722] vm.c:1398
/usr/local/lib/libruby.so.3.2(rb_thread_s_handle_interrupt+0x150) [0x7fd2e39335f0] thread.c:2143
/usr/local/lib/libruby.so.3.2(vm_cfp_consistent_p+0x0) [0x7fd2e396b35c] vm_insnhelper.c:3268
/usr/local/lib/libruby.so.3.2(vm_call_cfunc_with_frame) vm_insnhelper.c:3270
/usr/local/lib/libruby.so.3.2(vm_sendish+0xcc) [0x7fd2e3970f9c] vm_insnhelper.c:5080
/usr/local/lib/libruby.so.3.2(vm_exec_core+0x1cf) [0x7fd2e397b60f] insns.def:801
/usr/local/lib/libruby.so.3.2(rb_vm_exec+0xbb) [0x7fd2e3980b2b] vm.c:2374
/usr/local/lib/libruby.so.3.2(rb_yield+0x1e2) [0x7fd2e3985722] vm.c:1398
/usr/local/lib/libruby.so.3.2(rb_thread_s_handle_interrupt+0x150) [0x7fd2e39335f0] thread.c:2143
/usr/local/lib/libruby.so.3.2(vm_cfp_consistent_p+0x0) [0x7fd2e396b35c] vm_insnhelper.c:3268
/usr/local/lib/libruby.so.3.2(vm_call_cfunc_with_frame) vm_insnhelper.c:3270
/usr/local/lib/libruby.so.3.2(vm_sendish+0xcc) [0x7fd2e3970f9c] vm_insnhelper.c:5080
/usr/local/lib/libruby.so.3.2(vm_exec_core+0x1cf) [0x7fd2e397b60f] insns.def:801
/usr/local/lib/libruby.so.3.2(rb_vm_exec+0xbb) [0x7fd2e3980b2b] vm.c:2374
/usr/local/lib/libruby.so.3.2(each_pair_i_fast+0x33) [0x7fd2e37c3d43] hash.c:3146
/usr/local/lib/libruby.so.3.2(hash_iter_status_check+0x0) [0x7fd2e37c72f4] hash.c:1373
/usr/local/lib/libruby.so.3.2(hash_ar_foreach_iter) hash.c:1376
/usr/local/lib/libruby.so.3.2(ar_foreach_check) hash.c:985
/usr/local/lib/libruby.so.3.2(hash_foreach_call) hash.c:1506
/usr/local/lib/libruby.so.3.2(rb_ensure+0x113) [0x7fd2e379b013] eval.c:1007
/usr/local/lib/libruby.so.3.2(rb_hash_foreach+0x5a) [0x7fd2e37cab56] hash.c:1534
/usr/local/lib/libruby.so.3.2(rb_hash_foreach) hash.c:1520
/usr/local/lib/libruby.so.3.2(rb_hash_each_pair+0x3f) [0x7fd2e37cb6cf] hash.c:3183
/usr/local/lib/libruby.so.3.2(vm_cfp_consistent_p+0x0) [0x7fd2e396b35c] vm_insnhelper.c:3268
/usr/local/lib/libruby.so.3.2(vm_call_cfunc_with_frame) vm_insnhelper.c:3270
/usr/local/lib/libruby.so.3.2(vm_sendish+0xcc) [0x7fd2e3970f9c] vm_insnhelper.c:5080
/usr/local/lib/libruby.so.3.2(vm_exec_core+0x1cf) [0x7fd2e397b60f] insns.def:801
/usr/local/lib/libruby.so.3.2(rb_vm_exec+0xbb) [0x7fd2e3980b2b] vm.c:2374
/usr/local/lib/libruby.so.3.2(rb_yield+0x1e2) [0x7fd2e3985722] vm.c:1398
/usr/local/lib/libruby.so.3.2(RB_FL_TEST_RAW+0x0) [0x7fd2e36f944c] array.c:2740
/usr/local/lib/libruby.so.3.2(RB_FL_ANY_RAW) ./include/ruby/internal/fl_type.h:552
/usr/local/lib/libruby.so.3.2(rb_array_len) ./include/ruby/internal/core/rarray.h:321
/usr/local/lib/libruby.so.3.2(rb_ary_each) array.c:2739
/usr/local/lib/libruby.so.3.2(vm_cfp_consistent_p+0x0) [0x7fd2e396b35c] vm_insnhelper.c:3268
/usr/local/lib/libruby.so.3.2(vm_call_cfunc_with_frame) vm_insnhelper.c:3270
/usr/local/lib/libruby.so.3.2(vm_sendish+0xcc) [0x7fd2e3970f9c] vm_insnhelper.c:5080
/usr/local/lib/libruby.so.3.2(vm_exec_core+0x1cf) [0x7fd2e397b60f] insns.def:801
/usr/local/lib/libruby.so.3.2(rb_vm_exec+0xbb) [0x7fd2e3980b2b] vm.c:2374
/usr/local/lib/libruby.so.3.2(rb_yield+0x1e2) [0x7fd2e3985722] vm.c:1398
/usr/local/lib/libruby.so.3.2(RB_FL_TEST_RAW+0x0) [0x7fd2e36f944c] array.c:2740
/usr/local/lib/libruby.so.3.2(RB_FL_ANY_RAW) ./include/ruby/internal/fl_type.h:552
/usr/local/lib/libruby.so.3.2(rb_array_len) ./include/ruby/internal/core/rarray.h:321
/usr/local/lib/libruby.so.3.2(rb_ary_each) array.c:2739
/usr/local/lib/libruby.so.3.2(vm_cfp_consistent_p+0x0) [0x7fd2e396b35c] vm_insnhelper.c:3268
/usr/local/lib/libruby.so.3.2(vm_call_cfunc_with_frame) vm_insnhelper.c:3270
/usr/local/lib/libruby.so.3.2(vm_sendish+0xcc) [0x7fd2e3970f9c] vm_insnhelper.c:5080
/usr/local/lib/libruby.so.3.2(vm_exec_core+0x1cf) [0x7fd2e397b60f] insns.def:801
/usr/local/lib/libruby.so.3.2(rb_vm_exec+0xbb) [0x7fd2e3980b2b] vm.c:2374
/usr/local/lib/libruby.so.3.2(rb_yield+0x1e2) [0x7fd2e3985722] vm.c:1398
/usr/local/lib/libruby.so.3.2(rb_ary_collect+0x5c) [0x7fd2e36ff9ec] array.c:3834
/usr/local/lib/libruby.so.3.2(vm_cfp_consistent_p+0x0) [0x7fd2e396b35c] vm_insnhelper.c:3268
/usr/local/lib/libruby.so.3.2(vm_call_cfunc_with_frame) vm_insnhelper.c:3270
/usr/local/lib/libruby.so.3.2(vm_sendish+0xcc) [0x7fd2e3970f9c] vm_insnhelper.c:5080
/usr/local/lib/libruby.so.3.2(vm_exec_core+0x1cf) [0x7fd2e397b60f] insns.def:801
/usr/local/lib/libruby.so.3.2(rb_vm_exec+0xbb) [0x7fd2e3980b2b] vm.c:2374
/usr/local/lib/libruby.so.3.2(rb_vm_invoke_proc+0x57) [0x7fd2e3986037] vm.c:1603
/usr/local/lib/libruby.so.3.2(rb_proc_call_kw+0x9c) [0x7fd2e38805fc] proc.c:995
/usr/local/lib/libruby.so.3.2(exec_end_procs_chain+0x44) [0x7fd2e379c45d] eval_jump.c:105
/usr/local/lib/libruby.so.3.2(rb_ec_exec_end_proc) eval_jump.c:120
/usr/local/lib/libruby.so.3.2(rb_ec_teardown+0xc4) [0x7fd2e379c654] eval.c:159
/usr/local/lib/libruby.so.3.2(rb_ec_cleanup+0x13b) [0x7fd2e379c88b] eval.c:212
/usr/local/lib/libruby.so.3.2(ruby_run_node+0x9d) [0x7fd2e379ccbd] eval.c:330
/usr/local/bin/ruby(rb_main+0x21) [0x55dda7914113] ./main.c:38
/usr/local/bin/ruby(main) ./main.c:57
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7fd2e3233d0a]
[0x55dda791415a]

-- Other runtime information -----------------------------------------------

* Loaded script: bin/rails

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 fiber.so
    3 rational.so
    4 complex.so
    5 ruby2_keywords.rb
    6 /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/encdb.so
    7 /usr/local/lib/ruby/3.2.0/x86_64-linux/enc/trans/transdb.so
    8 /usr/local/lib/ruby/3.2.0/x86_64-linux/rbconfig.rb
    9 /usr/local/lib/ruby/3.2.0/rubygems/compatibility.rb
   10 /usr/local/lib/ruby/3.2.0/rubygems/defaults.rb
   11 /usr/local/lib/ruby/3.2.0/rubygems/deprecate.rb
   12 /usr/local/lib/ruby/3.2.0/rubygems/errors.rb
   13 /usr/local/lib/ruby/3.2.0/rubygems/unknown_command_spell_checker.rb
   14 /usr/local/lib/ruby/3.2.0/rubygems/exceptions.rb
   15 /usr/local/lib/ruby/3.2.0/rubygems/basic_specification.rb
   16 /usr/local/lib/ruby/3.2.0/rubygems/stub_specification.rb
   17 /usr/local/lib/ruby/3.2.0/rubygems/platform.rb
   18 /usr/local/lib/ruby/3.2.0/rubygems/util/list.rb
   19 /usr/local/lib/ruby/3.2.0/rubygems/version.rb
   20 /usr/local/lib/ruby/3.2.0/rubygems/requirement.rb
   21 /usr/local/lib/ruby/3.2.0/rubygems/specification.rb
   22 /usr/local/lib/ruby/3.2.0/rubygems/util.rb
   23 /usr/local/lib/ruby/3.2.0/rubygems/dependency.rb
   24 /usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_gem.rb
   25 /usr/local/lib/ruby/3.2.0/x86_64-linux/monitor.so
   26 /usr/local/lib/ruby/3.2.0/monitor.rb
   27 /usr/local/lib/ruby/3.2.0/rubygems/path_support.rb
   28 /usr/local/lib/ruby/3.2.0/x86_64-linux/pathname.so
   29 /usr/local/lib/ruby/3.2.0/pathname.rb
   30 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/version.rb
   31 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/constants.rb
   32 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/rubygems_integration.rb
   33 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/current_ruby.rb
   34 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/shared_helpers.rb
   35 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/vendor/fileutils/lib/fileutils.rb
   36 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/vendored_fileutils.rb
   37 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/errors.rb
   38 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/environment_preserver.rb
   39 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/plugin/api.rb
   40 /usr/local/bundle/gems/bundler-2.4.1/lib/bundler/plugin.rb
   41 /usr/local/lib/ruby/3.2.0/rubygems/text.rb
   42 /usr/local/lib/ruby/3.2.0/rubygems/source/git.rb
   43 /usr/local/lib/ruby/3.2.0/rubygems/source/installed.rb
   44 /usr/local/lib/ruby/3.2.0/rubygems/source/specific_file.rb
   45 /usr/local/lib/ruby/3.2.0/rubygems/source/local.rb
   46 /usr/local/lib/ruby/3.2.0/rubygems/source/lock.rb
   47 /usr/local/lib/ruby/3.2.0/rubygems/source/vendor.rb
   48 /usr/local/lib/ruby/3.2.0/rubygems/source.rb