[6.0] Mutex with enum value inside non-copyable crashes on linux #80177
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
swift 6.0
triage needed
This issue needs more specific labels
Description
I was chasing after the strangest problem that only showed up in linux release builds (6.0.3, official docker image, ARM) for me.
Debug builds and macOS were fine.
I was able to shrink it down to the example below, but I have no idea what is going on.
The enum must have both cases for the problem to show (with associated values).
It also seems to matter that it is inside a non-copyable struct (class works).
Reproduction
Stack dump
Expected behavior
no crashers
Environment
Swift version 6.0.3 (swift-6.0.3-RELEASE)
Target: aarch64-unknown-linux-gnu
Additional information
No response
The text was updated successfully, but these errors were encountered: