[SR-15474] Unawaited async let crashes when it goes out of scope #57779
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
concurrency
Feature: umbrella label for concurrency language features
Linux
Platform: Linux
runtime
The Swift Runtime
standard library
Area: Standard library umbrella
Environment
Darwin hiimtmac.localdomain 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:23 PDT 2021; root:xnu-8019.41.5~1/RELEASE_X86_64 x86_64 Xcode 13.1 Build version 13A1030d Swift version 5.5.1 (swift-5.5.1-RELEASE) Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
md5: 8dd3461f2b203191394482dd01384ec5
Issue Description:
Allowing an
async let
to go out of scope without everawait
ing it causes a crash.The crash does not happen in LLDB unless the offending
async let
is within anawait
ed context.The following code crashes on Linux, but not on macOS:
I've created a repo that reproduces the crash: https://github.com/hiimtmac/swift-bug
LLDB trace:
The text was updated successfully, but these errors were encountered: