You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the following Swift code with the official Swift 4.2 Docker image works as expected. However, with the Swift 5 Docker image it prints this output and exits with code 132:
Creating UTF-8 data for string ''
Writing data for string '' to file handle
Illegal instruction
Sample code:
importFoundationclassFileHandleOutputStream: TextOutputStream {
letfileHandle: FileHandleinit(_fileHandle: FileHandle) {
self.fileHandle = fileHandle
}
funcwrite(_string: String) {
print("Creating UTF-8 data for string '\(string)'")
letdata = string.data(using: .utf8)!
print("Writing data for string '\(string)' to file handle")
self.fileHandle.write(data)
}
}
varstandardOutputStream = FileHandleOutputStream(FileHandle.standardOutput)
print("Hello", to: &standardOutputStream)
The text was updated successfully, but these errors were encountered:
Environment
Official Docker image for Swift 5.0
Swift version 5.0 (swift-5.0-RELEASE)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
md5: fc6ebb046c3f6caa70d8bace8de15f7f
Issue Description:
Running the following Swift code with the official Swift 4.2 Docker image works as expected. However, with the Swift 5 Docker image it prints this output and exits with code 132:
Sample code:
The text was updated successfully, but these errors were encountered: