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

Don't await_del if it's resolved #5

Merged
merged 1 commit into from
Feb 27, 2019
Merged

Don't await_del if it's resolved #5

merged 1 commit into from
Feb 27, 2019

Conversation

dwd
Copy link
Owner

@dwd dwd commented Feb 27, 2019

On Windows, there appears to be a bug in destructor ordering,
which causes the task to be destroyed prior to the awaiter. This
causes an SEH (ie, SEGV).

To work around this - and it may well be undefined territory - the
awaiter doesn't bother calling await_del if the awaiter has resolved,
or await_resume called already.

On Windows, there appears to be a bug in destructor ordering,
which causes the task to be destroyed prior to the awaiter. This
causes an SEH (ie, SEGV).

To work around this - and it may well be undefined territory - the
awaiter doesn't bother calling await_del if the awaiter has resolved,
or await_resume called already.
@dwd dwd merged commit b1ecdd6 into master Feb 27, 2019
@dwd dwd deleted the fix-seh branch February 27, 2019 18:03
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.

1 participant