Skip to content

PreserveImportsExportsJS fuzzer: Handle crashes and function ids#8648

Open
kripken wants to merge 2 commits intoWebAssembly:mainfrom
kripken:fuzz.pjs.funcid
Open

PreserveImportsExportsJS fuzzer: Handle crashes and function ids#8648
kripken wants to merge 2 commits intoWebAssembly:mainfrom
kripken:fuzz.pjs.funcid

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Apr 27, 2026

  1. Report VM errors as failures (rather than see they still occur after opts).
  2. Ignore function ID differences in logging.

@kripken kripken requested a review from a team as a code owner April 27, 2026 17:00
@kripken kripken requested review from aheejin and removed request for a team April 27, 2026 17:00
Comment thread scripts/fuzz_opt.py
Comment on lines +2222 to +2224
# VM crashes are actual issues we want to find.
if '(core dumped)' in out or 'Received signal' in out or '== C stack trace ==' in out or '== JS stack trace ==' in out:
raise Exception(f"VM crash:\n\n{out}")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this different than in other fuzz handlers?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Our normal JS is very careful to swallow and log any JS errors. The return code of the process is always 0.

Here we are running JS that is itself a fuzz testcase, and might error.

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