Skip to content

Commit 4c04dd9

Browse files
Merge pull request #215 from kate-goldenring/silence-libunwind
fix: remove native unwind info
2 parents 62f6197 + bbd1b8e commit 4c04dd9

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)