Description
Previous ID | SR-1776 |
Radar | None |
Original Reporter | wilmerpaulino (JIRA User) |
Type | Bug |
Status | Resolved |
Resolution | Done |
Environment
OS X El Capitan 10.11.5
Swift 2.2.1
Additional Detail from JIRA
Votes | 0 |
Component/s | Foundation |
Labels | Bug, RunTimeCrash |
Assignee | @spevans |
Priority | Medium |
md5: 4cb20fa69be1a55780124d65fee51e97
Issue Description:
While building and testing Foundation for the first time, both of these tests in TestNSTask fail and test_pipe_stdout_and_stderr_same_pipe causes a runtime crash.
error: TestNSTask.test_pipe_stderr : XCTAssertEqual failed: ("cat: invalid_file_name: No such file or directory") is not equal to ("/bin/cat: invalid_file_name: No such file or directory")
fatal error: POSIX command failed with error: 9 – EBADF: file /Users/wilmer/Developer/apple/swift-corelibs-foundation/Foundation/NSTask.swift, line 424
Current stack trace:
0 libswiftCore.dylib 0x00000001012bdb90 swift_reportError + 125
1 libswiftCore.dylib 0x00000001012ddb60 _swift_stdlib_reportFatalErrorInFile + 103
2 libswiftCore.dylib 0x00000001012871a0 partial apply for (_assertionFailed(StaticString, String, StaticString, UInt, flags : UInt32) -> ()).(closure #1).(closure #1).(closure #1) + 99
3 libswiftCore.dylib 0x0000000101285d70 partial apply for thunk + 63
4 libswiftCore.dylib 0x000000010128beb0 partial apply for thunk + 14
5 libswiftCore.dylib 0x00000001010ca250 specialized StaticString.withUTF8Buffer<A> (invoke : (UnsafeBufferPointer<UInt8>) -> A) -> A + 351
6 libswiftCore.dylib 0x0000000101236bb0 specialized (_assertionFailed(StaticString, String, StaticString, UInt, flags : UInt32) -> ()).(closure #1) + 233
7 libswiftCore.dylib 0x00000001012364d0 partial apply for (_assertionFailed(StaticString, String, StaticString, UInt, flags : UInt32) -> ()).(closure #1) + 143
8 libswiftCore.dylib 0x00000001012365b0 partial apply for thunk + 63
9 libswiftCore.dylib 0x00000001010ca250 specialized StaticString.withUTF8Buffer<A> (invoke : (UnsafeBufferPointer<UInt8>) -> A) -> A + 351
10 libswiftCore.dylib 0x00000001010c9b30 _assertionFailed(StaticString, String, StaticString, UInt, flags : UInt32) -> () + 187
11 SwiftFoundation 0x00000001007451e0 posix(Int32) -> () + 367
12 SwiftFoundation 0x0000000100741f20 NSTask.launch() -> () + 5184
13 TestFoundation 0x0000000100255680 TestNSTask.test_pipe_stdout_and_stderr_same_pipe() -> () + 319
14 TestFoundation 0x000000010025b430 partial apply + 26
15 TestFoundation 0x0000000100003ab0 thunk + 24
16 TestFoundation 0x000000010025b7b0 partial apply for thunk + 89
17 SwiftXCTest 0x00000001010126d0 thunk + 47
18 SwiftXCTest 0x0000000101012d60 (test<A where ...> ((A) -> () throws -> ()) -> (XCTestCase) throws -> ()).(closure #1) + 233
19 SwiftXCTest 0x0000000101012750 thunk + 46
20 SwiftXCTest 0x0000000101013a70 partial apply for thunk + 111
21 SwiftXCTest 0x000000010101b990 thunk + 43
22 SwiftXCTest 0x0000000101011630 XCTestCase.invokeTest() -> () + 127
23 SwiftXCTest 0x0000000101011170 XCTestCase.perform(XCTestRun) -> () + 209
24 SwiftXCTest 0x0000000101014710 XCTest.run() -> () + 326
25 SwiftXCTest 0x000000010101da90 XCTestSuite.perform(XCTestRun) -> () + 381
26 SwiftXCTest 0x0000000101014710 XCTest.run() -> () + 326
27 SwiftXCTest 0x000000010101da90 XCTestSuite.perform(XCTestRun) -> () + 381
28 SwiftXCTest 0x0000000101014710 XCTest.run() -> () + 326
29 SwiftXCTest 0x000000010101da90 XCTestSuite.perform(XCTestRun) -> () + 381
30 SwiftXCTest 0x0000000101014710 XCTest.run() -> () + 326
31 SwiftXCTest 0x0000000101009b90 XCTMain([(testCaseClass : XCTestCase.Type, allTests : [(String, (XCTestCase) throws -> ())])]) -> () + 2369
32 TestFoundation 0x00000001001f55c0 type metadata accessor for (testCaseClass : XCTestCase.Type, allTests : [(String, (XCTestCase) throws -> ())]) + 0
33 libdyld.dylib 0x00007fff931f05ac start + 1