Mysql2 Segmentation fault at 0x0000000000000000

I’m migrating from Travis CI to GitHub Actions

Every thing is fine in Ruby 2.6, 2.7, but it raises segmentation fault in Ruby 2.2.
See the job:


I’ve tried different MySQL version, replacing libmysqlclient-dev with libmariadbclient-dev, or reinstalling mysql2 gem.

Have no idea how to fix it.

You should read carefully the documentation of the various tools involved, to ensure that you’re getting all dependencies right. Your linked Travis CI jobs logs are now expired, so they no longer provide useful error info.