mysql2
mysql2 copied to clipboard
Debian 11 / ruby 2.7 - Segfault with 0.5.3 mysql2 gem
Hello, I am upgrading different project from debian 10 to debian 11, with mysql2 0.5.3 gem. I am using CINC (like Chef infra) to bootrap my machine. With debian 10 everything works fine but with debian 11 I am experiencing a Segfault.
Do you know if this gem is compatible with debian 11 ?
Thanks
Expected to work fine on Debian 11. Looks like going through the standard motions on debugging will be helpful here. Can you get a backtrace from the Ruby process?
This is not specifc to the gem, I am experimenting it on debian 11 and ruby 3.0. I tested chef client from versions 16 to 18
Did you find a workaround @RusHiiii ?
@rottenbytes Unfortunately not yet :( We are droppping Mysql to Postgresql for all our new project
It worked for me when compiled mysql 5.7 from source
mkdir bld ; cd bld ; cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.7.40/ -DDOWNLOAD_BOOST=1 -DWITH_BOOST=boost -fPIC .. && make && sudo make install
and reinstalled gem:
gem install mysql2 -v '0.5.3' -- --with-mysql-dir=/usr/local/mysql-5.7.40/
Closing out as the original issue is not reproduced.