Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(xsnap): GC divergence fixes #6758

Merged
merged 1 commit into from
Jan 12, 2023
Merged

Conversation

mhofman
Copy link
Member

@mhofman mhofman commented Jan 6, 2023

closes: #6588

Description

This PR cherry picks the Moddable SDK fixes identified to cause GC divergences after reloading from a snapshot, which are the root cause of the anachrophobia issues that have been experienced on mainnet by some validators, and tracked in #6588.

Security Considerations

See testing below

Documentation Considerations

TBD

Testing Considerations

I have verified that an xsnap worker with these fixes can load any snapshot generated by a non fixed version, and that all variations behave consistently except for the expected Virtual Collection syscalls sensitive to organic GC. There should be no risk of anachrophobia resulting in panic, or future divergence in execution by validators.

If we're lucky, at the time of a future in consensus upgrade (see #6728), all validators with have the same snapshot content. If that's the case, from then on, all will behave exactly the same including for VC syscall timing, and keep the same snapshot hashes.

Please note however that none of these snapshot hashes will likely be what we'd consider to be the "correct" hashes had the fixed versions been used since agd upgrade.

@mhofman mhofman requested a review from warner January 6, 2023 16:29
@mhofman mhofman linked an issue Jan 6, 2023 that may be closed by this pull request
@mhofman
Copy link
Member Author

mhofman commented Jan 11, 2023

Ping @warner, this is blocking #6728

Copy link
Member

@warner warner left a comment

Choose a reason for hiding this comment

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

As far as I can tell, those changes seem good.

@mhofman mhofman added the automerge:squash Automatically squash merge label Jan 12, 2023
@mergify mergify bot merged commit fc6afec into release-pismo Jan 12, 2023
@mergify mergify bot deleted the mhofman/6588-fix-moddable branch January 12, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:squash Automatically squash merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

anachrophobia strikes vat v18 on restarting agoric on mainnet
2 participants