Description
Previous ID | SR-16079 |
Radar | None |
Original Reporter | @adam-fowler |
Type | Bug |
Environment
swift-driver version: 1.45.2 Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
Target: x86_64-apple-macosx12.0
Additional Detail from JIRA
Votes | 0 |
Component/s | Package Manager |
Labels | Bug |
Assignee | None |
Priority | Medium |
md5: 81090cc4329894afe64d435f0c2d4b6d
Issue Description:
It is possible to hang `swift test` by building your package using the address sanitizer and then requesting to list tests while skipping build and using the thread sanitizer. It appears `swift test` is waiting on results from `swiftpm-xctest-helper`. When you kill the `swift test` process it does not kill the `swiftpm-xctest-helper` process which continues to use 100% of one processor and will run indefinitely.
Repro steps:
git clone https://github.com/apple/swift-nio
cd swift-nio
swift build --sanitize=address --build-tests
swift test --list-tests --skip-build --sanitize=thread
Expected:
`swift test` call will either successfully return an error or provide the list of tests
Actual:
`swift test` never returns and leaves an orphaned process `swiftpm-xctest-helper` when killed.
This only occurs on macOS