Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault with Ruby 2.5.3 and mysql2 #1360

Open
sreenak opened this issue Feb 26, 2024 · 5 comments
Open

Segmentation fault with Ruby 2.5.3 and mysql2 #1360

sreenak opened this issue Feb 26, 2024 · 5 comments

Comments

@sreenak
Copy link

sreenak commented Feb 26, 2024

Iam getting Segmentation fault error,MySql version 8.0,34, using Ubuntu 22.04, ruby 2.5.3, rails, 5.1.7.

/```
home/user/.rvm/gems/ruby-2.5.3/gems/mysql2-0.5.6/lib/mysql2/client.rb:97: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0052 p:---- s:0319 e:000318 CFUNC :connect
c:0051 p:0672 s:0307 e:000306 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/mysql2-0.5.6/lib/mysql2/client.rb:97 [FINISH]
c:0050 p:---- s:0292 e:000291 CFUNC :new
c:0049 p:0104 s:0287 e:000286 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/mysql2_adapter.rb:21
c:0048 p:0024 s:0280 e:000279 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_poo
c:0047 p:0021 s:0276 e:000275 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_poo
c:0046 p:0015 s:0272 e:000271 METHOD /home/user/.rvm/gems/ruby-2.5.3/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_poo

I tried these steps to resolve the issue,
1)Reinstalled mysql
2)Also tried executing these steps but still no way to solve this

`sudo apt remove libmariadbd-dev

sudo apt install libmariadbd-dev

gem install mysql2 -v '0.5.6' 
`
@jainsandesh
Copy link

jainsandesh commented Jun 14, 2024

I am also having similar issue with ruby 2.6.6, rails 5.2.3 and mysql 0.5.6 / 0.5.3, ubuntu22.04, mysql 8.0.36-0

/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/mysql2-0.5.6/lib/mysql2/client.rb:97: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0095 p:---- s:0525 e:000524 CFUNC :connect
c:0094 p:0674 s:0513 e:000512 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/mysql2-0.5.6/lib/mysql2/client.rb:97 [FINISH]
c:0093 p:---- s:0498 e:000497 CFUNC :new
c:0092 p:0106 s:0493 e:000492 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/mysql2_adapter.rb:22
c:0091 p:0024 s:0486 e:000485 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:830
c:0090 p:0021 s:0482 e:000481 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:874
c:0089 p:0016 s:0478 e:000477 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:853
c:0088 p:0014 s:0472 e:000471 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:814
c:0087 p:0012 s:0466 e:000464 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:538
c:0086 p:0025 s:0460 e:000456 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:382
c:0085 p:0049 s:0453 e:000452 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033
c:0084 p:0011 s:0447 e:000446 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_handling.rb:118
c:0083 p:0004 s:0443 e:000442 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_handling.rb:90
c:0082 p:0010 s:0439 e:000438 METHOD /home/xxxxxxx/workspace/astrialearning/acms/vendor/plugins/astria_email_alert/lib/astria_email_alert.rb:13
c:0081 p:0043 s:0435 e:000434 TOP /home/xxxxxxx/workspace/astrialearning/acms/vendor/plugins/astria_email_alert/config/initializers/astria_email_alert.rb:2 [FINISH]
c:0080 p:---- s:0432 e:000431 CFUNC :load
c:0079 p:0034 s:0426 e:000425 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59
c:0078 p:0010 s:0416 e:000415 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285
c:0077 p:0068 s:0413 e:000412 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257
c:0076 p:0015 s:0406 e:000405 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285
c:0075 p:0007 s:0399 e:000398 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/engine.rb:663
c:0074 p:0039 s:0396 e:000395 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/notifications.rb:170
c:0073 p:0017 s:0390 e:000389 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/engine.rb:662
c:0072 p:0007 s:0385 e:000384 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/engine.rb:620 [FINISH]
c:0071 p:---- s:0381 e:000380 CFUNC :each
c:0070 p:0023 s:0377 e:000376 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/engine.rb:619 [FINISH]
c:0069 p:---- s:0374 e:000373 CFUNC :instance_exec
c:0068 p:0015 s:0369 e:000368 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/initializable.rb:32
c:0067 p:0019 s:0364 e:000363 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/initializable.rb:61
c:0066 p:0019 s:0360 e:000359 BLOCK /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:228
c:0065 p:0005 s:0356 e:000355 BLOCK /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:350
c:0064 p:0005 s:0352 e:000351 BLOCK /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:422
c:0063 p:0111 s:0348 E:000a60 METHOD /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:431
c:0062 p:0059 s:0336 E:000498 BLOCK /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:421 [FINISH]
c:0061 p:---- s:0330 e:000329 CFUNC :each
c:0060 p:0013 s:0326 e:000325 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/initializable.rb:50 [FINISH]
c:0059 p:---- s:0320 e:000319 CFUNC :call
c:0058 p:0075 s:0315 E:001430 METHOD /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:415
c:0057 p:0031 s:0303 E:002648 BLOCK /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:349 [FINISH]
c:0056 p:---- s:0299 e:000298 CFUNC :each
c:0055 p:---- s:0296 e:000295 CFUNC :call
c:0054 p:0033 s:0292 E:001730 METHOD /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:347
c:0053 p:0034 s:0284 E:001f20 METHOD /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:226
c:0052 p:0034 s:0278 e:000277 METHOD /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:205
c:0051 p:0022 s:0271 E:001eb0 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/initializable.rb:60
c:0050 p:0023 s:0265 e:000264 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/application.rb:361
c:0049 p:0034 s:0260 e:000259 TOP /home/xxxxxxx/workspace/astrialearning/acms/config/environment.rb:12 [FINISH]
c:0048 p:---- s:0257 e:000256 CFUNC :require
c:0047 p:0013 s:0252 e:000251 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23
c:0046 p:0074 s:0249 e:000248 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92
c:0045 p:0023 s:0237 e:000236 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22
c:0044 p:0063 s:0231 e:000230 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31
c:0043 p:0008 s:0223 e:000222 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291
c:0042 p:0068 s:0220 e:000219 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257
c:0041 p:0011 s:0213 e:000212 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291
c:0040 p:0027 s:0207 e:000206 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/application.rb:337
c:0039 p:0020 s:0202 E:0004e0 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/application.rb:520
c:0038 p:0009 s:0199 e:000198 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:281 [FINISH]
c:0037 p:---- s:0195 e:000194 CFUNC :each
c:0036 p:0165 s:0191 e:000190 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:281
c:0035 p:0034 s:0185 e:000184 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/sentry-ruby-5.8.0/lib/sentry/rake.rb:24
c:0034 p:0163 s:0180 e:000179 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:219
c:0033 p:0022 s:0176 e:000175 METHOD /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/monitor.rb:235
c:0032 p:0024 s:0172 e:000171 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:199
c:0031 p:0022 s:0165 e:000164 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:243 [FINISH]
c:0030 p:---- s:0160 e:000159 CFUNC :each
c:0029 p:0029 s:0156 e:000155 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:241
c:0028 p:0150 s:0150 e:000149 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:218
c:0027 p:0022 s:0146 e:000145 METHOD /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/monitor.rb:235
c:0026 p:0024 s:0142 e:000141 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:199
c:0025 p:0022 s:0135 e:000134 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:243 [FINISH]
c:0024 p:---- s:0130 e:000129 CFUNC :each
c:0023 p:0029 s:0126 e:000125 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:241
c:0022 p:0150 s:0120 e:000119 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:218
c:0021 p:0022 s:0116 e:000115 METHOD /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/monitor.rb:235
c:0020 p:0024 s:0112 e:000111 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:199
c:0019 p:0033 s:0105 e:000104 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:188
c:0018 p:0030 s:0099 e:000098 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:160
c:0017 p:0007 s:0091 e:000090 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:116 [FINISH]
c:0016 p:---- s:0087 e:000086 CFUNC :each
c:0015 p:0037 s:0083 e:000082 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:116
c:0014 p:0024 s:0080 e:000079 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:125
c:0013 p:0005 s:0075 e:000074 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:110
c:0012 p:0044 s:0071 e:000070 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/commands/rake/rake_command.rb:23
c:0011 p:0002 s:0068 e:000067 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:186
c:0010 p:0032 s:0063 e:000062 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/commands/rake/rake_command.rb:20
c:0009 p:0146 s:0057 e:000056 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/command.rb:48
c:0008 p:0059 s:0046 e:000045 TOP /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/commands.rb:18 [FINISH]
c:0007 p:---- s:0041 e:000040 CFUNC :require
c:0006 p:0013 s:0036 e:000035 BLOCK /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23
c:0005 p:0074 s:0033 e:000032 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92
c:0004 p:0023 s:0021 e:000020 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22
c:0003 p:0063 s:0015 e:000014 METHOD /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31
c:0002 p:0053 s:0007 E:001238 EVAL bin/rails:9 [FINISH]
c:0001 p:0000 s:0003 E:002590 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
bin/rails:9:in <main>' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in require'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/commands.rb:18:in <main>' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/command.rb:48:in invoke'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/commands/rake/rake_command.rb:20:in perform' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:186:in standard_exception_handling'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/commands/rake/rake_command.rb:23:in block in perform' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:110:in top_level'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:125:in run_with_threads' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:116:in block in top_level'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:116:in each' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:116:in block (2 levels) in top_level'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/application.rb:160:in invoke_task' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:188:in invoke'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:199:in invoke_with_call_chain' /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/monitor.rb:235:in mon_synchronize'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:218:in block in invoke_with_call_chain' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:241:in invoke_prerequisites'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:241:in each' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:243:in block in invoke_prerequisites'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:199:in invoke_with_call_chain' /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/monitor.rb:235:in mon_synchronize'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:218:in block in invoke_with_call_chain' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:241:in invoke_prerequisites'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:241:in each' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:243:in block in invoke_prerequisites'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:199:in invoke_with_call_chain' /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/monitor.rb:235:in mon_synchronize'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:219:in block in invoke_with_call_chain' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/sentry-ruby-5.8.0/lib/sentry/rake.rb:24:in execute'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:281:in execute' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:281:in each'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/rake-13.0.3/lib/rake/task.rb:281:in block in execute' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/application.rb:520:in block in run_tasks_blocks'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/application.rb:337:in require_environment!' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in require'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in load_dependency' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in block in require'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in require' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require_with_bootsnap_lfi'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in block in require_with_bootsnap_lfi'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require' /home/xxxxxxx/workspace/astrialearning/acms/config/environment.rb:12:in

'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/application.rb:361:in initialize!' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/initializable.rb:60:in run_initializers'
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:205:in tsort_each' /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:226:in tsort_each'
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:347:in each_strongly_connected_component' /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:347:in call'
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:347:in each' /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:349:in block in each_strongly_connected_component'
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:415:in each_strongly_connected_component_from' /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:415:in call'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/initializable.rb:50:in tsort_each_child' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/initializable.rb:50:in each'
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:421:in block in each_strongly_connected_component_from' /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:431:in each_strongly_connected_component_from'
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:422:in block (2 levels) in each_strongly_connected_component_from' /home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component'
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/tsort.rb:228:in block in tsort_each' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/initializable.rb:61:in block in run_initializers'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/initializable.rb:32:in run' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/initializable.rb:32:in instance_exec'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/engine.rb:619:in block in <class:Engine>' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/engine.rb:619:in each'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/engine.rb:620:in block (2 levels) in <class:Engine>' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/engine.rb:662:in load_config_initializer'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/notifications.rb:170:in instrument' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/railties-5.2.5/lib/rails/engine.rb:663:in block in load_config_initializer'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in load' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in load_dependency'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in block in load' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in load'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in load' /home/xxxxxxx/workspace/astrialearning/acms/vendor/plugins/astria_email_alert/config/initializers/astria_email_alert.rb:2:in '
/home/xxxxxxx/workspace/astrialearning/acms/vendor/plugins/astria_email_alert/lib/astria_email_alert.rb:13:in attach_alerts' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_handling.rb:90:in connection'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_handling.rb:118:in retrieve_connection' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033:in retrieve_connection'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in connection' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:538:in checkout'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:814:in acquire_connection' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in try_to_checkout_new_connection'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:874:in checkout_new_connection' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:830:in new_connection'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in mysql2_connection' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/activerecord-5.2.5/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in new'
/home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/mysql2-0.5.6/lib/mysql2/client.rb:97:in initialize' /home/xxxxxxx/.rvm/gems/ruby-2.6.6/gems/mysql2-0.5.6/lib/mysql2/client.rb:97:in connect'

-- Machine register context ------------------------------------------------
RIP: 0x00007a62ecda6390 RBP: 0x00007a62ede6fc80 RSP: 0x00007fff0026d780
RAX: 0x001f0ffff71453e9 RBX: 0x000055c94e727970 RCX: 0x00000000bba301d5
RDX: 0x0000000000000078 RDI: 0x00007a62ede6fc80 RSI: 0x0000000000000400
R8: 0x0000000000000001 R9: 0x000000001185d456 R10: 0x00000000565ef51d
R11: 0x00000000737677b2 R12: 0x00007fff0026d840 R13: 0x000055c94e727978
R14: 0x00007fff0026d990 R15: 0x00007fff0026d810 EFL: 0x0000000000010202

-- C level backtrace information -------------------------------------------
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_bugreport+0x4ae) [0x7a62f0e7580e]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_bug_context+0xf0) [0x7a62f0cc0b70]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(sigsegv+0x46) [0x7a62f0ddb4e6]
[0x7a62f0842520]
[0x7a62ecda6390]
[0x7a62ecd7dda9]
[0x7a62ed24f534]
[0x7a62ed2551de]
[0x7a62ed29df27]
[0x7a62ed24a628]
[0x7a62ed23674e]
[0x7a62ed23cacc]
[0x7a62ed23cc1d]
[0x7a62ed2411b4]
[0x7a62ed23cec4]
[0x7a62ee089dfa]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_thread_call_without_gvl+0x8c) [0x7a62f0e234cc]
[0x7a62ee08ac51]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(call_cfunc_8+0x32) [0x7a62f0e4cbb2]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x154) [0x7a62f0e5c9d4]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x179) [0x7a62f0e62779]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_class_s_new+0x26) [0x7a62f0d51d96]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x154) [0x7a62f0e5c9d4]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x179) [0x7a62f0e62779]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_load_internal0+0x10e) [0x7a62f0d1609e]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_f_load+0x87) [0x7a62f0d16517]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x154) [0x7a62f0e5c9d4]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x179) [0x7a62f0e62779]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_yield+0x281) [0x7a62f0e70b01]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_ary_each+0x3c) [0x7a62f0c3645c]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x248) [0x7a62f0e5cac8]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x179) [0x7a62f0e62779]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(yield_under+0x3ea) [0x7a62f0e71b5a]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x248) [0x7a62f0e5cac8]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x179) [0x7a62f0e62779]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_yield+0x281) [0x7a62f0e70b01]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_ary_each+0x3c) [0x7a62f0c3645c]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x248) [0x7a62f0e5cac8]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x179) [0x7a62f0e62779]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x248) [0x7a62f0e5cac8]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x179) [0x7a62f0e62779]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_yield+0x281) [0x7a62f0e70b01]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_ary_each+0x3c) [0x7a62f0c3645c]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_call0+0x1e4) [0x7a62f0e66744]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x248) [0x7a62f0e5cac8]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x8a7) [0x7a62f0e62ea7]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_load_internal0+0x10e) [0x7a62f0d1609e]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_require_internal+0x380) [0x7a62f0d17b50]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_require_safe+0xd) [0x7a62f0d17cad]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x154) [0x7a62f0e5c9d4]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x179) [0x7a62f0e62779]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_yield+0x281) [0x7a62f0e70b01]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_ary_each+0x3c) [0x7a62f0c3645c]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x248) [0x7a62f0e5cac8]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x179) [0x7a62f0e62779]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_yield+0x281) [0x7a62f0e70b01]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_ary_each+0x3c) [0x7a62f0c3645c]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x248) [0x7a62f0e5cac8]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x179) [0x7a62f0e62779]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_yield+0x281) [0x7a62f0e70b01]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_ary_each+0x3c) [0x7a62f0c3645c]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x248) [0x7a62f0e5cac8]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x8a7) [0x7a62f0e62ea7]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_yield+0x281) [0x7a62f0e70b01]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_ary_each+0x3c) [0x7a62f0c3645c]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x248) [0x7a62f0e5cac8]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x8a7) [0x7a62f0e62ea7]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_load_internal0+0x10e) [0x7a62f0d1609e]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_require_internal+0x380) [0x7a62f0d17b50]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_require_safe+0xd) [0x7a62f0d17cad]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_call_cfunc+0x119) [0x7a62f0e51dd9]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(vm_exec_core+0x154) [0x7a62f0e5c9d4]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(rb_vm_exec+0x8a7) [0x7a62f0e62ea7]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(ruby_exec_internal+0xdb) [0x7a62f0cc53ab]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(ruby_exec_node+0x21) [0x7a62f0cc7741]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/lib/libruby.so.2.6(ruby_run_node+0x32) [0x7a62f0cca962]
/home/xxxxxxx/.rvm/rubies/ruby-2.6.6/bin/ruby(main+0x5f) [0x55c94420117f]

@akashdeep-sumeru
Copy link

I also having the similar issue with ruby 3.0.4, rails 7.0.8 and ubuntu 22.04

Screenshot from 2024-07-10 18-28-25

@crazyjin
Copy link

crazyjin commented Jul 26, 2024

Same here. SOLVED

user@ubuntu2404LTS:~/projects/wei$ ruby -v
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
user@ubuntu2404LTS:~/projects/wei$ rails -v
Rails 7.1.3.4
user@ubuntu2404LTS:~/projects/wei$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04 LTS
Release:	24.04
Codename:	noble
user@ubuntu2404LTS:~/projects/wei$ mysql --version
mysql  Ver 8.0.37-0ubuntu0.24.04.1 for Linux on x86_64 ((Ubuntu))
user@ubuntu2404LTS:~/projects/wei$ gem list | grep mysql
mysql2 (0.5.6)
user@ubuntu2404LTS:~/projects/wei$ rails db:create
/home/felix/.rvm/gems/ruby-3.0.0/gems/mysql2-0.5.6/lib/mysql2/client.rb:97: [BUG] Segmentation fault at 0x0000000000000000
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0072 p:---- s:0391 e:000390 CFUNC  :connect
c:0071 p:0623 s:0379 e:000378 METHOD /home/felix/.rvm/gems/ruby-3.0.0/gems/mysql2-0.5.6/lib/mysql2/client.rb:97 [FINISH]
c:0070 p:---- s:0364 e:000363 CFUNC  :new
c:0069 p:0020 s:0359 e:000358 METHOD /home/felix/.rvm/gems/ruby-3.0.0/gems/activerecord-7.1.3.4/lib/active_record/connection_adapters/mysql2_adapter.rb:36
c:0068 p:0008 s:0353 e:000352 METHOD /home/felix/.rvm/gems/ruby-3.0.0/gems/activerecord-7.1.3.4/lib/active_record/connection_adapters/mysql2_adapter.rb:159
c:0067 p:0016 s:0348 e:000347 METHOD /home/felix/.rvm/gems/ruby-3.0.0/gems/activerecord-7.1.3.4/lib/active_record/connection_adapters/mysql2_adapter.rb:167
c:0066 p:0004 s:0344 e:000343 BLOCK  /home/felix/.rvm/gems/ruby-3.0.0/gems/activerecord-7.1.3.4/lib/active_record/connection_adapters/abstract_adapter.rb:685
c:0065 p:0002 s:0338 e:000337 METHOD /home/felix/.rvm/gems/ruby-3.0.0/gems/activesupport-7.1.3.4/lib/active_support/concurrency/null_lock.rb:9

Problem solved by upgrading ruby from 3.0.0 to 3.3.4.
Searched a lot and found it related to openssl. Ruby 3.0.0 depends on very old openssl 1.1, which is not supported by many environments, and mysql2 depends on modern version of openssl.

@Faq
Copy link

Faq commented Jul 26, 2024

@crazyjin ref.

@akashdeep-sumeru
Copy link

I also having the similar issue with ruby 3.0.4, rails 7.0.8 and ubuntu 22.04

Screenshot from 2024-07-10 18-28-25

@crazyjin @Faq I also resolved the issue by using ruby 3.1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants