[SR-7745] DateFormatter implemented in swift-corelibs-foundation isn't thread safe #50285
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
cloned
Resolution: Was resubmitted in the appropriate repository rather than transferred
crash
Bug: A crash, i.e., an abnormal termination of software
Foundation
Linux
Platform: Linux
Attachment: Download
Additional Detail from JIRA
md5: 57280ba56625aceea6c47b821c76de92
Issue Description:
The following piece of code succeeds on Darwin, but fails on Linux:
On Linux, using swift-4.1-release it gives:
I'm attaching reproduction (simple SwiftPM project).
Note that the documentation specifies that date formatter has been thread safe for a while:
https://developer.apple.com/documentation/foundation/dateformatter
While it doesn't explicitly talk about Linux (of course), this is the source of truth for most people.
The text was updated successfully, but these errors were encountered: