Skip to content

[5.5] [Runtime] Resume to the generic executor in the absence of an override. #38601

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

Conversation

varungandhi-apple
Copy link
Contributor

Without this fix, we saw a crash involving URLSession where we'd hit
assertions or corruption in the runtime in various forms:

  • Assertion on trying to enqueue work onto a zombie actor.
  • job->SchedulerPrivate being overwritten (crash in getNextJobInQueue).
  • *(job->SchedulerPrivate) being overwritten (crash in getAsPreprocessedJob
    right after call to getNextJobInQueue).

I haven't been able to create a minimal crashing example yet, but manual
testing shows this does fix the issue.

Fixes rdar://79859254.

(cherry picked from commit d348fd9)

Without this fix, we saw a crash involving URLSession where we'd hit
assertions or corruption in the runtime in various forms:
- Assertion on trying to enqueue work onto a zombie actor.
- job->SchedulerPrivate being overwritten (crash in getNextJobInQueue).
- *(job->SchedulerPrivate) being overwritten (crash in getAsPreprocessedJob
  right after call to getNextJobInQueue).

I haven't been able to create a minimal crashing example yet, but manual
testing shows this does fix the issue.

Fixes rdar://79859254.

(cherry picked from commit d348fd9)
@varungandhi-apple varungandhi-apple requested a review from a team as a code owner July 23, 2021 04:29
@varungandhi-apple
Copy link
Contributor Author

main PR: #38600

@varungandhi-apple
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 8bd1352

@varungandhi-apple
Copy link
Contributor Author

@swift-ci test Linux

@DougGregor DougGregor merged commit 592c1e8 into swiftlang:release/5.5 Jul 23, 2021
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.

3 participants