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 · 0 comments
Open

Segmentation fault with Ruby 2.5.3 and mysql2 #1360

sreenak opened this issue Feb 26, 2024 · 0 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' 
`
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

1 participant