Describe the bug
I'm using a statically linked version of Ruby 2.7.2 on macOS. I can build the gem (it links against libruby.2.7-static.a) but when I require the gem, I get a seg fault at lib/wasmer.rb:31. If I use a dynamically linked version of Ruby 2.7.2 (where the gem links against libruby.2.7.dylib) everything works fine.
Steps to reproduce
- On a Mac, build a statically linked version of Ruby 2.7.2 (e.g.
RUBY_CONFIGURE_OPTS="--disable-shared" ruby-build 2.7.2 /path/to/install)
- Verify that
/path/to/install/lib contains libruby.2.7-static.a
- Build the gem against this version of Ruby
- Open an IRB session
- Run
require 'wasmer'
Expected behavior
No seg fault occurs.
Actual behavior
Seg fault occurs.
Additional context
Repeating the same steps with RUBY_CONFIGURE_OPTS="--enabled-shared" works just fine.
Describe the bug
I'm using a statically linked version of Ruby 2.7.2 on macOS. I can build the gem (it links against
libruby.2.7-static.a) but when I require the gem, I get a seg fault atlib/wasmer.rb:31. If I use a dynamically linked version of Ruby 2.7.2 (where the gem links againstlibruby.2.7.dylib) everything works fine.Steps to reproduce
RUBY_CONFIGURE_OPTS="--disable-shared" ruby-build 2.7.2 /path/to/install)/path/to/install/libcontainslibruby.2.7-static.arequire 'wasmer'Expected behavior
No seg fault occurs.
Actual behavior
Seg fault occurs.
Additional context
Repeating the same steps with
RUBY_CONFIGURE_OPTS="--enabled-shared"works just fine.