Stream: git-wasmtime

Topic: wasmtime / PR #12996 gc_fuzz: Add support for casting and...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2026 at 02:44):

khagankhan opened PR #12996 from khagankhan:gc-cast to bytecodealliance:main:

Summary

Add support for reference casting and testing in the GC fuzzer.

Fixup preserves the operand already on the stack:

Fixup repairs casts in three cases:

  1. If the existing sub <: super relation is already valid, it keeps the cast unchanged.
  2. If the relation is invalid but a direct related type exists, it repairs the cast to use that direct supertype or subtype.
  3. If no related type can be found, it falls back to a self-cast.

Downcasts are emitted in a trap-free form like:

...
local.tee 7
ref.test (ref null 5)
if (result (ref null 5))
  local.get 7
  ref.cast (ref null 5)
else
  ref.null 5
end
...

New tests have been added to test the new features.

+cc @fitzgen @eeide

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2026 at 02:45):

khagankhan requested fitzgen for a review on PR #12996.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2026 at 02:45):

khagankhan requested wasmtime-fuzz-reviewers for a review on PR #12996.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2026 at 06:10):

github-actions[bot] added the label fuzzing on PR #12996.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2026 at 06:10):

github-actions[bot] commented on PR #12996:

Subscribe to Label Action

cc @fitzgen

<details>
This issue or pull request has been labeled: "fuzzing"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2026 at 19:10):

khagankhan commented on PR #12996:

The the bug I mentioned turns out be false positive. I was running standalone version of the fuzzer

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2026 at 19:10):

khagankhan edited a comment on PR #12996:

The the bug I mentioned turns out to be false positive. I was running standalone version of the fuzzer

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2026 at 19:47):

fitzgen submitted PR review:

LGTM, let me know when you diagnose+fix the trap you saw locally, or if you need another set of eyes on it

view this post on Zulip Wasmtime GitHub notifications bot (Apr 09 2026 at 20:04):

khagankhan commented on PR #12996:

Thanks! @fitzgen that bug was not from this PR but on local which has more features. I think this is good to be merged after ~1 hour of fuzzing with no crashes

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2026 at 16:17):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2026 at 16:17):

fitzgen added PR #12996 gc_fuzz: Add support for casting and testing references to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2026 at 16:54):

fitzgen removed PR #12996 gc_fuzz: Add support for casting and testing references from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2026 at 16:55):

fitzgen merged PR #12996.


Last updated: Apr 12 2026 at 23:10 UTC