Skip to content

Commit daad13d

Browse files
fix: remove native unwind info
- 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 <[email protected]>
1 parent 71c8351 commit daad13d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

containerd-shim-spin/src/engine.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ impl Default for SpinEngine {
4545
// turned on for the components we compile.
4646
let mut config = wasmtime::Config::default();
4747
config.epoch_interruption(true);
48+
// Turn off native unwinding to avoid faulty libunwind detection error
49+
// TODO: This can be removed once the Wasmtime fix is brought into Spin
50+
// Issue to track: https://github.com/fermyon/spin/issues/2889
51+
config.native_unwind_info(false);
4852
Self {
4953
wasmtime_engine: wasmtime::Engine::new(&config).unwrap(),
5054
}

0 commit comments

Comments
 (0)