Stream: wasmtime

Topic: ✔ failed to emit DWARF debug information


view this post on Zulip Carl Sverre (Sep 30 2021 at 23:31):

After running a recent cargo update I can no longer use wasmtime with config.debug_info(true). If I do I get this error at runtime:

Error: failed to emit DWARF debug information

Caused by:
    The end offset of a location list entry must not be before the beginning.

Has anyone seen this?

view this post on Zulip bjorn3 (Oct 01 2021 at 06:21):

The error indicates that the debuginfo of the wasm file is invalid.

view this post on Zulip bjorn3 (Oct 01 2021 at 06:21):

What are you trying to run?

view this post on Zulip Alex Crichton (Oct 01 2021 at 14:24):

I actually ran into this yesterday myself and decided to dig into it. I came up with https://github.com/bytecodealliance/wasmtime/issues/3403 my findings so far. From what I can tell this is a bug in Wasmtime

I've been attempting to debug some C code recently but unfortunately I keep running into an error that indicates "failed to emit DWARF debug information" when passing the -g flag to t...

view this post on Zulip Carl Sverre (Oct 01 2021 at 20:31):

Nice - thanks for filing that issue. Lets move the convo there if anything develops.

view this post on Zulip Notification Bot (Oct 01 2021 at 20:31):

Carl Sverre has marked this topic as resolved.


Last updated: Nov 22 2024 at 17:03 UTC