Skip to content

gc_ops: Address assertion failure in the types fixup()#12900

Merged
fitzgen merged 1 commit intobytecodealliance:mainfrom
khagankhan:assertion-failure-fix
Mar 31, 2026
Merged

gc_ops: Address assertion failure in the types fixup()#12900
fitzgen merged 1 commit intobytecodealliance:mainfrom
khagankhan:assertion-failure-fix

Conversation

@khagankhan
Copy link
Copy Markdown
Contributor

@khagankhan khagankhan commented Mar 30, 2026

Fix Types::fixupto handle types appearing in multiple rec groups opened in #12892.

Libfuzzer mutations can place the same TypeId in more than one rec group. is_well_formed asserted against this but fixup never corrected it, causing a failure. Added a dedup pass that keeps each type in only the first group. Also simplified the orphan logic since we no longer need to distinguish corruption orphans from trimmed-group orphans. Added log info to the is_well_formed function to see the reason of failure.

cc @fitzgen

Closes #12892

@khagankhan khagankhan requested a review from a team as a code owner March 30, 2026 21:07
@khagankhan khagankhan requested review from alexcrichton and removed request for a team March 30, 2026 21:07
@alexcrichton alexcrichton requested review from fitzgen and removed request for alexcrichton March 30, 2026 23:41
@github-actions github-actions bot added the fuzzing Issues related to our fuzzing infrastructure label Mar 31, 2026
@github-actions
Copy link
Copy Markdown

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:

  • fitzgen: fuzzing

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

Learn more.

Copy link
Copy Markdown
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Thanks!

@fitzgen fitzgen added this pull request to the merge queue Mar 31, 2026
Merged via the queue into bytecodealliance:main with commit 7e5d864 Mar 31, 2026
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fuzzing Issues related to our fuzzing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gc_ops fuzzer failure: assertion failed: self.is_well_formed(limits)

2 participants