Bug #15120

Segfault when using ActiveRecord

Added by bobvanderlinden (Bob van der Linden) about 1 year ago. Updated 3 months ago.

Third Party's Issue
Target version:
ruby -v:
ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-darwin17]


Whenever I do some of the MySQL migrations in my project I get a segfault. One example of a command that triggers this error is:

RAILS_ENV=test bundle exec rake db:migrate

I tried to get a smaller reproducable case, but running MySQL directly seems to work correctly. I'm not sure what is going on.

It does not seem like a fluke, becaue I get the segfault even after reinstalling MySQL using brew and reinstalling ruby and all gems.


ruby_2018-09-14-143231_nvc3428.crash (49.5 KB) ruby_2018-09-14-143231_nvc3428.crash Diagnostic report bobvanderlinden (Bob van der Linden), 09/14/2018 12:49 PM
stdout.txt (496 KB) stdout.txt bobvanderlinden (Bob van der Linden), 09/14/2018 01:58 PM



Updated by bobvanderlinden (Bob van der Linden) about 1 year ago

  • File deleted (code-stdin-xgm.txt)

Updated by jeremyevans0 (Jeremy Evans) 3 months ago

  • Status changed from Open to Third Party's Issue

This appears to be an issue in the mysql2 gem. It is similar to If it is still happening to you, you may want to update that mysql2 issue with details.

Also available in: Atom PDF