Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wasmtime error when handling debuginfo: Unexpected attribute: Data8(4294967295) #9333

Closed
bjorn3 opened this issue Sep 30, 2024 · 0 comments · Fixed by #9335
Closed

Wasmtime error when handling debuginfo: Unexpected attribute: Data8(4294967295) #9333

bjorn3 opened this issue Sep 30, 2024 · 0 comments · Fixed by #9335
Labels
bug Incorrect behavior in the current implementation that needs fixing

Comments

@bjorn3
Copy link
Contributor

bjorn3 commented Sep 30, 2024

Test Case

wasm-zlib-benchmark.wasm.zip

Steps to Reproduce

  • wasmtime compile -Ddebug-info=y wasm-zlib-benchmark.wasm

Expected Results

Compiles fine

Actual Results

Error: failed to emit DWARF debug information

Caused by:
    Unexpected attribute: Data8(4294967295)

Stack backtrace:
   0: anyhow::error::<impl anyhow::Error>::msg
   1: wasmtime_cranelift::debug::transform::attr::clone_die_attributes
   2: wasmtime_cranelift::debug::transform::unit::clone_unit
   3: wasmtime_cranelift::debug::transform::transform_dwarf
   4: wasmtime_cranelift::debug::write_debuginfo::emit_dwarf
   5: <wasmtime_cranelift::compiler::Compiler as wasmtime_environ::compile::Compiler>::append_dwarf
   6: wasmtime::compile::FunctionIndices::link_and_append_code
   7: wasmtime::compile::build_artifacts
   8: wasmtime::compile::code_builder::CodeBuilder::compile_module_serialized

Versions and Environment

Wasmtime version or commit: wasmtime 25.0.1

Operating system: Linux

Architecture: x86_64

Extra Info

This wasm file was compiled from https://github.com/folkertdev/wasm-zlib-benchmark- in release mode with debug info enabled.

@bjorn3 bjorn3 added the bug Incorrect behavior in the current implementation that needs fixing label Sep 30, 2024
alexcrichton added a commit to alexcrichton/wasmtime that referenced this issue Sep 30, 2024
I don't know what `Data8` is, but it looks a lot like `Data4`, so
process it in the same way as `Data4`.

Closes bytecodealliance#9333
github-merge-queue bot pushed a commit that referenced this issue Sep 30, 2024
I don't know what `Data8` is, but it looks a lot like `Data4`, so
process it in the same way as `Data4`.

Closes #9333
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior in the current implementation that needs fixing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant