-
Notifications
You must be signed in to change notification settings - Fork 550
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
Comments
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 -- Control frame information ----------------------------------------------- -- Ruby level backtrace information ---------------------------------------- /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 ------------------------------------------------ -- C level backtrace information ------------------------------------------- |
Same here. SOLVED
Problem solved by upgrading ruby from 3.0.0 to 3.3.4. |
@crazyjin ref.
|
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
The text was updated successfully, but these errors were encountered: