Open glbrntt opened 1 month ago
Hmm, these happen when the task local allocator has allocated in some order a b c and frees b before c etc. This is rather unexpected, a discarding taskgroup itself doesn't really task allocate anything hmmm
I'll look into this
Description
One of the tests in the attached repository reliably crashes at runtime. This seems to be related to
DiscardingTaskGroup
as switching toTaskGroup<Void>
doesn't crash.Reproduction
swiftlang/swift:nightly-6.0-jammy
,sha256:4624a3c7404f479e55d69dc5e41f94e399cb0c11f291f81689d81e593b409610
)crash
branch runswift test --filter ClientRPCExecutorTests.testRetriesCantBeExecutedForTooManyRequestMessages
Stack dump
Expected behavior
Test should complete
Environment
Swift version 6.0-dev (LLVM 723ba90c22d3da1, Swift ae7e24dc658e067) Target: aarch64-unknown-linux-gnu
Additional information
fix
branch which switches fromDiscardingTaskGroup
toTaskGroup<Void>
, the same test doesn't crash.