Task Local Value Binding crash when used legally using withTaskGroup
#73217
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
Description
A number of users of MongoKitten use the driver with task groups. I've long recommended using MongoKitten's database cursors as an async sequence to iterate results. However, often times, developers want to iterate a sequence to spawn work using a task group.
From my perspective at least, no illegal task local binding happens. But since MongoKitten's
find()
function uses swift-distributed-tracing, the compiler spawns an assertionFailure.Reproduction
Stack dump
Expected behavior
The task local binding works in this instance.
Environment
Xcode 15.3's bundled Swift toolchain
Additional information
No response
The text was updated successfully, but these errors were encountered: