We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attachment: Download
md5: caf078cbdaea9431bcf4fecd701035b4
Issue Description:
The following program spawns /usr/bin/env and tries to close fileHandleForWriting for stdin.
/usr/bin/env
fileHandleForWriting
stdin
This was run on Linux and it always crashes with: Fatal error: POSIX command failed with error: 9 – EBADF. On macOS works fine.
Fatal error: POSIX command failed with error: 9 – EBADF
This affects Swift 5.1, but seems to be working on the latest master snapshot probably due to this PR.
import Foundation let process = Process() process.executableURL = URL(fileURLWithPath: "/usr/bin/env") let inputPipe = Pipe() try! inputPipe.fileHandleForWriting.close() process.standardInput = inputPipe try! process.run()
swift File.swift && ./File
# assuming File.swift is in the working directory docker run --privileged --rm -v "$PWD:$PWD" -w "$PWD" -it swift:5.1 bash -c 'swiftc File.swift && ./File'
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
The PR was backported to 5.1 in #2608 so should be in the 5.1.4 release
This is working correcting in s{{wift-5.2-RELEASE-ubuntu18.04}}, swift-5.3-DEVELOPMENT-SNAPSHOT-2020-05-04-a-ubuntu18.04 and master
swift-5.3-DEVELOPMENT-SNAPSHOT-2020-05-04-a-ubuntu18.04
master
No branches or pull requests
Attachment: Download
Additional Detail from JIRA
md5: caf078cbdaea9431bcf4fecd701035b4
Issue Description:
description
The following program spawns
/usr/bin/env
and tries to closefileHandleForWriting
forstdin
.This was run on Linux and it always crashes with:
Fatal error: POSIX command failed with error: 9 – EBADF
. On macOS works fine.This affects Swift 5.1, but seems to be working on the latest master snapshot probably due to this PR.
program
Repro:
on Linux
on macOS (via docker)
The text was updated successfully, but these errors were encountered: