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 · 1 comment
Open

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

antonvmironov mannequin opened this issue Mar 11, 2022 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. concurrency Feature: umbrella label for concurrency language features crash Bug: A crash, i.e., an abnormal termination of software run-time crash Bug → crash: Swift code crashed during execution standard library Area: Standard library umbrella

Comments

@antonvmironov
Copy link
Mannequin

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
@lionserdar
Copy link

any update on this issue ?

@AnthonyLatsis AnthonyLatsis added run-time crash Bug → crash: Swift code crashed during execution crash Bug: A crash, i.e., an abnormal termination of software concurrency Feature: umbrella label for concurrency language features labels Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. concurrency Feature: umbrella label for concurrency language features crash Bug: A crash, i.e., an abnormal termination of software run-time crash Bug → crash: Swift code crashed during execution standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants