Skip to content

Comments

[Tracking] Detect race resolving a promise#144

Open
talex5 wants to merge 1 commit intomirage:masterfrom
talex5:resolve-bug
Open

[Tracking] Detect race resolving a promise#144
talex5 wants to merge 1 commit intomirage:masterfrom
talex5:resolve-bug

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