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

[Tracking] Detect race resolving a promise #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

talex5
Copy link
Contributor

@talex5 talex5 commented Dec 29, 2017

We sometimes don't unset the blocker flag quickly enough, and perform other processing first. This can make us briefly think that a promise is resolved when it isn't. The new test shows a case where this matters: we incorrectly export a capability as SenderHosted (settled) before the status gets updated. When we later try to resolve the promise, the remote side complains.

Add an assert to detect and report the problem earlier. This also triggers on existing test cases.

This PR only detects the bug; it does not fix it.

Bug found by AFL.

Add an assert to detect and report the problem earlier. This also
triggers on existing test cases.

Bug found by AFL.
@talex5 talex5 added the bug label Dec 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant