-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hello 👋
I just tried upgrading from 1.5.0.0 to 1.5.1.0 but I'm getting this exception: symbol lookup error: /home/adrien/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/zstd-ruby-1.5.1.0/lib/zstd-ruby/zstdruby.so: undefined symbol: HUF_decompress4X1_usingDTable_internal_bmi2_asm_loop which is causing the ruby program to exit with status 127. (the gem installation and native extension compilation goes without problem).
I have the same problem on two different machines running Ubuntu 21.10 and 21.04 (if that's of any relevance). I'm using ruby 2.6.4 and I'm using zstd-ruby only for the mongo driver (version 2.17.0). This is the commit showing how the mongo gem is using zstd-ruby: mongodb/mongo-ruby-driver@c07aae3, nothing very special here IMO, looks like it's just basic Zstd.decompress and Zstd.compress.
I can't reproduce with a simple console test:
> Zstd.compress('test')
=> "(\xB5/\xFD \x04!\x00\x00test"
> Zstd.decompress(Zstd.compress('test'))
=> "test"
But I can reproduce reliably with any Mongo query:
> User.first
rails_console: symbol lookup error: /home/adrien/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/zstd-ruby-1.5.1.0/lib/zstd-ruby/zstdruby.so: undefined symbol: HUF_decompress4X1_usingDTable_internal_bmi2_asm_loop
(IRB exits with status 127)
Any idea?
Thanks!