mysql2 icon indicating copy to clipboard operation
mysql2 copied to clipboard

Debian 11 / ruby 2.7 - Segfault with 0.5.3 mysql2 gem

Open RusHiiii opened this issue 3 years ago • 3 comments

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.

image

Do you know if this gem is compatible with debian 11 ?

Thanks

RusHiiii avatar Dec 14 '21 14:12 RusHiiii

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?

sodabrew avatar Dec 15 '21 00:12 sodabrew

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 avatar Jun 30 '22 13:06 rottenbytes

@rottenbytes Unfortunately not yet :( We are droppping Mysql to Postgresql for all our new project

RusHiiii avatar Jun 30 '22 13:06 RusHiiii

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/

pszyszkowski avatar Dec 27 '22 14:12 pszyszkowski

Closing out as the original issue is not reproduced.

sodabrew avatar Dec 28 '22 01:12 sodabrew