fermyon / spin

Spin is the open source developer tool for building and running serverless applications powered by WebAssembly.
https://developer.fermyon.com/spin
Apache License 2.0
5.24k stars 248 forks source link

Error `libunwind: __unw_add_dynamic_fde: bad fde: FDE is really a CIE` #2889

Open kate-goldenring opened 2 weeks ago

kate-goldenring commented 2 weeks ago

Musl builds of the shim are throwing a libunwind error at startup. The app still works:

$ curl -L https://github.com/fermyon/spin/releases/download/canary/spin-canary-static-linux-amd64.tar.gz | tar -xvzf -
$ ./spin up --from ttl.sh/spin-foo-app:48h
libunwind: __unw_add_dynamic_fde: bad fde: FDE is really a CIE

Serving http://127.0.0.1:3000
Available Routes:
  foo: http://127.0.0.1:3000/foo

This may be due to Wasmtime failing to detect which unwind implementation to use (libgcc-vs-libunwind) which was supposed to be resolved by https://github.com/bytecodealliance/wasmtime/pull/8028

kate-goldenring commented 4 days ago

This should be resolved by pulling in Wasmtime with this commit: https://github.com/bytecodealliance/wasmtime/pull/9479

Alternatively, we can set .native_unwind_info(false) on the wasmtime Config here, which would silence this warning.