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

Assertion failed in wasm-as when casting to externref #6738

Closed
hgruniaux opened this issue Jul 12, 2024 · 1 comment · Fixed by #6741
Closed

Assertion failed in wasm-as when casting to externref #6738

hgruniaux opened this issue Jul 12, 2024 · 1 comment · Fixed by #6741
Assignees

Comments

@hgruniaux
Copy link

The following WAT code:

(module
    (func (param eqref) (result externref)
        (ref.cast externref (local.get 0))))

crash the assembler with the following message:

Assertion failed: isRef() (/src/src/wasm/wasm-type.cpp: getHeapType: 930)

The problem is the cast to externref. The assembler should probably print an error message.

The crash was reproduced on the main branch (commit 22c28bd).

@kripken
Copy link
Member

kripken commented Jul 12, 2024

Thanks @hgruniaux , I opened #6741 with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants