Skip to content

Conversation

kripken
Copy link
Member

@kripken kripken commented Aug 15, 2025

  • Disable stack switching in ClusterFuzz, as V8 isn't ready yet. Also in our V8 fuzzing.
  • Save a list of valid exception tags (not every tag can be thrown/caught) and use
    those from exception handling places.
  • Other minor fuzzer fixes as needed.

@kripken kripken requested a review from tlively August 15, 2025 20:13
case HeapTypeKind::Cont:
WASM_UNREACHABLE("TODO: cont");
case HeapTypeKind::Cont: {
auto funcType = Type(heapType.getContinuation().type, NonNullable);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
auto funcType = Type(heapType.getContinuation().type, NonNullable);
auto funcType = Type(heapType.getContinuation().type, Nullable);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nulls would just trap. But I guess we should cover that too. I can change this to use nulls rarely like we do elsewhere.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

WASM_UNREACHABLE("TODO: cont");
case HeapTypeKind::Cont: {
auto funcType = Type(heapType.getContinuation().type, NonNullable);
return builder.makeContNew(heapType, makeRefFuncConst(funcType));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not allow this to be an arbitrary expression with the expected type?

Copy link
Member Author

@kripken kripken Aug 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, yeah, I don't think it could recurse in a bad way. I'll try that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@kripken
Copy link
Member Author

kripken commented Aug 22, 2025

Ok, this has gone for a day / 100K iterations without finding anything new, so I think it is ready to land.

@kripken kripken merged commit 605ef3b into WebAssembly:main Aug 22, 2025
16 checks passed
@kripken kripken deleted the fuzz.cont branch August 22, 2025 16:01
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 this pull request may close these issues.

2 participants