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

[GC] assertion failed: types.is_subtype(actual_ty, expected_ty) #10398

Closed
vouillon opened this issue Mar 14, 2025 · 1 comment · Fixed by #10456
Closed

[GC] assertion failed: types.is_subtype(actual_ty, expected_ty) #10398

vouillon opened this issue Mar 14, 2025 · 1 comment · Fixed by #10456
Labels
bug Incorrect behavior in the current implementation that needs fixing

Comments

@vouillon
Copy link

Test Case

subtype.zip

Steps to Reproduce

Run the following command:

./target/debug/wasmtime  -W=all-proposals=y subtype.wasm

Expected Results

It should not crash.

Actual Results

We get a panic:

thread 'main' panicked at crates/wasmtime/src/runtime/vm/gc/func_ref.rs:81:13:
assertion failed: types.is_subtype(actual_ty, expected_ty)

Versions and Environment

Wasmtime commit: a3381e4

Operating system: Linux

Architecture: x64

@vouillon vouillon added the bug Incorrect behavior in the current implementation that needs fixing label Mar 14, 2025
@fitzgen fitzgen changed the title [GC] assertion failed: types.is_subtype(actual_ty, expected_ty) [GC] assertion failed: types.is_subtype(actual_ty, expected_ty) Mar 21, 2025
@fitzgen
Copy link
Member

fitzgen commented Mar 21, 2025

#10456 also fixes this one.

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.

2 participants