Skip to content
New issue

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

[SR-5871] TestThread.test_threadStart failing sporadically on Ubuntu 14.04 #3808

Closed
benlangmuir opened this issue Sep 11, 2017 · 4 comments
Closed
Assignees

Comments

@benlangmuir
Copy link
Member

Previous ID SR-5871
Radar None
Original Reporter @benlangmuir
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee @spevans
Priority Medium

md5: 1ee445eb3c060aa4fbdf7b029d449857

Issue Description:

https://ci.swift.org/job/oss-swift-package-linux-ubuntu-14_04/252/
https://ci.swift.org/job/oss-swift-package-linux-ubuntu-14_04/245/

Test Case 'TestThread.test_threadStart' started at 2017-09-11 17:19:22.962
TestFoundation/TestThread.swift:54: error: TestThread.test_threadStart : XCTAssertTrue failed - NSCondition wait timed out
Test Case 'TestThread.test_threadStart' failed (10.0 seconds)

Has failed twice recently on 14.04.

@belkadan
Copy link

cc @phausler

@benlangmuir
Copy link
Member Author

Similar failure for test_mainThread in https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/507/

@spevans
Copy link
Collaborator

spevans commented Sep 14, 2017

#1218

Ive seen this issue occur sparodically under Xcode as well. I think the parent just needs to get the NSCondition lock before creating the thread else the thread could broadcast before the parent has waited on it.

@spevans
Copy link
Collaborator

spevans commented Sep 26, 2017

Should be fixed now, reopen if its seen again on the CI servers

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants