[SR-15683] Program crashes when adding many tasks to a TaskGroup on Windows #57962
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Concurrencу
Area → standard library: The `Concurrency` module under the standard library umbrella
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
swift 5.6
TaskGroup
Area → standard library → Concurrency: The `TaskGroup` type
Windows
Platform: Windows
Environment
Windows, snapshot: swift-DEVELOPMENT-SNAPSHOT-2021-12-23-a.
Additional Detail from JIRA
md5: 33cb31c018b26c413b20c4f4c1356a81
Issue Description:
When adding many tasks to a TaskGroup, the program crashes when waiting for the tasks to finish. This doesn't happen on "relatively low" values of upperBound. For example when upperBound = 2500, the code executes fine to the end and prints "Done: 2500". But when for example upperBound > 10000, the program crashes. I cannot reproduce this behavior on macOS or Linux.
The text was updated successfully, but these errors were encountered: