[SR-2339] "Illegal instruction" crash on UInt64 conversions to UInt (armv7 32bit platform) #44946
Labels
arm
Architecture: any ARM
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
standard library
Area: Standard library umbrella
Environment
Swift version 3.0-dev (LLVM e6ce0a6282, Clang 4ca9e01a7c, Swift b906a25)
Target: armv7--linux-gnueabihf
Additional Detail from JIRA
md5: 2a13ba44941fd11781b937d55d57c98d
Issue Description:
Code that relies on conversion from UInt64 to UInt or UInt32 is crashing at run-time on 32bit ARM (armv7) with an error of Illegal instruction.
One example where such code is used is the Swift Package Manager.
The code below replicates the issue:
In this case the UInt(u64sample) step causes the run-time crash
The text was updated successfully, but these errors were encountered: