[SR-10690] Access race on _swiftEmptyArrayStorage #53087
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: b3b0db238b3cad96a8c059c9ddd12cab
Issue Description:
The app I'm working on has suddenly started crashing seemingly due to an access race on `_swiftEmptyArrayStorage`. I have never heard of this variable before, but it is mentioned in the crash log:
Two utterly unrelated pieces of the code seem to be simultaneously accessing this global variable. One of them does approximately this:
The top item in that stack trace is `specialized Array.append<A>(contentsOf:)`. This stack trace is the one that is indicated to be doing the reading of the conflicted data. The other stack trace (which is doing the writing to the data) culminates in a function call into a third party library - the top two items in that stack trace are `flip(array:)` and finally `specialized _copySequenceToContiguousArray<A>(_:)`. Based on the information I have this seems like a Swift bug and not a me-bug. If I'm wrong, I'm sorry to waste your time. Thanks very much.
The text was updated successfully, but these errors were encountered: