-
Notifications
You must be signed in to change notification settings - Fork 546
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.4.2
, rails 5.0.7.2
, mysql2 0.4.10
mojava 10.14.3
#1036
Comments
2.4.2
, rails 5.0.7.2
, mysql2 0.4.10
2.4.2
, rails 5.0.7.2
, mysql2 0.4.10
mojava 10.14.3
Can you try mysql2 0.5.x? |
I am having the same issue. When i tried updating to 0.5, i get this error: Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add Gem::LoadError: can't activate mysql2 (< 0.5, >= 0.3.18), already activated mysql2-0.5.2. Make sure all dependencies are added to Gemfile. Do you know which version of active record uses 0.5.x? Or is there a workaround for this so that I don't have to upgrade rails/active record. I can also provide the crash report if that is helpful for this bug. |
Users/jeffgoodall/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rack-mini-profiler-1.0.0/lib/patches/db/mysql2.rb:8: [BUG] Segmentation fault at 0x0000000000019f01 -- Crash Report log information -------------------------------------------- -- Control frame information ----------------------------------------------- -- Ruby level backtrace information ---------------------------------------- -- Machine register context ------------------------------------------------ -- C level backtrace information ------------------------------------------- |
With Rails 5.0.7 you should be able to use mysql2 0.5.x as documented here: This error shouldn't occur with AR 5.0.7+ double check that you're up to date?
|
I am also facing same issue @sodabrew I have tried with mysql2 Any other alternative available ?? |
Hi jgoodall628, did you try to force your RoR development environment to use the DBMS that you want (preconfigure)? rails new_app -d mysql |
I noticed this problem today when attempting to build the gem against libperconaserverclient20 on Ubuntu 18.04. Deleting the gem and replacing libperconaserverclient20 with libmysqlclient20 fixed my segfault problem. Note that in both cases it compiles correctly, but it segfaults trying to use the gem when compiled against libperconaserverclient20. This is against ruby 2.5.1p57, the embedded version that ships with Chef 14.3.
|
I've try uninstall and reinstall mysql,
rbenv rehash
, none of them works.And
rails console
works well, I can query in rails c. But when I start rails server and try to visit root domain it raise error.The text was updated successfully, but these errors were encountered: