Skip to content

Commit

Permalink
fix: remove native unwind info
Browse files Browse the repository at this point in the history
- Musl builds of the shim throw a libunwind error during startup due to Wasmtime failing to detect which unwind implementation to use. For now, turn off generating native unwind info

Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
  • Loading branch information
kate-goldenring committed Oct 29, 2024
1 parent 71c8351 commit daad13d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions containerd-shim-spin/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ impl Default for SpinEngine {
// turned on for the components we compile.
let mut config = wasmtime::Config::default();
config.epoch_interruption(true);
// Turn off native unwinding to avoid faulty libunwind detection error
// TODO: This can be removed once the Wasmtime fix is brought into Spin
// Issue to track: https://github.com/fermyon/spin/issues/2889
config.native_unwind_info(false);
Self {
wasmtime_engine: wasmtime::Engine::new(&config).unwrap(),
}
Expand Down

0 comments on commit daad13d

Please sign in to comment.