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

[SR-15963] swift::TaskGroup::offer crash #58224

Open
antonvmironov mannequin opened this issue Mar 11, 2022 · 0 comments
Open

[SR-15963] swift::TaskGroup::offer crash #58224

antonvmironov mannequin opened this issue Mar 11, 2022 · 0 comments

Comments

@antonvmironov
Copy link
Mannequin

@antonvmironov antonvmironov mannequin commented Mar 11, 2022

Previous ID SR-15963
Radar None
Original Reporter @antonvmironov
Type Bug

Attachment: Download

Environment

iOS app on various versions of iOS 14 and 15. Apps built on CI with

Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)

Xcode Version 13.2.1 (13C100)

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee None
Priority Medium

md5: 249dbc8206812cc7fccfeaff65944b0e

Issue Description:

A crash observed only in production. Roughly 0.7 crashes per thousand of users daily.

call stack on iOS 14 (65% of logged crashes):

swift::TaskGroup::offer(swift::AsyncTask*, swift::AsyncContext*) + 504
swift::TaskGroup::offer(swift::AsyncTask*, swift::AsyncContext*) + 504
swift::AsyncTask::completeFuture(swift::AsyncContext*) + 132
completeTaskAndRelease(swift::AsyncContext*, swift::SwiftError*) + 128
swift::runJobInEstablishedExecutorContext(swift::Job*) + 144
swift_job_run + 84
_dispatch_client_callout + 20
_dispatch_continuation_pop + 448
_dispatch_async_redirect_invoke + 592
_dispatch_root_queue_drain + 388
_dispatch_worker_thread2 + 112
_pthread_wqthread + 216
start_wqthread + 8

call stack on iOS 15 (35% of logged crashes):

swift::TaskGroup::offer(swift::AsyncTask*, swift::AsyncContext*) + 504
swift::AsyncTask::completeFuture(swift::AsyncContext*) + 132
completeTaskAndRelease(swift::AsyncContext*, swift::SwiftError*) + 128
swift::runJobInEstablishedExecutorContext(swift::Job*) + 196
processDefaultActor((anonymous namespace)::DefaultActorImpl*, (anonymous namespace)::RunningJobInfo) + 976
swift::runJobInEstablishedExecutorContext(swift::Job*) + 60
swift_job_run + 152
_dispatch_root_queue_drain + 328
_dispatch_worker_thread2 + 160
_pthread_wqthread + 224
start_wqthread + 8

Attaching a sample code that closely resembles the one running in production.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants