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
Process
Pipe
Ubuntu 18.04; Swift 5.0.1 release, same on swift-DEVELOPMENT-SNAPSHOT-2019-05-07-a-ubuntu18.04
md5: 1ad90002f690ee22118f79102bc6ecde
relates to:
Issue Description:
Following code crashes on Linux:
import Foundation let ls = Process() ls.executableURL = URL(fileURLWithPath: "/bin/ls") let cat = Process() cat.executableURL = URL(fileURLWithPath: "/bin/cat") let pipe = Pipe() ls.standardOutput = pipe cat.standardInput = pipe try! ls.run() try! cat.run() cat.waitUntilExit()
Console output:
Fatal error: POSIX command failed with error: 9 – EBADF: file /home/buildnode/jenkins/workspace/oss-swift-package-linux-ubuntu-18_04/swift-corelibs-foundation/Foundation/Process.swift, line 977 Illegal instruction (core dumped)
The text was updated successfully, but these errors were encountered:
This should be fixed by #2553 which is also the fix for https://bugs.swift.org/browse/SR-11699
Sorry, something went wrong.
This has been merged into master and is fixed in swift-DEVELOPMENT-SNAPSHOT-2019-11-12-a-ubuntu18.04
master
$ ls sr-10639.swift $ cat sr-10639.swift import Foundation let ls = Process() ls.executableURL = URL(fileURLWithPath: "/bin/ls") let cat = Process() cat.executableURL = URL(fileURLWithPath: "/bin/cat") let pipe = Pipe() ls.standardOutput = pipe cat.standardInput = pipe try! ls.run() try! cat.run() cat.waitUntilExit() $ ~/swift-DEVELOPMENT-SNAPSHOT-2019-11-12-a-ubuntu18.04/usr/bin/swift sr-10639.swift sr-10639.swift
spevans
No branches or pull requests
Environment
Ubuntu 18.04; Swift 5.0.1 release, same on swift-DEVELOPMENT-SNAPSHOT-2019-05-07-a-ubuntu18.04
Additional Detail from JIRA
md5: 1ad90002f690ee22118f79102bc6ecde
relates to:
Issue Description:
Following code crashes on Linux:
Console output:
The text was updated successfully, but these errors were encountered: