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

Panick: not implemented in function read_field_at_addr #278

Open
vouillon opened this issue Feb 4, 2025 · 2 comments
Open

Panick: not implemented in function read_field_at_addr #278

vouillon opened this issue Feb 4, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@vouillon
Copy link

vouillon commented Feb 4, 2025

Test Case

test.zip

This corresponds to the following OCaml code:

open Effect
open Effect.Deep

type _ t += E : unit t

let () =
  Printf.printf "%d\n%!" @@
    try_with (fun x -> x) 10
    { effc = (fun (type a) (e : a t) ->
        match e with
        | E -> Some (fun k -> 11)
        | e -> None) }

Steps to Reproduce

Run the following command:

./target/debug/wasmtime -C collector=null -W=exceptions,function-references,stack-switching,gc ./test1.wasm 

Expected Results

This should output 10 on the standard output.

Actual Results

I get a number of errors when trying to execute this piece of code.

$ thread '<unnamed>' panicked at crates/cranelift/src/gc/enabled.rs:156:42:
not implemented
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at crates/cranelift/src/gc/enabled.rs:79:5:
assertion failed: ty.is_vmgcref_type()
thread '<unnamed>' panicked at cranelift/codegen/src/machinst/lower.rs:727:17:
assertion `left == right` failed
  left: 0
 right: 1

Versions and Environment

Wasmfxtime commit: 2154029

@vouillon vouillon added the bug Something isn't working label Feb 4, 2025
@dhil
Copy link
Member

dhil commented Feb 4, 2025

Thanks for the report. We have yet to fully implement interaction with the GC feature. We will get to that either, as part of, or after, bytecodealliance#10177

@vouillon
Copy link
Author

vouillon commented Feb 4, 2025

I will wait, then. I have plenty of test programs but they all involve Wasm GC, and some require exception handlers as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants