Stream: git-wasmtime

Topic: wasmtime / PR #14315 Fix debug assert in `ref.test` of `a...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 10 2026 at 23:31):

fitzgen opened PR #14315 from fitzgen:issue-14301-type-index-assertion-failure to bytecodealliance:main:

We would interpret the externref as having a type of VMSharedTypeIndex::reserve_value(), which triggered debug assertions, but since that is an invalid type index and therefore does not appear in e.g. any supertype arrays, it couldn't result in incorrect downcasts when debug assertions were disabled.

The fix is to check the VMGcKind when we're ref.testing an anyref, as it might be an internalized externref.

Fixes #14301

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Sep 10 2026 at 23:31):

fitzgen requested wasmtime-compiler-reviewers for a review on PR #14315.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 10 2026 at 23:31):

fitzgen requested wasmtime-core-reviewers for a review on PR #14315.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 10 2026 at 23:31):

fitzgen requested alexcrichton for a review on PR #14315.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2026 at 00:11):

:thumbs_up: alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2026 at 00:11):

alexcrichton added PR #14315 Fix debug assert in ref.test of any.convert_extern-internalized externrefs to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2026 at 00:37):

:check: alexcrichton merged PR #14315.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2026 at 00:37):

alexcrichton removed PR #14315 Fix debug assert in ref.test of any.convert_extern-internalized externrefs from the merge queue.


Last updated: Sep 20 2026 at 18:08 UTC