[SR-13878] Simple program crashes on exit possibly due to disorderly teardown (v5.3) #56276
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
Environment
swift-5.3-RELEASE
Additional Detail from JIRA
md5: 632ca2b1f3a11eb0fbba76200cb815ef
Issue Description:
Running the program at bottom sometimes prints:
Occasionally, it prints:
However, the following crash consistently reproduces on a Mac and Linux machine:
(I thought there might be a race condition in my code, so I asked about it on StackOverflow: https://stackoverflow.com/questions/64903208/is-this-crash-in-a-swift-script-caused-by-a-race-condition)
To reproduce, run this script:
The text was updated successfully, but these errors were encountered: