Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

threading issues #210

@weissi

Description

@weissi

at least the following tests experience thread unsafety:

  • AsyncTests.AsyncTests testSyncFlatten
  • CoreTests.CoreTests testProcessAsyncExecute
  • CoreTests.CoreTests testProcessExecute
  • ...
$ swift test --sanitize=thread
[146/146] Linking CorePackageTests
Test Suite 'All tests' started at 2019-09-09 9:48:05.465 pm
Test Suite 'CorePackageTests.xctest' started at 2019-09-09 9:48:05.465 pm
Test Suite 'AsyncTests' started at 2019-09-09 9:48:05.466 pm
Test Case '-[AsyncTests.AsyncTests testFlatten]' started.
Test Case '-[AsyncTests.AsyncTests testFlatten]' passed (0.102 seconds).
Test Case '-[AsyncTests.AsyncTests testFlattenEmpty]' started.
Test Case '-[AsyncTests.AsyncTests testFlattenEmpty]' passed (0.001 seconds).
Test Case '-[AsyncTests.AsyncTests testFlattenFail]' started.
Test Case '-[AsyncTests.AsyncTests testFlattenFail]' passed (0.001 seconds).
Test Case '-[AsyncTests.AsyncTests testFlattenPerformance]' started.
/Users/johannes/extsrc/core/Tests/AsyncTests/AsyncTests.swift:73: Test Case '-[AsyncTests.AsyncTests testFlattenPerformance]' measured [Time, seconds] average: 2.042, relative standard deviation: 9.565%, values: [2.385000, 2.420854, 2.106240, 1.999354, 1.911730, 2.019448, 1.822433, 1.895233, 1.904915, 1.951264], performanceMetricID:com.apple.XCTPerformanceMetric_WallClockTime, baselineName: "", baselineAverage: , maxPercentRegression: 10.000%, maxPercentRelativeStandardDeviation: 10.000%, maxRegression: 0.100, maxStandardDeviation: 0.100
Test Case '-[AsyncTests.AsyncTests testFlattenPerformance]' passed (24.367 seconds).
Test Case '-[AsyncTests.AsyncTests testFlattenStackOverflow]' started.
Test Case '-[AsyncTests.AsyncTests testFlattenStackOverflow]' passed (0.093 seconds).
Test Case '-[AsyncTests.AsyncTests testFlattenStress]' started.
Test Case '-[AsyncTests.AsyncTests testFlattenStress]' passed (18.868 seconds).
Test Case '-[AsyncTests.AsyncTests testSyncFlatten]' started.
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f01758 by thread T5:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25126c)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #1 in closure #1 in AsyncTests.testSyncFlatten() AsyncTests.swift:93 (CorePackageTests:x86_64+0x25cda)
    #5 partial apply for closure #1 in closure #1 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x2c1ff)
    #6 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #7 __tsan::invoke_and_release_block(void*) <null>:523904 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #8 _dispatch_client_callout <null>:523904 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f01758 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:54 (CorePackageTests:x86_64+0x24e2dd)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:629 (CorePackageTests:x86_64+0x2573b1)
    #4 EventLoopFuture.do(_:) Future+DoCatch.swift:14 (CorePackageTests:x86_64+0x4056)
    #5 handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) Future+Flatten.swift:18 (CorePackageTests:x86_64+0x5490)
    #6 Collection.syncFlatten<A>(on:) Future+Flatten.swift:34 (CorePackageTests:x86_64+0x4fa8)
    #7 AsyncTests.testSyncFlatten() AsyncTests.swift:100 (CorePackageTests:x86_64+0x240c7)
    #8 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #9 __invoking___ <null>:523904 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f01720 allocated by main thread:
    #0 malloc <null>:523936 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:523936 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 closure #1 in AsyncTests.testSyncFlatten() AsyncTests.swift:89 (CorePackageTests:x86_64+0x258f7)
    #7 partial apply for closure #1 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26a17)
    #8 thunk for @escaping @callee_guaranteed () -> (@owned EventLoopFuture<Int>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x25fa6)
    #9 partial apply for thunk for @escaping @callee_guaranteed () -> (@owned EventLoopFuture<Int>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x26ac7)
    #10 thunk for @escaping @callee_guaranteed () -> (@out EventLoopFuture<A1>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x5dc3)
    #11 partial apply for thunk for @escaping @callee_guaranteed () -> (@out EventLoopFuture<A1>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x5f0d)
    #12 handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) Future+Flatten.swift:18 (CorePackageTests:x86_64+0x530c)
    #13 Collection.syncFlatten<A>(on:) Future+Flatten.swift:34 (CorePackageTests:x86_64+0x4fa8)
    #14 AsyncTests.testSyncFlatten() AsyncTests.swift:100 (CorePackageTests:x86_64+0x240c7)
    #15 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #16 __invoking___ <null>:523936 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T5 (tid=826541, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f01760 by thread T5:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25128f)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #1 in closure #1 in AsyncTests.testSyncFlatten() AsyncTests.swift:93 (CorePackageTests:x86_64+0x25cda)
    #5 partial apply for closure #1 in closure #1 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x2c1ff)
    #6 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #7 __tsan::invoke_and_release_block(void*) <null>:523904 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #8 _dispatch_client_callout <null>:523904 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f01760 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:54 (CorePackageTests:x86_64+0x24e2fb)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:629 (CorePackageTests:x86_64+0x2573b1)
    #4 EventLoopFuture.do(_:) Future+DoCatch.swift:14 (CorePackageTests:x86_64+0x4056)
    #5 handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) Future+Flatten.swift:18 (CorePackageTests:x86_64+0x5490)
    #6 Collection.syncFlatten<A>(on:) Future+Flatten.swift:34 (CorePackageTests:x86_64+0x4fa8)
    #7 AsyncTests.testSyncFlatten() AsyncTests.swift:100 (CorePackageTests:x86_64+0x240c7)
    #8 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #9 __invoking___ <null>:523904 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f01720 allocated by main thread:
    #0 malloc <null>:523936 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:523936 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 closure #1 in AsyncTests.testSyncFlatten() AsyncTests.swift:89 (CorePackageTests:x86_64+0x258f7)
    #7 partial apply for closure #1 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26a17)
    #8 thunk for @escaping @callee_guaranteed () -> (@owned EventLoopFuture<Int>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x25fa6)
    #9 partial apply for thunk for @escaping @callee_guaranteed () -> (@owned EventLoopFuture<Int>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x26ac7)
    #10 thunk for @escaping @callee_guaranteed () -> (@out EventLoopFuture<A1>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x5dc3)
    #11 partial apply for thunk for @escaping @callee_guaranteed () -> (@out EventLoopFuture<A1>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x5f0d)
    #12 handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) Future+Flatten.swift:18 (CorePackageTests:x86_64+0x530c)
    #13 Collection.syncFlatten<A>(on:) Future+Flatten.swift:34 (CorePackageTests:x86_64+0x4fa8)
    #14 AsyncTests.testSyncFlatten() AsyncTests.swift:100 (CorePackageTests:x86_64+0x240c7)
    #15 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #16 __invoking___ <null>:523936 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T5 (tid=826541, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f01768 by thread T5:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x2512b3)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #1 in closure #1 in AsyncTests.testSyncFlatten() AsyncTests.swift:93 (CorePackageTests:x86_64+0x25cda)
    #5 partial apply for closure #1 in closure #1 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x2c1ff)
    #6 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #7 __tsan::invoke_and_release_block(void*) <null>:523904 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #8 _dispatch_client_callout <null>:523904 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f01768 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:59 (CorePackageTests:x86_64+0x24e693)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.whenFailure(_:) EventLoopFuture.swift:648 (CorePackageTests:x86_64+0x2595ce)
    #4 EventLoopFuture.catch(_:) Future+DoCatch.swift:29 (CorePackageTests:x86_64+0x4133)
    #5 handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) Future+Flatten.swift:25 (CorePackageTests:x86_64+0x558f)
    #6 Collection.syncFlatten<A>(on:) Future+Flatten.swift:34 (CorePackageTests:x86_64+0x4fa8)
    #7 AsyncTests.testSyncFlatten() AsyncTests.swift:100 (CorePackageTests:x86_64+0x240c7)
    #8 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #9 __invoking___ <null>:523904 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f01720 allocated by main thread:
    #0 malloc <null>:523936 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:523936 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 closure #1 in AsyncTests.testSyncFlatten() AsyncTests.swift:89 (CorePackageTests:x86_64+0x258f7)
    #7 partial apply for closure #1 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26a17)
    #8 thunk for @escaping @callee_guaranteed () -> (@owned EventLoopFuture<Int>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x25fa6)
    #9 partial apply for thunk for @escaping @callee_guaranteed () -> (@owned EventLoopFuture<Int>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x26ac7)
    #10 thunk for @escaping @callee_guaranteed () -> (@out EventLoopFuture<A1>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x5dc3)
    #11 partial apply for thunk for @escaping @callee_guaranteed () -> (@out EventLoopFuture<A1>, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x5f0d)
    #12 handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) Future+Flatten.swift:18 (CorePackageTests:x86_64+0x530c)
    #13 Collection.syncFlatten<A>(on:) Future+Flatten.swift:34 (CorePackageTests:x86_64+0x4fa8)
    #14 AsyncTests.testSyncFlatten() AsyncTests.swift:100 (CorePackageTests:x86_64+0x240c7)
    #15 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #16 __invoking___ <null>:523936 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T5 (tid=826541, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b140000d4b8 by thread T13:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25126c)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #1 in handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) Future+Flatten.swift:23 (CorePackageTests:x86_64+0x5c86)
    #5 partial apply for closure #1 in handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) <compiler-generated> (CorePackageTests:x86_64+0x67e1)
    #6 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #7 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #8 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #9 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #10 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #11 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #12 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #13 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #14 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #15 closure #1 in closure #1 in AsyncTests.testSyncFlatten() AsyncTests.swift:93 (CorePackageTests:x86_64+0x25cda)
    #16 partial apply for closure #1 in closure #1 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x2c1ff)
    #17 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #18 __tsan::invoke_and_release_block(void*) <null>:1593392 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #19 _dispatch_client_callout <null>:1593392 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b140000d4b8 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:54 (CorePackageTests:x86_64+0x24e2dd)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:818 (CorePackageTests:x86_64+0x25ddb8)
    #4 AsyncTests.testSyncFlatten() AsyncTests.swift:101 (CorePackageTests:x86_64+0x2426e)
    #5 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #6 __invoking___ <null>:1593392 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b140000d480 allocated by main thread:
    #0 malloc <null>:1593424 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1593424 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 Collection.syncFlatten<A>(on:) Future+Flatten.swift:10 (CorePackageTests:x86_64+0x4a91)
    #7 AsyncTests.testSyncFlatten() AsyncTests.swift:100 (CorePackageTests:x86_64+0x240c7)
    #8 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #9 __invoking___ <null>:1593424 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b140000d4c0 by thread T13:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25128f)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #1 in handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) Future+Flatten.swift:23 (CorePackageTests:x86_64+0x5c86)
    #5 partial apply for closure #1 in handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) <compiler-generated> (CorePackageTests:x86_64+0x67e1)
    #6 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #7 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #8 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #9 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #10 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #11 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #12 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #13 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #14 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #15 closure #1 in closure #1 in AsyncTests.testSyncFlatten() AsyncTests.swift:93 (CorePackageTests:x86_64+0x25cda)
    #16 partial apply for closure #1 in closure #1 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x2c1ff)
    #17 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #18 __tsan::invoke_and_release_block(void*) <null>:1593392 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #19 _dispatch_client_callout <null>:1593392 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b140000d4c0 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:54 (CorePackageTests:x86_64+0x24e2fb)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:818 (CorePackageTests:x86_64+0x25ddb8)
    #4 AsyncTests.testSyncFlatten() AsyncTests.swift:101 (CorePackageTests:x86_64+0x2426e)
    #5 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #6 __invoking___ <null>:1593392 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b140000d480 allocated by main thread:
    #0 malloc <null>:1593424 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1593424 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 Collection.syncFlatten<A>(on:) Future+Flatten.swift:10 (CorePackageTests:x86_64+0x4a91)
    #7 AsyncTests.testSyncFlatten() AsyncTests.swift:100 (CorePackageTests:x86_64+0x240c7)
    #8 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #9 __invoking___ <null>:1593424 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b0c00060588 by thread T13:
    #0 ConditionLock.lock() lock.swift:121 (CorePackageTests:x86_64+0x343ab2)
    #1 closure #2 in EventLoopFuture.wait(file:line:) EventLoopFuture.swift:819 (CorePackageTests:x86_64+0x25e96c)
    #2 partial apply for closure #2 in EventLoopFuture.wait(file:line:) <compiler-generated> (CorePackageTests:x86_64+0x26458f)
    #3 CallbackList._run() EventLoopFuture.swift:82 (CorePackageTests:x86_64+0x24ef00)
    #4 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #5 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #6 closure #1 in handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) Future+Flatten.swift:23 (CorePackageTests:x86_64+0x5c86)
    #7 partial apply for closure #1 in handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) <compiler-generated> (CorePackageTests:x86_64+0x67e1)
    #8 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #9 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #10 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #11 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #12 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #13 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #14 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #15 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #16 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #17 closure #1 in closure #1 in AsyncTests.testSyncFlatten() AsyncTests.swift:93 (CorePackageTests:x86_64+0x25cda)
    #18 partial apply for closure #1 in closure #1 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x2c1ff)
    #19 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #20 __tsan::invoke_and_release_block(void*) <null>:1592224 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #21 _dispatch_client_callout <null>:1592224 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b0c00060588 by main thread:
    #0 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x343609)
    #1 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #2 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #3 AsyncTests.testSyncFlatten() AsyncTests.swift:101 (CorePackageTests:x86_64+0x2426e)
    #4 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #5 __invoking___ <null>:1592224 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 40 at 0x7b0c00060570 allocated by main thread:
    #0 malloc <null>:1592256 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1592256 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #3 AsyncTests.testSyncFlatten() AsyncTests.swift:101 (CorePackageTests:x86_64+0x2426e)
    #4 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #5 __invoking___ <null>:1592256 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race lock.swift:121 in ConditionLock.lock()
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b0800026db0 by thread T13:
    #0 Lock.lock() lock.swift:55 (CorePackageTests:x86_64+0x342cbe)
    #1 ConditionLock.lock() lock.swift:121 (CorePackageTests:x86_64+0x343ac3)
    #2 closure #2 in EventLoopFuture.wait(file:line:) EventLoopFuture.swift:819 (CorePackageTests:x86_64+0x25e96c)
    #3 partial apply for closure #2 in EventLoopFuture.wait(file:line:) <compiler-generated> (CorePackageTests:x86_64+0x26458f)
    #4 CallbackList._run() EventLoopFuture.swift:82 (CorePackageTests:x86_64+0x24ef00)
    #5 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #6 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #7 closure #1 in handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) Future+Flatten.swift:23 (CorePackageTests:x86_64+0x5c86)
    #8 partial apply for closure #1 in handle #1 <A><A1>(_:) in Collection.syncFlatten<A>(on:) <compiler-generated> (CorePackageTests:x86_64+0x67e1)
    #9 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #10 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #11 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #12 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #13 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #14 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #15 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #16 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #17 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #18 closure #1 in closure #1 in AsyncTests.testSyncFlatten() AsyncTests.swift:93 (CorePackageTests:x86_64+0x25cda)
    #19 partial apply for closure #1 in closure #1 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x2c1ff)
    #20 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #21 __tsan::invoke_and_release_block(void*) <null>:1592096 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #22 _dispatch_client_callout <null>:1592096 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b0800026db0 by main thread:
    #0 Lock.init() lock.swift:36 (CorePackageTests:x86_64+0x34298f)
    #1 Lock.__allocating_init() lock.swift (CorePackageTests:x86_64+0x342854)
    #2 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x3435bc)
    #3 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #4 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #5 AsyncTests.testSyncFlatten() AsyncTests.swift:101 (CorePackageTests:x86_64+0x2426e)
    #6 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #7 __invoking___ <null>:1592096 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 24 at 0x7b0800026da0 allocated by main thread:
    #0 malloc <null>:1592128 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1592128 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x3435bc)
    #3 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #4 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #5 AsyncTests.testSyncFlatten() AsyncTests.swift:101 (CorePackageTests:x86_64+0x2426e)
    #6 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #7 __invoking___ <null>:1592128 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race lock.swift:55 in Lock.lock()
==================
==================
WARNING: ThreadSanitizer: Swift access race (pid=12902)
  Read of size 8 at 0x7b080001b350 by main thread:
    #0 implicit closure #2 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x261cf)
    #1 partial apply for implicit closure #2 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x2623b)
    #2 thunk for @callee_guaranteed () -> (@owned [Int], @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x21a46)
    #3 thunk for @callee_guaranteed () -> (@owned [Int], @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0x262b7)
    #4 closure #1 in XCTAssertEqual<A>(_:_:_:file:line:) <null> (libswiftXCTest.dylib:x86_64+0xa083)
    #5 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #6 __invoking___ <null> (CoreFoundation:x86_64h+0x4aa1b)

  Previous modifying access of Swift variable at 0x7b080001b350 by thread T13:
    #0 closure #1 in closure #1 in AsyncTests.testSyncFlatten() AsyncTests.swift:94 (CorePackageTests:x86_64+0x25d37)
    #1 partial apply for closure #1 in closure #1 in AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x2c1ff)
    #2 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #3 __tsan::invoke_and_release_block(void*) <null> (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #4 _dispatch_client_callout <null> (libdispatch.dylib:x86_64+0x34dd)

  Location is heap block of size 24 at 0x7b080001b340 allocated by main thread:
    #0 malloc <null> (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null> (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 @objc AsyncTests.testSyncFlatten() <compiler-generated> (CorePackageTests:x86_64+0x26b77)
    #3 __invoking___ <null> (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: Swift access race <compiler-generated> in implicit closure #2 in AsyncTests.testSyncFlatten()
==================
Test Case '-[AsyncTests.AsyncTests testSyncFlatten]' passed (1.644 seconds).
Test Case '-[AsyncTests.AsyncTests testVariadicMap]' started.
Test Case '-[AsyncTests.AsyncTests testVariadicMap]' passed (0.001 seconds).
Test Suite 'AsyncTests' passed at 2019-09-09 9:48:50.542 pm.
	 Executed 8 tests, with 0 failures (0 unexpected) in 45.076 (45.077) seconds
Test Suite 'ByteBufferPeekTests' started at 2019-09-09 9:48:50.543 pm
Test Case '-[BitsTests.ByteBufferPeekTests testPeekBinaryFloatingPoint]' started.
Test Case '-[BitsTests.ByteBufferPeekTests testPeekBinaryFloatingPoint]' passed (0.001 seconds).
Test Case '-[BitsTests.ByteBufferPeekTests testPeekBytes]' started.
Test Case '-[BitsTests.ByteBufferPeekTests testPeekBytes]' passed (0.001 seconds).
Test Case '-[BitsTests.ByteBufferPeekTests testPeekData]' started.
Test Case '-[BitsTests.ByteBufferPeekTests testPeekData]' passed (0.001 seconds).
Test Case '-[BitsTests.ByteBufferPeekTests testPeekFirstByte]' started.
Test Case '-[BitsTests.ByteBufferPeekTests testPeekFirstByte]' passed (0.001 seconds).
Test Case '-[BitsTests.ByteBufferPeekTests testPeekFixedWidthInteger]' started.
Test Case '-[BitsTests.ByteBufferPeekTests testPeekFixedWidthInteger]' passed (0.001 seconds).
Test Case '-[BitsTests.ByteBufferPeekTests testPeekString]' started.
Test Case '-[BitsTests.ByteBufferPeekTests testPeekString]' passed (0.001 seconds).
Test Suite 'ByteBufferPeekTests' passed at 2019-09-09 9:48:50.548 pm.
	 Executed 6 tests, with 0 failures (0 unexpected) in 0.005 (0.005) seconds
Test Suite 'ByteBufferRequireTests' started at 2019-09-09 9:48:50.548 pm
Test Case '-[BitsTests.ByteBufferRequireTests testRequireBinaryFloatingPoint]' started.
Test Case '-[BitsTests.ByteBufferRequireTests testRequireBinaryFloatingPoint]' passed (0.003 seconds).
Test Case '-[BitsTests.ByteBufferRequireTests testRequireData]' started.
Test Case '-[BitsTests.ByteBufferRequireTests testRequireData]' passed (0.002 seconds).
Test Case '-[BitsTests.ByteBufferRequireTests testRequireFixedWidthInteger]' started.
Test Case '-[BitsTests.ByteBufferRequireTests testRequireFixedWidthInteger]' passed (0.002 seconds).
Test Case '-[BitsTests.ByteBufferRequireTests testRequireString]' started.
Test Case '-[BitsTests.ByteBufferRequireTests testRequireString]' passed (0.002 seconds).
Test Suite 'ByteBufferRequireTests' passed at 2019-09-09 9:48:50.558 pm.
	 Executed 4 tests, with 0 failures (0 unexpected) in 0.009 (0.009) seconds
Test Suite 'CoreTests' started at 2019-09-09 9:48:50.558 pm
Test Case '-[CoreTests.CoreTests testBase64]' started.
Test Case '-[CoreTests.CoreTests testBase64]' passed (0.001 seconds).
Test Case '-[CoreTests.CoreTests testBase64URL]' started.
Test Case '-[CoreTests.CoreTests testBase64URL]' passed (0.001 seconds).
Test Case '-[CoreTests.CoreTests testBase64URLEscaping]' started.
Test Case '-[CoreTests.CoreTests testBase64URLEscaping]' passed (0.003 seconds).
Test Case '-[CoreTests.CoreTests testHeaderValue]' started.
Test Case '-[CoreTests.CoreTests testHeaderValue]' passed (0.002 seconds).
Test Case '-[CoreTests.CoreTests testHexEncodedString]' started.
Test Case '-[CoreTests.CoreTests testHexEncodedString]' passed (0.000 seconds).
Test Case '-[CoreTests.CoreTests testProcessAsyncExecute]' started.
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Write of size 1 at 0x7b0800010130 by thread T15:
    #0 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:138 (CorePackageTests:x86_64+0xd765c)
    #1 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #2 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #3 __tsan::invoke_and_release_block(void*) <null>:6429216 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #4 _dispatch_client_callout <null>:6429216 (libdispatch.dylib:x86_64+0x34dd)

  Previous read of size 1 at 0x7b0800010130 by thread T5:
    [failed to restore the stack]

  Location is heap block of size 17 at 0x7b0800010120 allocated by main thread:
    #0 malloc <null>:6429248 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:6429248 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:75 (CorePackageTests:x86_64+0xd6bad)
    #3 CoreTests.testProcessAsyncExecute() CoreTests.swift:17 (CorePackageTests:x86_64+0xde260)
    #4 @objc CoreTests.testProcessAsyncExecute() <compiler-generated> (CorePackageTests:x86_64+0xdf647)
    #5 __invoking___ <null>:6429248 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T15 (tid=826982, running) is a GCD worker thread

  Thread T5 (tid=826541, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race Process+Execute.swift:138 in closure #3 in static NSTask.asyncExecute(_:_:on:_:)
==================
Test Case '-[CoreTests.CoreTests testProcessAsyncExecute]' passed (0.077 seconds).
Test Case '-[CoreTests.CoreTests testProcessExecute]' started.
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f59638 by thread T13:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25126c)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #5 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #6 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #7 __tsan::invoke_and_release_block(void*) <null>:1598544 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #8 _dispatch_client_callout <null>:1598544 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f59638 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:54 (CorePackageTests:x86_64+0x24e2dd)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:818 (CorePackageTests:x86_64+0x25ddb8)
    #4 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #5 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #6 implicit closure #1 in CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd0d1)
    #7 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #8 partial apply for thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0xdd247)
    #9 closure #1 in XCTAssertEqual<A>(_:_:_:file:line:) <null>:1598544 (libswiftXCTest.dylib:x86_64+0xa083)
    #10 @objc CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd3d7)
    #11 __invoking___ <null>:1598544 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f59600 allocated by main thread:
    #0 malloc <null>:1598576 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1598576 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:134 (CorePackageTests:x86_64+0xd5dea)
    #7 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #9 implicit closure #1 in CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd0d1)
    #10 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #11 partial apply for thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0xdd247)
    #12 closure #1 in XCTAssertEqual<A>(_:_:_:file:line:) <null>:1598576 (libswiftXCTest.dylib:x86_64+0xa083)
    #13 @objc CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd3d7)
    #14 __invoking___ <null>:1598576 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f59640 by thread T13:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25128f)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #5 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #6 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #7 __tsan::invoke_and_release_block(void*) <null>:1598544 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #8 _dispatch_client_callout <null>:1598544 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f59640 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:54 (CorePackageTests:x86_64+0x24e2fb)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:818 (CorePackageTests:x86_64+0x25ddb8)
    #4 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #5 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #6 implicit closure #1 in CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd0d1)
    #7 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #8 partial apply for thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0xdd247)
    #9 closure #1 in XCTAssertEqual<A>(_:_:_:file:line:) <null>:1598544 (libswiftXCTest.dylib:x86_64+0xa083)
    #10 @objc CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd3d7)
    #11 __invoking___ <null>:1598544 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f59600 allocated by main thread:
    #0 malloc <null>:1598576 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1598576 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:134 (CorePackageTests:x86_64+0xd5dea)
    #7 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #9 implicit closure #1 in CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd0d1)
    #10 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #11 partial apply for thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0xdd247)
    #12 closure #1 in XCTAssertEqual<A>(_:_:_:file:line:) <null>:1598576 (libswiftXCTest.dylib:x86_64+0xa083)
    #13 @objc CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd3d7)
    #14 __invoking___ <null>:1598576 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b0c0003db48 by thread T13:
    #0 ConditionLock.lock() lock.swift:121 (CorePackageTests:x86_64+0x343ab2)
    #1 closure #2 in EventLoopFuture.wait(file:line:) EventLoopFuture.swift:819 (CorePackageTests:x86_64+0x25e96c)
    #2 partial apply for closure #2 in EventLoopFuture.wait(file:line:) <compiler-generated> (CorePackageTests:x86_64+0x26458f)
    #3 CallbackList._run() EventLoopFuture.swift:82 (CorePackageTests:x86_64+0x24ef00)
    #4 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #5 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #6 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #7 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #8 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #9 __tsan::invoke_and_release_block(void*) <null>:1597376 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #10 _dispatch_client_callout <null>:1597376 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b0c0003db48 by main thread:
    #0 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x343609)
    #1 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #2 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #3 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #4 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #5 implicit closure #1 in CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd0d1)
    #6 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #7 partial apply for thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0xdd247)
    #8 closure #1 in XCTAssertEqual<A>(_:_:_:file:line:) <null>:1597376 (libswiftXCTest.dylib:x86_64+0xa083)
    #9 @objc CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd3d7)
    #10 __invoking___ <null>:1597376 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 40 at 0x7b0c0003db30 allocated by main thread:
    #0 malloc <null>:1597408 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1597408 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #3 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #4 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #5 implicit closure #1 in CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd0d1)
    #6 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #7 partial apply for thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0xdd247)
    #8 closure #1 in XCTAssertEqual<A>(_:_:_:file:line:) <null>:1597408 (libswiftXCTest.dylib:x86_64+0xa083)
    #9 @objc CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd3d7)
    #10 __invoking___ <null>:1597408 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race lock.swift:121 in ConditionLock.lock()
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b08000370f0 by thread T13:
    #0 Lock.lock() lock.swift:55 (CorePackageTests:x86_64+0x342cbe)
    #1 ConditionLock.lock() lock.swift:121 (CorePackageTests:x86_64+0x343ac3)
    #2 closure #2 in EventLoopFuture.wait(file:line:) EventLoopFuture.swift:819 (CorePackageTests:x86_64+0x25e96c)
    #3 partial apply for closure #2 in EventLoopFuture.wait(file:line:) <compiler-generated> (CorePackageTests:x86_64+0x26458f)
    #4 CallbackList._run() EventLoopFuture.swift:82 (CorePackageTests:x86_64+0x24ef00)
    #5 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #6 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #7 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #8 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #9 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #10 __tsan::invoke_and_release_block(void*) <null>:1597248 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #11 _dispatch_client_callout <null>:1597248 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b08000370f0 by main thread:
    #0 Lock.init() lock.swift:36 (CorePackageTests:x86_64+0x34298f)
    #1 Lock.__allocating_init() lock.swift (CorePackageTests:x86_64+0x342854)
    #2 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x3435bc)
    #3 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #4 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #5 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #6 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #7 implicit closure #1 in CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd0d1)
    #8 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #9 partial apply for thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0xdd247)
    #10 closure #1 in XCTAssertEqual<A>(_:_:_:file:line:) <null>:1597248 (libswiftXCTest.dylib:x86_64+0xa083)
    #11 @objc CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd3d7)
    #12 __invoking___ <null>:1597248 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 24 at 0x7b08000370e0 allocated by main thread:
    #0 malloc <null>:1597280 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1597280 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x3435bc)
    #3 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #4 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #5 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #6 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #7 implicit closure #1 in CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd0d1)
    #8 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #9 partial apply for thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0xdd247)
    #10 closure #1 in XCTAssertEqual<A>(_:_:_:file:line:) <null>:1597280 (libswiftXCTest.dylib:x86_64+0xa083)
    #11 @objc CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd3d7)
    #12 __invoking___ <null>:1597280 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race lock.swift:55 in Lock.lock()
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b080001fdb0 by main thread:
    #0 static NSTask.execute(_:_:) Process+Execute.swift:56 (CorePackageTests:x86_64+0xd4a8e)
    #1 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #2 implicit closure #1 in CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd0d1)
    #3 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #4 partial apply for thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0xdd247)
    #5 closure #1 in XCTAssertEqual<A>(_:_:_:file:line:) <null> (libswiftXCTest.dylib:x86_64+0xa083)
    #6 @objc CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd3d7)
    #7 __invoking___ <null> (CoreFoundation:x86_64h+0x4aa1b)

  Previous write of size 1 at 0x7b080001fdb0 by thread T17:
    [failed to restore the stack]

  Location is heap block of size 32 at 0x7b080001fda0 allocated by main thread:
    #0 malloc <null> (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null> (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #3 implicit closure #1 in CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd0d1)
    #4 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #5 partial apply for thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0xdd247)
    #6 closure #1 in XCTAssertEqual<A>(_:_:_:file:line:) <null> (libswiftXCTest.dylib:x86_64+0xa083)
    #7 @objc CoreTests.testProcessExecute() <compiler-generated> (CorePackageTests:x86_64+0xdd3d7)
    #8 __invoking___ <null> (CoreFoundation:x86_64h+0x4aa1b)

  Thread T17 (tid=826985, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race Process+Execute.swift:56 in static NSTask.execute(_:_:)
==================
Test Case '-[CoreTests.CoreTests testProcessExecute]' passed (0.084 seconds).
Test Case '-[CoreTests.CoreTests testProcessExecuteCurl]' started.
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Write of size 1 at 0x7b080003b850 by thread T18:
    #0 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:138 (CorePackageTests:x86_64+0xd765c)
    #1 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #2 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #3 __tsan::invoke_and_release_block(void*) <null>:8038944 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #4 _dispatch_client_callout <null>:8038944 (libdispatch.dylib:x86_64+0x34dd)

  Previous read of size 1 at 0x7b080003b850 by thread T13:
    #0 closure #1 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:103 (CorePackageTests:x86_64+0xd6dd6)
    #1 partial apply for closure #1 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8c03)
    #2 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #3 __tsan::invoke_and_release_block(void*) <null>:8038944 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #4 _dispatch_client_callout <null>:8038944 (libdispatch.dylib:x86_64+0x34dd)

  Location is heap block of size 17 at 0x7b080003b840 allocated by main thread:
    #0 malloc <null>:8038976 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:8038976 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #3 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #4 CoreTests.testProcessExecuteCurl() CoreTests.swift:10 (CorePackageTests:x86_64+0xdd741)
    #5 @objc CoreTests.testProcessExecuteCurl() <compiler-generated> (CorePackageTests:x86_64+0xdde27)
    #6 __invoking___ <null>:8038976 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T18 (tid=826986, running) is a GCD worker thread

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race Process+Execute.swift:138 in closure #3 in static NSTask.asyncExecute(_:_:on:_:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f596d8 by thread T18:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25126c)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #5 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #6 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #7 __tsan::invoke_and_release_block(void*) <null>:8037456 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #8 _dispatch_client_callout <null>:8037456 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f596d8 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:54 (CorePackageTests:x86_64+0x24e2dd)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:818 (CorePackageTests:x86_64+0x25ddb8)
    #4 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #5 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #6 CoreTests.testProcessExecuteCurl() CoreTests.swift:10 (CorePackageTests:x86_64+0xdd741)
    #7 @objc CoreTests.testProcessExecuteCurl() <compiler-generated> (CorePackageTests:x86_64+0xdde27)
    #8 __invoking___ <null>:8037456 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f596a0 allocated by main thread:
    #0 malloc <null>:8037488 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:8037488 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:134 (CorePackageTests:x86_64+0xd5dea)
    #7 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #9 CoreTests.testProcessExecuteCurl() CoreTests.swift:10 (CorePackageTests:x86_64+0xdd741)
    #10 @objc CoreTests.testProcessExecuteCurl() <compiler-generated> (CorePackageTests:x86_64+0xdde27)
    #11 __invoking___ <null>:8037488 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T18 (tid=826986, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f596e0 by thread T18:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25128f)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #5 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #6 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #7 __tsan::invoke_and_release_block(void*) <null>:8037456 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #8 _dispatch_client_callout <null>:8037456 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f596e0 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:54 (CorePackageTests:x86_64+0x24e2fb)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:818 (CorePackageTests:x86_64+0x25ddb8)
    #4 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #5 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #6 CoreTests.testProcessExecuteCurl() CoreTests.swift:10 (CorePackageTests:x86_64+0xdd741)
    #7 @objc CoreTests.testProcessExecuteCurl() <compiler-generated> (CorePackageTests:x86_64+0xdde27)
    #8 __invoking___ <null>:8037456 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f596a0 allocated by main thread:
    #0 malloc <null>:8037488 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:8037488 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:134 (CorePackageTests:x86_64+0xd5dea)
    #7 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #9 CoreTests.testProcessExecuteCurl() CoreTests.swift:10 (CorePackageTests:x86_64+0xdd741)
    #10 @objc CoreTests.testProcessExecuteCurl() <compiler-generated> (CorePackageTests:x86_64+0xdde27)
    #11 __invoking___ <null>:8037488 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T18 (tid=826986, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b0c00040ab8 by thread T18:
    #0 ConditionLock.lock() lock.swift:121 (CorePackageTests:x86_64+0x343ab2)
    #1 closure #2 in EventLoopFuture.wait(file:line:) EventLoopFuture.swift:819 (CorePackageTests:x86_64+0x25e96c)
    #2 partial apply for closure #2 in EventLoopFuture.wait(file:line:) <compiler-generated> (CorePackageTests:x86_64+0x26458f)
    #3 CallbackList._run() EventLoopFuture.swift:82 (CorePackageTests:x86_64+0x24ef00)
    #4 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #5 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #6 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #7 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #8 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #9 __tsan::invoke_and_release_block(void*) <null>:8036288 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #10 _dispatch_client_callout <null>:8036288 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b0c00040ab8 by main thread:
    #0 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x343609)
    #1 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #2 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #3 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #4 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #5 CoreTests.testProcessExecuteCurl() CoreTests.swift:10 (CorePackageTests:x86_64+0xdd741)
    #6 @objc CoreTests.testProcessExecuteCurl() <compiler-generated> (CorePackageTests:x86_64+0xdde27)
    #7 __invoking___ <null>:8036288 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 40 at 0x7b0c00040aa0 allocated by main thread:
    #0 malloc <null>:8036320 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:8036320 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #3 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #4 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #5 CoreTests.testProcessExecuteCurl() CoreTests.swift:10 (CorePackageTests:x86_64+0xdd741)
    #6 @objc CoreTests.testProcessExecuteCurl() <compiler-generated> (CorePackageTests:x86_64+0xdde27)
    #7 __invoking___ <null>:8036320 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T18 (tid=826986, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race lock.swift:121 in ConditionLock.lock()
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b0800034f30 by thread T18:
    #0 Lock.lock() lock.swift:55 (CorePackageTests:x86_64+0x342cbe)
    #1 ConditionLock.lock() lock.swift:121 (CorePackageTests:x86_64+0x343ac3)
    #2 closure #2 in EventLoopFuture.wait(file:line:) EventLoopFuture.swift:819 (CorePackageTests:x86_64+0x25e96c)
    #3 partial apply for closure #2 in EventLoopFuture.wait(file:line:) <compiler-generated> (CorePackageTests:x86_64+0x26458f)
    #4 CallbackList._run() EventLoopFuture.swift:82 (CorePackageTests:x86_64+0x24ef00)
    #5 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #6 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #7 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #8 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #9 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #10 __tsan::invoke_and_release_block(void*) <null>:8036160 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #11 _dispatch_client_callout <null>:8036160 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b0800034f30 by main thread:
    #0 Lock.init() lock.swift:36 (CorePackageTests:x86_64+0x34298f)
    #1 Lock.__allocating_init() lock.swift (CorePackageTests:x86_64+0x342854)
    #2 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x3435bc)
    #3 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #4 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #5 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #6 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #7 CoreTests.testProcessExecuteCurl() CoreTests.swift:10 (CorePackageTests:x86_64+0xdd741)
    #8 @objc CoreTests.testProcessExecuteCurl() <compiler-generated> (CorePackageTests:x86_64+0xdde27)
    #9 __invoking___ <null>:8036160 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 24 at 0x7b0800034f20 allocated by main thread:
    #0 malloc <null>:8036192 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:8036192 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x3435bc)
    #3 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #4 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #5 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #6 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #7 CoreTests.testProcessExecuteCurl() CoreTests.swift:10 (CorePackageTests:x86_64+0xdd741)
    #8 @objc CoreTests.testProcessExecuteCurl() <compiler-generated> (CorePackageTests:x86_64+0xdde27)
    #9 __invoking___ <null>:8036192 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T18 (tid=826986, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race lock.swift:55 in Lock.lock()
==================
Test Case '-[CoreTests.CoreTests testProcessExecuteCurl]' passed (0.796 seconds).
Test Case '-[CoreTests.CoreTests testProcessExecuteMissing]' started.
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f597c8 by thread T13:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25126c)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #5 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #6 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #7 __tsan::invoke_and_release_block(void*) <null>:1598544 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #8 _dispatch_client_callout <null>:1598544 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f597c8 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:54 (CorePackageTests:x86_64+0x24e2dd)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:629 (CorePackageTests:x86_64+0x2573b1)
    #4 EventLoopFuture.do(_:) Future+DoCatch.swift:14 (CorePackageTests:x86_64+0x4056)
    #5 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:48 (CorePackageTests:x86_64+0x7fe7)
    #6 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #7 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #9 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #10 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #12 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1598544 (libswiftXCTest.dylib:x86_64+0xffeb)
    #13 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #14 __invoking___ <null>:1598544 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f59790 allocated by main thread:
    #0 malloc <null>:1598576 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1598576 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:134 (CorePackageTests:x86_64+0xd5dea)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:144 (CorePackageTests:x86_64+0xd659c)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1598576 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1598576 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f597d0 by thread T13:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25128f)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #5 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #6 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #7 __tsan::invoke_and_release_block(void*) <null>:1598544 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #8 _dispatch_client_callout <null>:1598544 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f597d0 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:54 (CorePackageTests:x86_64+0x24e2fb)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:629 (CorePackageTests:x86_64+0x2573b1)
    #4 EventLoopFuture.do(_:) Future+DoCatch.swift:14 (CorePackageTests:x86_64+0x4056)
    #5 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:48 (CorePackageTests:x86_64+0x7fe7)
    #6 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #7 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #9 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #10 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #12 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1598544 (libswiftXCTest.dylib:x86_64+0xffeb)
    #13 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #14 __invoking___ <null>:1598544 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f59790 allocated by main thread:
    #0 malloc <null>:1598576 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1598576 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:134 (CorePackageTests:x86_64+0xd5dea)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:144 (CorePackageTests:x86_64+0xd659c)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1598576 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1598576 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f597d8 by thread T13:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x2512b3)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #4 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #5 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #6 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #7 __tsan::invoke_and_release_block(void*) <null>:1598544 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #8 _dispatch_client_callout <null>:1598544 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f597d8 by main thread:
    #0 CallbackList.append(_:) EventLoopFuture.swift:59 (CorePackageTests:x86_64+0x24e693)
    #1 EventLoopFuture._addCallback(_:) EventLoopFuture.swift:594 (CorePackageTests:x86_64+0x255176)
    #2 EventLoopFuture._whenComplete(_:) EventLoopFuture.swift:603 (CorePackageTests:x86_64+0x255567)
    #3 EventLoopFuture.whenFailure(_:) EventLoopFuture.swift:648 (CorePackageTests:x86_64+0x2595ce)
    #4 EventLoopFuture.catch(_:) Future+DoCatch.swift:29 (CorePackageTests:x86_64+0x4133)
    #5 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:55 (CorePackageTests:x86_64+0x80b4)
    #6 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #7 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #9 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #10 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #12 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1598544 (libswiftXCTest.dylib:x86_64+0xffeb)
    #13 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #14 __invoking___ <null>:1598544 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f59790 allocated by main thread:
    #0 malloc <null>:1598576 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1598576 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:134 (CorePackageTests:x86_64+0xd5dea)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:144 (CorePackageTests:x86_64+0xd659c)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1598576 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1598576 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f02698 by thread T13:
    #0 EventLoopPromise._resolve(value:) EventLoopFuture.swift:191 (CorePackageTests:x86_64+0x2505b4)
    #1 EventLoopPromise.fail(error:) EventLoopFuture.swift:179 (CorePackageTests:x86_64+0x250ac6)
    #2 closure #1 in EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:53 (CorePackageTests:x86_64+0x83a3)
    #3 partial apply for closure #1 in EventLoopFuture.flatMap<A>(to:_:) <compiler-generated> (CorePackageTests:x86_64+0x84c4)
    #4 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #5 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #6 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #7 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #8 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #9 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #10 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #11 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #12 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #13 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #14 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #15 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #16 __tsan::invoke_and_release_block(void*) <null>:1596112 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #17 _dispatch_client_callout <null>:1596112 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f02698 by main thread:
    #0 EventLoopFuture.init(eventLoop:value:file:line:) EventLoopFuture.swift:360 (CorePackageTests:x86_64+0x25235a)
    #1 EventLoopFuture.__allocating_init(eventLoop:value:file:line:) EventLoopFuture.swift (CorePackageTests:x86_64+0x251e10)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1596112 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1596112 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f02670 allocated by main thread:
    #0 malloc <null>:1596144 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1596144 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1596144 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1596144 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:191 in EventLoopPromise._resolve(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f026a0 by thread T13:
    #0 EventLoopPromise._resolve(value:) EventLoopFuture.swift:191 (CorePackageTests:x86_64+0x2505d1)
    #1 EventLoopPromise.fail(error:) EventLoopFuture.swift:179 (CorePackageTests:x86_64+0x250ac6)
    #2 closure #1 in EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:53 (CorePackageTests:x86_64+0x83a3)
    #3 partial apply for closure #1 in EventLoopFuture.flatMap<A>(to:_:) <compiler-generated> (CorePackageTests:x86_64+0x84c4)
    #4 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #5 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #6 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #7 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #8 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #9 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #10 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #11 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #12 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #13 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #14 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #15 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #16 __tsan::invoke_and_release_block(void*) <null>:1596112 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #17 _dispatch_client_callout <null>:1596112 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f026a0 by main thread:
    #0 EventLoopFuture.init(eventLoop:value:file:line:) EventLoopFuture.swift:360 (CorePackageTests:x86_64+0x252386)
    #1 EventLoopFuture.__allocating_init(eventLoop:value:file:line:) EventLoopFuture.swift (CorePackageTests:x86_64+0x251e10)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1596112 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1596112 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f02670 allocated by main thread:
    #0 malloc <null>:1596144 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1596144 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1596144 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1596144 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:191 in EventLoopPromise._resolve(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f02690 by thread T13:
    #0 EventLoopFuture.value.didset EventLoopFuture.swift:338 (CorePackageTests:x86_64+0x251722)
    #1 EventLoopFuture.value.setter <compiler-generated> (CorePackageTests:x86_64+0x251aac)
    #2 EventLoopFuture._setValue(value:) EventLoopFuture.swift:677 (CorePackageTests:x86_64+0x2511e2)
    #3 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #4 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #5 EventLoopPromise.fail(error:) EventLoopFuture.swift:179 (CorePackageTests:x86_64+0x250ac6)
    #6 closure #1 in EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:53 (CorePackageTests:x86_64+0x83a3)
    #7 partial apply for closure #1 in EventLoopFuture.flatMap<A>(to:_:) <compiler-generated> (CorePackageTests:x86_64+0x84c4)
    #8 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #9 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #10 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #11 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #12 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #13 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #14 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #15 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #16 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #17 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #18 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #19 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #20 __tsan::invoke_and_release_block(void*) <null>:1594640 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #21 _dispatch_client_callout <null>:1594640 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f02690 by main thread:
    #0 EventLoopFuture.init(eventLoop:value:file:line:) EventLoopFuture.swift:362 (CorePackageTests:x86_64+0x25259f)
    #1 EventLoopFuture.__allocating_init(eventLoop:value:file:line:) EventLoopFuture.swift (CorePackageTests:x86_64+0x251e10)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1594640 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1594640 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f02670 allocated by main thread:
    #0 malloc <null>:1594672 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1594672 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1594672 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1594672 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:338 in EventLoopFuture.value.didset
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Atomic write of size 1 at 0x7b0400300120 by thread T13:
    #0 __tsan_atomic8_store <null>:1594160 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x465ac)
    #1 catmc_atomic__Bool_store c-atomics.c:95 (CorePackageTests:x86_64+0x581c4)
    #2 @nonobjc catmc_atomic__Bool_store(_:_:) <compiler-generated> (CorePackageTests:x86_64+0x3300cf)
    #3 thunk for @escaping @callee_guaranteed (@unowned OpaquePointer, @unowned Bool) -> () <compiler-generated> (CorePackageTests:x86_64+0x330973)
    #4 partial apply for thunk for @escaping @callee_guaranteed (@unowned OpaquePointer, @unowned Bool) -> () <compiler-generated> (CorePackageTests:x86_64+0x3422a8)
    #5 UnsafeEmbeddedAtomic.store(_:) atomics.swift:167 (CorePackageTests:x86_64+0x32e960)
    #6 EventLoopFuture.value.didset EventLoopFuture.swift:338 (CorePackageTests:x86_64+0x251749)
    #7 EventLoopFuture.value.setter <compiler-generated> (CorePackageTests:x86_64+0x251aac)
    #8 EventLoopFuture._setValue(value:) EventLoopFuture.swift:677 (CorePackageTests:x86_64+0x2511e2)
    #9 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #10 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #11 EventLoopPromise.fail(error:) EventLoopFuture.swift:179 (CorePackageTests:x86_64+0x250ac6)
    #12 closure #1 in EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:53 (CorePackageTests:x86_64+0x83a3)
    #13 partial apply for closure #1 in EventLoopFuture.flatMap<A>(to:_:) <compiler-generated> (CorePackageTests:x86_64+0x84c4)
    #14 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #15 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #16 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #17 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #18 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #19 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #20 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #21 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #22 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #23 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #24 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #25 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #26 __tsan::invoke_and_release_block(void*) <null>:1594160 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #27 _dispatch_client_callout <null>:1594160 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 1 at 0x7b0400300120 by main thread:
    #0 catmc_atomic__Bool_create c-atomics.c:95 (CorePackageTests:x86_64+0x57ea5)
    #1 @nonobjc catmc_atomic__Bool_create(_:) <compiler-generated> (CorePackageTests:x86_64+0x32f4f6)
    #2 thunk for @escaping @callee_guaranteed (@unowned Bool) -> (@unowned OpaquePointer) <compiler-generated> (CorePackageTests:x86_64+0x3302eb)
    #3 partial apply for thunk for @escaping @callee_guaranteed (@unowned Bool) -> (@unowned OpaquePointer) <compiler-generated> (CorePackageTests:x86_64+0x3426a0)
    #4 UnsafeEmbeddedAtomic.init(value:) atomics.swift:48 (CorePackageTests:x86_64+0x32e2cd)
    #5 EventLoopFuture.init(eventLoop:value:file:line:) EventLoopFuture.swift:362 (CorePackageTests:x86_64+0x252549)
    #6 EventLoopFuture.__allocating_init(eventLoop:value:file:line:) EventLoopFuture.swift (CorePackageTests:x86_64+0x251e10)
    #7 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #8 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #9 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #10 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #11 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #12 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #13 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #14 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #15 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #16 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #17 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #18 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1594160 (libswiftXCTest.dylib:x86_64+0xffeb)
    #19 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #20 __invoking___ <null>:1594160 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 1 at 0x7b0400300120 allocated by main thread:
    #0 malloc <null>:1594192 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 catmc_atomic__Bool_create c-atomics.c:95 (CorePackageTests:x86_64+0x57e88)
    #2 @nonobjc catmc_atomic__Bool_create(_:) <compiler-generated> (CorePackageTests:x86_64+0x32f4f6)
    #3 thunk for @escaping @callee_guaranteed (@unowned Bool) -> (@unowned OpaquePointer) <compiler-generated> (CorePackageTests:x86_64+0x3302eb)
    #4 partial apply for thunk for @escaping @callee_guaranteed (@unowned Bool) -> (@unowned OpaquePointer) <compiler-generated> (CorePackageTests:x86_64+0x3426a0)
    #5 UnsafeEmbeddedAtomic.init(value:) atomics.swift:48 (CorePackageTests:x86_64+0x32e2cd)
    #6 EventLoopFuture.init(eventLoop:value:file:line:) EventLoopFuture.swift:362 (CorePackageTests:x86_64+0x252549)
    #7 EventLoopFuture.__allocating_init(eventLoop:value:file:line:) EventLoopFuture.swift (CorePackageTests:x86_64+0x251e10)
    #8 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #9 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #10 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #11 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #12 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #13 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #14 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #15 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #16 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #17 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #18 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #19 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1594192 (libswiftXCTest.dylib:x86_64+0xffeb)
    #20 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #21 __invoking___ <null>:1594192 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race c-atomics.c:95 in catmc_atomic__Bool_store
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f026a8 by thread T13:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25126c)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.fail(error:) EventLoopFuture.swift:179 (CorePackageTests:x86_64+0x250ac6)
    #4 closure #1 in EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:53 (CorePackageTests:x86_64+0x83a3)
    #5 partial apply for closure #1 in EventLoopFuture.flatMap<A>(to:_:) <compiler-generated> (CorePackageTests:x86_64+0x84c4)
    #6 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #7 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #8 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #9 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #10 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #11 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #12 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #13 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #14 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #15 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #16 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #17 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #18 __tsan::invoke_and_release_block(void*) <null>:1595216 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #19 _dispatch_client_callout <null>:1595216 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f026a8 by main thread:
    #0 EventLoopFuture.init(eventLoop:value:file:line:) EventLoopFuture.swift:357 (CorePackageTests:x86_64+0x25226b)
    #1 EventLoopFuture.__allocating_init(eventLoop:value:file:line:) EventLoopFuture.swift (CorePackageTests:x86_64+0x251e10)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1595216 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1595216 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f02670 allocated by main thread:
    #0 malloc <null>:1595248 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1595248 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1595248 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1595248 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f026b0 by thread T13:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x25128f)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.fail(error:) EventLoopFuture.swift:179 (CorePackageTests:x86_64+0x250ac6)
    #4 closure #1 in EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:53 (CorePackageTests:x86_64+0x83a3)
    #5 partial apply for closure #1 in EventLoopFuture.flatMap<A>(to:_:) <compiler-generated> (CorePackageTests:x86_64+0x84c4)
    #6 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #7 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #8 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #9 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #10 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #11 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #12 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #13 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #14 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #15 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #16 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #17 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #18 __tsan::invoke_and_release_block(void*) <null>:1595216 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #19 _dispatch_client_callout <null>:1595216 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f026b0 by main thread:
    #0 EventLoopFuture.init(eventLoop:value:file:line:) EventLoopFuture.swift:357 (CorePackageTests:x86_64+0x252297)
    #1 EventLoopFuture.__allocating_init(eventLoop:value:file:line:) EventLoopFuture.swift (CorePackageTests:x86_64+0x251e10)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1595216 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1595216 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f02670 allocated by main thread:
    #0 malloc <null>:1595248 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1595248 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1595248 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1595248 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b1400f026b8 by thread T13:
    #0 EventLoopFuture._setValue(value:) EventLoopFuture.swift:678 (CorePackageTests:x86_64+0x2512b3)
    #1 EventLoopPromise._setValue(value:) EventLoopFuture.swift:206 (CorePackageTests:x86_64+0x250b99)
    #2 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x250667)
    #3 EventLoopPromise.fail(error:) EventLoopFuture.swift:179 (CorePackageTests:x86_64+0x250ac6)
    #4 closure #1 in EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:53 (CorePackageTests:x86_64+0x83a3)
    #5 partial apply for closure #1 in EventLoopFuture.flatMap<A>(to:_:) <compiler-generated> (CorePackageTests:x86_64+0x84c4)
    #6 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #7 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #8 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #9 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #10 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #11 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #12 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #13 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #14 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #15 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #16 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #17 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #18 __tsan::invoke_and_release_block(void*) <null>:1595216 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #19 _dispatch_client_callout <null>:1595216 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b1400f026b8 by main thread:
    #0 EventLoopFuture.init(eventLoop:value:file:line:) EventLoopFuture.swift:357 (CorePackageTests:x86_64+0x2522c4)
    #1 EventLoopFuture.__allocating_init(eventLoop:value:file:line:) EventLoopFuture.swift (CorePackageTests:x86_64+0x251e10)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1595216 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1595216 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 80 at 0x7b1400f02670 allocated by main thread:
    #0 malloc <null>:1595248 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1595248 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.__allocating_init(eventLoop:file:line:) EventLoopFuture.swift:373 (CorePackageTests:x86_64+0x2501fc)
    #3 EventLoopPromise.init(eventLoop:file:line:) EventLoopFuture.swift:163 (CorePackageTests:x86_64+0x24fee1)
    #4 EventLoop.newPromise<A>(of:file:line:) EventLoop.swift:322 (CorePackageTests:x86_64+0x2356ff)
    #5 EventLoop.newPromise<A>(_:file:line:) Async+NIO.swift:13 (CorePackageTests:x86_64+0x152f)
    #6 EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:46 (CorePackageTests:x86_64+0x7eda)
    #7 static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:150 (CorePackageTests:x86_64+0xd680e)
    #8 static NSTask.execute(_:_:) Process+Execute.swift:45 (CorePackageTests:x86_64+0xd439f)
    #9 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #10 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #11 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #12 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #13 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1595248 (libswiftXCTest.dylib:x86_64+0xffeb)
    #14 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #15 __invoking___ <null>:1595248 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race EventLoopFuture.swift:678 in EventLoopFuture._setValue(value:)
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b0c00057fa8 by thread T13:
    #0 ConditionLock.lock() lock.swift:121 (CorePackageTests:x86_64+0x343ab2)
    #1 closure #2 in EventLoopFuture.wait(file:line:) EventLoopFuture.swift:819 (CorePackageTests:x86_64+0x25e96c)
    #2 partial apply for closure #2 in EventLoopFuture.wait(file:line:) <compiler-generated> (CorePackageTests:x86_64+0x26458f)
    #3 CallbackList._run() EventLoopFuture.swift:82 (CorePackageTests:x86_64+0x24ef00)
    #4 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #5 EventLoopPromise.fail(error:) EventLoopFuture.swift:179 (CorePackageTests:x86_64+0x250ac6)
    #6 closure #1 in EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:53 (CorePackageTests:x86_64+0x83a3)
    #7 partial apply for closure #1 in EventLoopFuture.flatMap<A>(to:_:) <compiler-generated> (CorePackageTests:x86_64+0x84c4)
    #8 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #9 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #10 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #11 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #12 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #13 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #14 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #15 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #16 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #17 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #18 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #19 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #20 __tsan::invoke_and_release_block(void*) <null>:1594048 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #21 _dispatch_client_callout <null>:1594048 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b0c00057fa8 by main thread:
    #0 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x343609)
    #1 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #2 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #3 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #4 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #5 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #6 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #7 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #8 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1594048 (libswiftXCTest.dylib:x86_64+0xffeb)
    #9 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #10 __invoking___ <null>:1594048 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 40 at 0x7b0c00057f90 allocated by main thread:
    #0 malloc <null>:1594080 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1594080 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #3 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #4 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #5 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #6 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #7 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #8 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1594080 (libswiftXCTest.dylib:x86_64+0xffeb)
    #9 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #10 __invoking___ <null>:1594080 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race lock.swift:121 in ConditionLock.lock()
==================
==================
WARNING: ThreadSanitizer: data race (pid=12902)
  Read of size 8 at 0x7b0800028250 by thread T13:
    #0 Lock.lock() lock.swift:55 (CorePackageTests:x86_64+0x342cbe)
    #1 ConditionLock.lock() lock.swift:121 (CorePackageTests:x86_64+0x343ac3)
    #2 closure #2 in EventLoopFuture.wait(file:line:) EventLoopFuture.swift:819 (CorePackageTests:x86_64+0x25e96c)
    #3 partial apply for closure #2 in EventLoopFuture.wait(file:line:) <compiler-generated> (CorePackageTests:x86_64+0x26458f)
    #4 CallbackList._run() EventLoopFuture.swift:82 (CorePackageTests:x86_64+0x24ef00)
    #5 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #6 EventLoopPromise.fail(error:) EventLoopFuture.swift:179 (CorePackageTests:x86_64+0x250ac6)
    #7 closure #1 in EventLoopFuture.flatMap<A>(to:_:) Future+Map.swift:53 (CorePackageTests:x86_64+0x83a3)
    #8 partial apply for closure #1 in EventLoopFuture.flatMap<A>(to:_:) <compiler-generated> (CorePackageTests:x86_64+0x84c4)
    #9 closure #1 in EventLoopFuture.whenSuccess(_:) EventLoopFuture.swift:631 (CorePackageTests:x86_64+0x259402)
    #10 partial apply for closure #1 in EventLoopFuture.whenSuccess(_:) <compiler-generated> (CorePackageTests:x86_64+0x25cfdf)
    #11 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24e71b)
    #12 thunk for @escaping @callee_guaranteed () -> (@owned CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x26880d)
    #13 thunk for @escaping @callee_guaranteed () -> (@out CallbackList) <compiler-generated> (CorePackageTests:x86_64+0x24dfcb)
    #14 thunk for @escaping @callee_guaranteed () -> (@out CallbackList)partial apply <compiler-generated> (CorePackageTests:x86_64+0x268a5b)
    #15 CallbackList._run() EventLoopFuture.swift:108 (CorePackageTests:x86_64+0x24faf5)
    #16 EventLoopPromise._resolve(value:) EventLoopFuture.swift:192 (CorePackageTests:x86_64+0x2506c5)
    #17 EventLoopPromise.succeed(result:) EventLoopFuture.swift:171 (CorePackageTests:x86_64+0x25045a)
    #18 closure #3 in static NSTask.asyncExecute(_:_:on:_:) Process+Execute.swift:139 (CorePackageTests:x86_64+0xd76b9)
    #19 partial apply for closure #3 in static NSTask.asyncExecute(_:_:on:_:) <compiler-generated> (CorePackageTests:x86_64+0xd8eed)
    #20 thunk for @escaping @callee_guaranteed () -> () <compiler-generated> (CorePackageTests:x86_64+0x25e00)
    #21 __tsan::invoke_and_release_block(void*) <null>:1593920 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x6d65b)
    #22 _dispatch_client_callout <null>:1593920 (libdispatch.dylib:x86_64+0x34dd)

  Previous write of size 8 at 0x7b0800028250 by main thread:
    #0 Lock.init() lock.swift:36 (CorePackageTests:x86_64+0x34298f)
    #1 Lock.__allocating_init() lock.swift (CorePackageTests:x86_64+0x342854)
    #2 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x3435bc)
    #3 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #4 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #5 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #6 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #7 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #8 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #9 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #10 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1593920 (libswiftXCTest.dylib:x86_64+0xffeb)
    #11 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #12 __invoking___ <null>:1593920 (CoreFoundation:x86_64h+0x4aa1b)

  Location is heap block of size 24 at 0x7b0800028240 allocated by main thread:
    #0 malloc <null>:1593952 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e6ba)
    #1 swift_slowAlloc <null>:1593952 (libswiftCore.dylib:x86_64+0x2cdd98)
    #2 ConditionLock.init(value:) lock.swift:108 (CorePackageTests:x86_64+0x3435bc)
    #3 ConditionLock.__allocating_init(value:) lock.swift (CorePackageTests:x86_64+0x343330)
    #4 EventLoopFuture.wait(file:line:) EventLoopFuture.swift:817 (CorePackageTests:x86_64+0x25dcad)
    #5 static NSTask.execute(_:_:) Process+Execute.swift:52 (CorePackageTests:x86_64+0xd4494)
    #6 static NSTask.execute(_:_:) Process+Execute.swift:27 (CorePackageTests:x86_64+0xd3ef5)
    #7 implicit closure #1 in CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdf9f1)
    #8 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error) <compiler-generated> (CorePackageTests:x86_64+0x1ceb6)
    #9 thunk for @callee_guaranteed () -> (@owned String, @error @owned Error)partial apply <compiler-generated> (CorePackageTests:x86_64+0xdfb67)
    #10 closure #1 in XCTAssertThrowsError<A>(_:_:file:line:_:) <null>:1593952 (libswiftXCTest.dylib:x86_64+0xffeb)
    #11 @objc CoreTests.testProcessExecuteMissing() <compiler-generated> (CorePackageTests:x86_64+0xdfcb7)
    #12 __invoking___ <null>:1593952 (CoreFoundation:x86_64h+0x4aa1b)

  Thread T13 (tid=826938, running) is a GCD worker thread

SUMMARY: ThreadSanitizer: data race lock.swift:55 in Lock.lock()
==================
Test Case '-[CoreTests.CoreTests testProcessExecuteMissing]' passed (0.153 seconds).
Test Suite 'CoreTests' passed at 2019-09-09 9:48:51.677 pm.
	 Executed 9 tests, with 0 failures (0 unexpected) in 1.119 (1.119) seconds
Test Suite 'FooErrorTests' started at 2019-09-09 9:48:51.677 pm
Test Case '-[DebuggingTests.FooErrorTests testCausesAndSuggestions]' started.
Test Case '-[DebuggingTests.FooErrorTests testCausesAndSuggestions]' passed (0.000 seconds).
Test Case '-[DebuggingTests.FooErrorTests testIdentifier]' started.
Test Case '-[DebuggingTests.FooErrorTests testIdentifier]' passed (0.000 seconds).
Test Case '-[DebuggingTests.FooErrorTests testOmitEmptyFields]' started.
Test Case '-[DebuggingTests.FooErrorTests testOmitEmptyFields]' passed (0.002 seconds).
Test Case '-[DebuggingTests.FooErrorTests testPrintable]' started.
⚠️ Foo Error: You do not have a `foo`.
- id: FooError.noFoo

Here are some possible causes: 
- You did not set the flongwaffle.
- The session ended before a `Foo` could be made.
- The universe conspires against us all.
- Computers are hard.

These suggestions could address the issue: 
- You really want to use a `Bar` here.
- Take up the guitar and move to the beach.

Vapor's documentation talks about this: 
- http://documentation.com/Foo
- http://documentation.com/foo/noFoo

Test Case '-[DebuggingTests.FooErrorTests testPrintable]' passed (0.001 seconds).
Test Case '-[DebuggingTests.FooErrorTests testReadableName]' started.
Test Case '-[DebuggingTests.FooErrorTests testReadableName]' passed (0.000 seconds).
Test Suite 'FooErrorTests' passed at 2019-09-09 9:48:51.681 pm.
	 Executed 5 tests, with 0 failures (0 unexpected) in 0.003 (0.004) seconds
Test Suite 'GeneralTests' started at 2019-09-09 9:48:51.681 pm
Test Case '-[DebuggingTests.GeneralTests testBulletedList]' started.
Test Case '-[DebuggingTests.GeneralTests testBulletedList]' passed (0.000 seconds).
Test Case '-[DebuggingTests.GeneralTests testMinimumConformance]' started.
Test Case '-[DebuggingTests.GeneralTests testMinimumConformance]' passed (0.001 seconds).
Test Suite 'GeneralTests' passed at 2019-09-09 9:48:51.682 pm.
	 Executed 2 tests, with 0 failures (0 unexpected) in 0.001 (0.001) seconds
Test Suite 'ReflectableTests' started at 2019-09-09 9:48:51.682 pm
Test Case '-[CoreTests.ReflectableTests testArrayNested]' started.
Test Case '-[CoreTests.ReflectableTests testArrayNested]' passed (0.014 seconds).
Test Case '-[CoreTests.ReflectableTests testCache]' started.
Test Case '-[CoreTests.ReflectableTests testCache]' passed (0.011 seconds).
Test Case '-[CoreTests.ReflectableTests testCaseIterableExtension]' started.
Test Case '-[CoreTests.ReflectableTests testCaseIterableExtension]' passed (0.000 seconds).
Test Case '-[CoreTests.ReflectableTests testCustomCodingKeys]' started.
Test Case '-[CoreTests.ReflectableTests testCustomCodingKeys]' passed (0.002 seconds).
Test Case '-[CoreTests.ReflectableTests testGH112]' started.
Test Case '-[CoreTests.ReflectableTests testGH112]' passed (0.002 seconds).
Test Case '-[CoreTests.ReflectableTests testGH119]' started.
Test Case '-[CoreTests.ReflectableTests testGH119]' passed (0.001 seconds).
Test Case '-[CoreTests.ReflectableTests testNestedStruct]' started.
Test Case '-[CoreTests.ReflectableTests testNestedStruct]' passed (0.016 seconds).
Test Case '-[CoreTests.ReflectableTests testNonOptionalsOnly]' started.
Test Case '-[CoreTests.ReflectableTests testNonOptionalsOnly]' passed (0.003 seconds).
Test Case '-[CoreTests.ReflectableTests testProperties]' started.
Test Case '-[CoreTests.ReflectableTests testProperties]' passed (0.011 seconds).
Test Case '-[CoreTests.ReflectableTests testPropertyA]' started.
Test Case '-[CoreTests.ReflectableTests testPropertyA]' passed (0.001 seconds).
Test Case '-[CoreTests.ReflectableTests testPropertyDepth]' started.
Test Case '-[CoreTests.ReflectableTests testPropertyDepth]' passed (0.002 seconds).
Test Case '-[CoreTests.ReflectableTests testStruct]' started.
Test Case '-[CoreTests.ReflectableTests testStruct]' passed (0.030 seconds).
Test Case '-[CoreTests.ReflectableTests testStructCustomProperties]' started.
Test Case '-[CoreTests.ReflectableTests testStructCustomProperties]' passed (0.001 seconds).
Test Suite 'ReflectableTests' passed at 2019-09-09 9:48:51.776 pm.
	 Executed 13 tests, with 0 failures (0 unexpected) in 0.093 (0.094) seconds
Test Suite 'TraceableTests' started at 2019-09-09 9:48:51.776 pm
Test Case '-[DebuggingTests.TraceableTests testPrintable]' started.
⚠️ [TestError.foo: So we can test stuff] [Possible causes: What do you expect, you're testing errors.] [Suggested fixes: Get a better keyboard to chair interface.]


⚠️ TestError: So we can test stuff
- id: TestError.foo

Here are some possible causes: 
- What do you expect, you're testing errors.

These suggestions could address the issue: 
- Get a better keyboard to chair interface.

Test Case '-[DebuggingTests.TraceableTests testPrintable]' passed (0.003 seconds).
Test Suite 'TraceableTests' passed at 2019-09-09 9:48:51.780 pm.
	 Executed 1 test, with 0 failures (0 unexpected) in 0.003 (0.003) seconds
Test Suite 'CorePackageTests.xctest' passed at 2019-09-09 9:48:51.780 pm.
	 Executed 48 tests, with 0 failures (0 unexpected) in 46.308 (46.314) seconds
Test Suite 'All tests' passed at 2019-09-09 9:48:51.780 pm.
	 Executed 48 tests, with 0 failures (0 unexpected) in 46.308 (46.315) seconds
ThreadSanitizer: reported 31 warnings
Exited with signal code 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions