Skip to content

flaky test: HTTPClientTests.testRaceNewRequestsVsShutdown stuck #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
weissi opened this issue Jun 16, 2020 · 2 comments · Fixed by #268
Closed

flaky test: HTTPClientTests.testRaceNewRequestsVsShutdown stuck #260

weissi opened this issue Jun 16, 2020 · 2 comments · Fixed by #268
Labels
area/testing Improvements to tests.
Milestone

Comments

@weissi
Copy link
Contributor

weissi commented Jun 16, 2020

on macOS

Call graph:
    2852 Thread_2604820   DispatchQueue_1: com.apple.main-thread  (serial)
    + 2852 start  (in libdyld.dylib) + 1  [0x7fff6ec9ec71]
    +   2852 main  (in xctest) + 203  [0x10b975ef0]
    +     2852 _XCTestMain  (in XCTest) + 108  [0x10bae04c1]
    +       2852 -[XCTestDriver _runTests]  (in XCTest) + 466  [0x10ba3cea2]
    +         2852 -[XCTTestRunSession runTestsAndReturnError:]  (in XCTest) + 615  [0x10bb0040d]
    +           2852 -[XCTestObservationCenter _observeTestExecutionForBlock:]  (in XCTest) + 325  [0x10ba7fcc8]
    +             2852 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.95  (in XCTest) + 96  [0x10bb007c8]
    +               2852 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke  (in XCTest) + 111  [0x10bb00647]
    +                 2852 +[XCTContext runInContextForTestCase:block:]  (in XCTest) + 211  [0x10bae431d]
    +                   2852 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke_2  (in XCTest) + 148  [0x10bb006e2]
    +                     2852 -[XCTest runTest]  (in XCTest) + 57  [0x10bab148a]
    +                       2852 -[XCTestSuite performTest:]  (in XCTest) + 290  [0x10ba58db9]
    +                         2852 -[XCTestSuite _performProtectedSectionForTest:testSection:]  (in XCTest) + 148  [0x10ba58ab5]
    +                           2852 +[XCTContext runInContextForTestCase:block:]  (in XCTest) + 211  [0x10bae431d]
    +                             2852 __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke  (in XCTest) + 24  [0x10ba58afe]
    +                               2852 __27-[XCTestSuite performTest:]_block_invoke  (in XCTest) + 329  [0x10ba592dd]
    +                                 2852 -[XCTest runTest]  (in XCTest) + 57  [0x10bab148a]
    +                                   2852 -[XCTestSuite performTest:]  (in XCTest) + 290  [0x10ba58db9]
    +                                     2852 -[XCTestSuite _performProtectedSectionForTest:testSection:]  (in XCTest) + 148  [0x10ba58ab5]
    +                                       2852 +[XCTContext runInContextForTestCase:block:]  (in XCTest) + 211  [0x10bae431d]
    +                                         2852 __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke  (in XCTest) + 24  [0x10ba58afe]
    +                                           2852 __27-[XCTestSuite performTest:]_block_invoke  (in XCTest) + 329  [0x10ba592dd]
    +                                             2852 -[XCTest runTest]  (in XCTest) + 57  [0x10bab148a]
    +                                               2852 -[XCTestSuite performTest:]  (in XCTest) + 290  [0x10ba58db9]
    +                                                 2852 -[XCTestSuite _performProtectedSectionForTest:testSection:]  (in XCTest) + 148  [0x10ba58ab5]
    +                                                   2852 +[XCTContext runInContextForTestCase:block:]  (in XCTest) + 211  [0x10bae431d]
    +                                                     2852 __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke  (in XCTest) + 24  [0x10ba58afe]
    +                                                       2852 __27-[XCTestSuite performTest:]_block_invoke  (in XCTest) + 329  [0x10ba592dd]
    +                                                         2852 -[XCTest runTest]  (in XCTest) + 57  [0x10bab148a]
    +                                                           2852 -[XCTestCase performTest:]  (in XCTest) + 690  [0x10ba5fa56]
    +                                                             2852 +[XCTContext runInContextForTestCase:block:]  (in XCTest) + 211  [0x10bae431d]
    +                                                               2852 __26-[XCTestCase performTest:]_block_invoke.362  (in XCTest) + 86  [0x10ba601e9]
    +                                                                 2852 -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]  (in XCTest) + 179  [0x10bad33b0]
    +                                                                   2852 __26-[XCTestCase performTest:]_block_invoke_2  (in XCTest) + 43  [0x10ba602b2]
    +                                                                     2852 -[XCTestCase invokeTest]  (in XCTest) + 1037  [0x10ba5e8d9]
    +                                                                       2852 -[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:]  (in XCTest) + 179  [0x10bad33b0]
    +                                                                         2852 __24-[XCTestCase invokeTest]_block_invoke.231  (in XCTest) + 199  [0x10ba5ee16]
    +                                                                           2852 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:]  (in XCTest) + 61  [0x10ba698fa]
    +                                                                             2852 -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:]  (in XCTest) + 65  [0x10baedb5e]
    +                                                                               2852 __24-[XCTestCase invokeTest]_block_invoke_2  (in XCTest) + 297  [0x10ba5ef82]
    +                                                                                 2852 __24-[XCTestCase invokeTest]_block_invoke_3  (in XCTest) + 52  [0x10ba5efce]
    +                                                                                   2852 -[NSInvocation invoke]  (in CoreFoundation) + 303  [0x7fff2ee9b6ec]
    +                                                                                     2852 __invoking___  (in CoreFoundation) + 140  [0x7fff2ee9b84c]
    +                                                                                       2852 @objc HTTPClientTests.testRaceNewRequestsVsShutdown()  (in async-http-clientPackageTests) + 43  [0x1125b1d9b]  <compiler-generated>:0
    +                                                                                         2852 HTTPClientTests.testRaceNewRequestsVsShutdown()  (in async-http-clientPackageTests) + 3564  [0x1125b0bbc]  HTTPClientTests.swift:1175
    +                                                                                           2852 XCTAssertNoThrow<A>(_:_:file:line:)  (in libXCTestSwiftSupport.dylib) + 70  [0x10c2656b6]
    +                                                                                             2852 _XCTRunThrowableBlock(_:)  (in libXCTestSwiftSupport.dylib) + 208  [0x10c25d7d0]
    +                                                                                               2852 _XCTRunThrowableBlockBridge  (in libXCTestSwiftSupport.dylib) + 42  [0x10c259d7a]
    +                                                                                                 2852 thunk for @escaping @callee_guaranteed () -> ()  (in libXCTestSwiftSupport.dylib) + 14  [0x10c25d99e]
    +                                                                                                   2852 partial apply for thunk for @callee_guaranteed () -> ()  (in libXCTestSwiftSupport.dylib) + 17  [0x10c266101]
    +                                                                                                     2852 partial apply for closure #1 in _XCTRunThrowableBlock(_:)  (in libXCTestSwiftSupport.dylib) + 27  [0x10c2660ab]
    +                                                                                                       2852 partial apply for closure #1 in XCTAssertNoThrow<A>(_:_:file:line:)  (in libXCTestSwiftSupport.dylib) + 21  [0x10c265e15]
    +                                                                                                         2852 closure #1 in XCTAssertNoThrow<A>(_:_:file:line:)  (in libXCTestSwiftSupport.dylib) + 54  [0x10c265b66]
    +                                                                                                           2852 thunk for @callee_guaranteed () -> (@error @owned Error)partial apply  (in async-http-clientPackageTests) + 20  [0x1125b1c94]  <compiler-generated>:0
    +                                                                                                             2852 thunk for @callee_guaranteed () -> (@error @owned Error)  (in async-http-clientPackageTests) + 15  [0x11245857f]  <compiler-generated>:0
    +                                                                                                               2852 partial apply for implicit closure #4 in HTTPClientTests.testRaceNewRequestsVsShutdown()  (in async-http-clientPackageTests) + 15  [0x1125b1c6f]  <compiler-generated>:0
    +                                                                                                                 2852 implicit closure #4 in HTTPClientTests.testRaceNewRequestsVsShutdown()  (in async-http-clientPackageTests) + 25  [0x1125b1c29]  <compiler-generated>:0
    +                                                                                                                   2852 HTTPClient.syncShutdown()  (in async-http-clientPackageTests) + 35  [0x112457983]  HTTPClient.swift:123
    +                                                                                                                     2852 HTTPClient.syncShutdown(requiresCleanClose:)  (in async-http-clientPackageTests) + 1121  [0x112457e21]  HTTPClient.swift:155
    +                                                                                                                       2852 DispatchWorkItem.wait()  (in libswiftDispatch.dylib) + 34  [0x7fff6e715dc2]
    +                                                                                                                         2852 dispatch_block_wait  (in libdispatch.dylib) + 212  [0x7fff6ec4b29f]
    +                                                                                                                           2852 _dispatch_group_wait_slow  (in libdispatch.dylib) + 49  [0x7fff6ec48acc]
    +                                                                                                                             2852 _dlock_wait  (in libdispatch.dylib) + 44  [0x7fff6ec48838]
    +                                                                                                                               2852 __ulock_wait  (in libsystem_kernel.dylib) + 10  [0x7fff6edff99e]
    2852 Thread_2605272: NIO-ELT-156-#0
    + 2852 thread_start  (in libsystem_pthread.dylib) + 15  [0x7fff6eec64d7]
    +   2852 _pthread_start  (in libsystem_pthread.dylib) + 224  [0x7fff6eeca9b4]
    +     2852 @objc closure #1 in static ThreadOpsPosix.run(handle:args:detachThread:)  (in async-http-clientPackageTests) + 9  [0x112949b29]  <compiler-generated>:0
    +       2852 closure #1 in static ThreadOpsPosix.run(handle:args:detachThread:)  (in async-http-clientPackageTests) + 1256  [0x112949a58]  ThreadPosix.swift:105
    +         2852 partial apply for thunk for @escaping @callee_guaranteed (@guaranteed NIOThread) -> ()  (in async-http-clientPackageTests) + 17  [0x1129430c1]  <compiler-generated>:0
    +           2852 thunk for @escaping @callee_guaranteed (@guaranteed NIOThread) -> ()  (in async-http-clientPackageTests) + 15  [0x11287b79f]  <compiler-generated>:0
    +             2852 partial apply for closure #1 in static MultiThreadedEventLoopGroup.setupThreadAndEventLoop(name:selectorFactory:initializer:)  (in async-http-clientPackageTests) + 51  [0x112881973]  <compiler-generated>:0
    +               2852 closure #1 in static MultiThreadedEventLoopGroup.setupThreadAndEventLoop(name:selectorFactory:initializer:)  (in async-http-clientPackageTests) + 355  [0x11287b193]  EventLoop.swift:842
    +                 2852 static MultiThreadedEventLoopGroup.runTheLoop(thread:canEventLoopBeShutdownIndividually:selectorFactory:initializer:_:)  (in async-http-clientPackageTests) + 972  [0x11287a9cc]  EventLoop.swift:822
    +                   2852 SelectableEventLoop.run()  (in async-http-clientPackageTests) + 928  [0x1128f89f0]  SelectableEventLoop.swift:394
    +                     2852 withAutoReleasePool<A>(_:)  (in async-http-clientPackageTests) + 57  [0x1128f4739]  SelectableEventLoop.swift:22
    +                       2852 autoreleasepool<A>(invoking:)  (in libswiftObjectiveC.dylib) + 46  [0x7fff6e92fb3e]
    +                         2852 partial apply for closure #1 in withAutoReleasePool<A>(_:)  (in async-http-clientPackageTests) + 31  [0x1128f47ef]  <compiler-generated>:0
    +                           2852 closure #1 in withAutoReleasePool<A>(_:)  (in async-http-clientPackageTests) + 34  [0x1128f4792]  SelectableEventLoop.swift:23
    +                             2852 thunk for @callee_guaranteed () -> (@error @owned Error)partial apply  (in async-http-clientPackageTests) + 20  [0x1128fd8c4]  <compiler-generated>:0
    +                               2852 thunk for @callee_guaranteed () -> (@error @owned Error)  (in async-http-clientPackageTests) + 15  [0x11245857f]  <compiler-generated>:0
    +                                 2852 partial apply for closure #2 in SelectableEventLoop.run()  (in async-http-clientPackageTests) + 20  [0x1128fd8a4]  <compiler-generated>:0
    +                                   2852 closure #2 in SelectableEventLoop.run()  (in async-http-clientPackageTests) + 233  [0x1128f9d39]  SelectableEventLoop.swift:395
    +                                     2852 Selector.whenReady(strategy:_:)  (in async-http-clientPackageTests) + 1200  [0x11290c560]  Selector.swift:517
    +                                       2852 Optional.withUnsafeOptionalPointer<A>(_:)  (in async-http-clientPackageTests) + 561  [0x1128ff2c1]  Selector.swift:39
    +                                         2852 partial apply for thunk for @callee_guaranteed (@unowned UnsafePointer<timespec>?) -> (@unowned Int, @error @owned Error)  (in async-http-clientPackageTests) + 20  [0x112910db4]  <compiler-generated>:0
    +                                           2852 thunk for @callee_guaranteed (@unowned UnsafePointer<timespec>?) -> (@unowned Int, @error @owned Error)  (in async-http-clientPackageTests) + 19  [0x11290e873]  <compiler-generated>:0
    +                                             2852 partial apply for closure #1 in Selector.whenReady(strategy:_:)  (in async-http-clientPackageTests) + 15  [0x112910d8f]  <compiler-generated>:0
    +                                               2852 closure #1 in Selector.whenReady(strategy:_:)  (in async-http-clientPackageTests) + 499  [0x11290e773]  Selector.swift:518
    +                                                 2852 static KQueue.kevent(kq:changelist:nchanges:eventlist:nevents:timeout:)  (in async-http-clientPackageTests) + 377  [0x1129427c9]  System.swift:544
    +                                                   2852 syscall<A>(blocking:where:_:)  (in async-http-clientPackageTests) + 441  [0x11293b049]  System.swift:127
    +                                                     2852 thunk for @callee_guaranteed () -> (@unowned Int32, @error @owned Error)partial apply  (in async-http-clientPackageTests) + 20  [0x1129429b4]  <compiler-generated>:0
    +                                                       2852 thunk for @callee_guaranteed () -> (@unowned Int32, @error @owned Error)  (in async-http-clientPackageTests) + 19  [0x112545363]  <compiler-generated>:0
    +                                                         2852 closure #1 in static KQueue.kevent(kq:changelist:nchanges:eventlist:nevents:timeout:)  (in async-http-clientPackageTests) + 167  [0x112942947]  System.swift:545
    +                                                           2852 @nonobjc kevent(_:_:_:_:_:_:)  (in async-http-clientPackageTests) + 9  [0x11293a9a9]  <compiler-generated>:0
    +                                                             2852 kevent  (in libsystem_kernel.dylib) + 10  [0x7fff6ee02bba]
    2852 Thread_2605273: NIO-ELT-157-#0
    + 2852 thread_start  (in libsystem_pthread.dylib) + 15  [0x7fff6eec64d7]
    +   2852 _pthread_start  (in libsystem_pthread.dylib) + 224  [0x7fff6eeca9b4]
    +     2852 @objc closure #1 in static ThreadOpsPosix.run(handle:args:detachThread:)  (in async-http-clientPackageTests) + 9  [0x112949b29]  <compiler-generated>:0
    +       2852 closure #1 in static ThreadOpsPosix.run(handle:args:detachThread:)  (in async-http-clientPackageTests) + 1256  [0x112949a58]  ThreadPosix.swift:105
    +         2852 partial apply for thunk for @escaping @callee_guaranteed (@guaranteed NIOThread) -> ()  (in async-http-clientPackageTests) + 17  [0x1129430c1]  <compiler-generated>:0
    +           2852 thunk for @escaping @callee_guaranteed (@guaranteed NIOThread) -> ()  (in async-http-clientPackageTests) + 15  [0x11287b79f]  <compiler-generated>:0
    +             2852 partial apply for closure #1 in static MultiThreadedEventLoopGroup.setupThreadAndEventLoop(name:selectorFactory:initializer:)  (in async-http-clientPackageTests) + 51  [0x112881973]  <compiler-generated>:0
    +               2852 closure #1 in static MultiThreadedEventLoopGroup.setupThreadAndEventLoop(name:selectorFactory:initializer:)  (in async-http-clientPackageTests) + 355  [0x11287b193]  EventLoop.swift:842
    +                 2852 static MultiThreadedEventLoopGroup.runTheLoop(thread:canEventLoopBeShutdownIndividually:selectorFactory:initializer:_:)  (in async-http-clientPackageTests) + 972  [0x11287a9cc]  EventLoop.swift:822
    +                   2852 SelectableEventLoop.run()  (in async-http-clientPackageTests) + 928  [0x1128f89f0]  SelectableEventLoop.swift:394
    +                     2852 withAutoReleasePool<A>(_:)  (in async-http-clientPackageTests) + 57  [0x1128f4739]  SelectableEventLoop.swift:22
    +                       2852 autoreleasepool<A>(invoking:)  (in libswiftObjectiveC.dylib) + 46  [0x7fff6e92fb3e]
    +                         2852 partial apply for closure #1 in withAutoReleasePool<A>(_:)  (in async-http-clientPackageTests) + 31  [0x1128f47ef]  <compiler-generated>:0
    +                           2852 closure #1 in withAutoReleasePool<A>(_:)  (in async-http-clientPackageTests) + 34  [0x1128f4792]  SelectableEventLoop.swift:23
    +                             2852 thunk for @callee_guaranteed () -> (@error @owned Error)partial apply  (in async-http-clientPackageTests) + 20  [0x1128fd8c4]  <compiler-generated>:0
    +                               2852 thunk for @callee_guaranteed () -> (@error @owned Error)  (in async-http-clientPackageTests) + 15  [0x11245857f]  <compiler-generated>:0
    +                                 2852 partial apply for closure #2 in SelectableEventLoop.run()  (in async-http-clientPackageTests) + 20  [0x1128fd8a4]  <compiler-generated>:0
    +                                   2852 closure #2 in SelectableEventLoop.run()  (in async-http-clientPackageTests) + 233  [0x1128f9d39]  SelectableEventLoop.swift:395
    +                                     2852 Selector.whenReady(strategy:_:)  (in async-http-clientPackageTests) + 1200  [0x11290c560]  Selector.swift:517
    +                                       2852 Optional.withUnsafeOptionalPointer<A>(_:)  (in async-http-clientPackageTests) + 561  [0x1128ff2c1]  Selector.swift:39
    +                                         2852 partial apply for thunk for @callee_guaranteed (@unowned UnsafePointer<timespec>?) -> (@unowned Int, @error @owned Error)  (in async-http-clientPackageTests) + 20  [0x112910db4]  <compiler-generated>:0
    +                                           2852 thunk for @callee_guaranteed (@unowned UnsafePointer<timespec>?) -> (@unowned Int, @error @owned Error)  (in async-http-clientPackageTests) + 19  [0x11290e873]  <compiler-generated>:0
    +                                             2852 partial apply for closure #1 in Selector.whenReady(strategy:_:)  (in async-http-clientPackageTests) + 15  [0x112910d8f]  <compiler-generated>:0
    +                                               2852 closure #1 in Selector.whenReady(strategy:_:)  (in async-http-clientPackageTests) + 499  [0x11290e773]  Selector.swift:518
    +                                                 2852 static KQueue.kevent(kq:changelist:nchanges:eventlist:nevents:timeout:)  (in async-http-clientPackageTests) + 377  [0x1129427c9]  System.swift:544
    +                                                   2852 syscall<A>(blocking:where:_:)  (in async-http-clientPackageTests) + 441  [0x11293b049]  System.swift:127
    +                                                     2852 thunk for @callee_guaranteed () -> (@unowned Int32, @error @owned Error)partial apply  (in async-http-clientPackageTests) + 20  [0x1129429b4]  <compiler-generated>:0
    +                                                       2852 thunk for @callee_guaranteed () -> (@unowned Int32, @error @owned Error)  (in async-http-clientPackageTests) + 19  [0x112545363]  <compiler-generated>:0
    +                                                         2852 closure #1 in static KQueue.kevent(kq:changelist:nchanges:eventlist:nevents:timeout:)  (in async-http-clientPackageTests) + 167  [0x112942947]  System.swift:545
    +                                                           2852 @nonobjc kevent(_:_:_:_:_:_:)  (in async-http-clientPackageTests) + 9  [0x11293a9a9]  <compiler-generated>:0
    +                                                             2852 kevent  (in libsystem_kernel.dylib) + 10  [0x7fff6ee02bba]
    2852 Thread_2993824
      2852 start_wqthread  (in libsystem_pthread.dylib) + 15  [0x7fff6eec64c3]
        2852 _pthread_wqthread  (in libsystem_pthread.dylib) + 414  [0x7fff6eec7556]
          2852 __workq_kernreturn  (in libsystem_kernel.dylib) + 10  [0x7fff6edff90e]

Total number in stack (recursive counted multiple, when >=5):
        5       +[XCTContext runInContextForTestCase:block:]  (in XCTest) + 211  [0x10bae431d]

Sort by top of stack, same collapsed (when >= 5):
        kevent  (in libsystem_kernel.dylib)        5704
        __ulock_wait  (in libsystem_kernel.dylib)        2852
        __workq_kernreturn  (in libsystem_kernel.dylib)        2852

lskq/of

$ lskq -p 77189
command                pid                 kq kqst               knid filter    fdtype   fflags       flags           evst      qos               data
-------------------- ----- ------------------ ---- ------------------ --------- -------- ------- --------------- -------------- --- ------------------
xctest               77189                 wq  --q                  0 MEMSTATUS                  an-- --cs u---- ----- ---- ---  UI                  0 
xctest               77189                 wq  --q                  0 MEMSTATUS                  an-- --cs u---- ----- ---- ---  IN                  0 
xctest               77189                 wq  --q                  0 MEMSTATUS                  an-- --cs u---- ----- ---- ---  MG                  0 
xctest               77189                 wq  --q                  1 USER               ---     a--- --c- ----- ----- ---- ---  MG                  0 
xctest               77189                 wq  --q             0x1303 MACHPORT           r       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189                 wq  --q             0x1a0b MACHPORT           r       an-- ---s u---- ----- ---- -v-  MG                  0 
xctest               77189                 wq  --q                147 PROC               x------ an-- --cs u---- ----- ---- ---  IN                  0 
xctest               77189                 wq  --q 0xffffffffffffff06 TIMER              na--l   an-- -1c- ----- ----- ---- ---  MG                  0 
xctest               77189 fd               7  ---                  6 WRITE     PIPE             an-- --c- ----- aq--- ---- ---  --                  0 
xctest               77189 fd               8  k--                  0 USER               ---     an-- --c- ----- ----- ---- ---  --                  0 
xctest               77189 fd              10  k--                 13 READ      SOCKET   -       a--- ---- ----- ----- ---- ---  --                  0 
xctest               77189 fd              10  k--                 15 READ      SOCKET   -       a--- ---- ----- ----- ---- ---  --                  0 
xctest               77189 fd              10  k--                 18 READ      SOCKET   -       a--- ---- ----- ----- ---- ---  --                  0 
xctest               77189 fd              10  k--                 20 READ      SOCKET   -       a--- ---- ----- ----- ---- ---  --                  0 
xctest               77189 fd              10  k--                 22 READ      SOCKET   -       a--- ---- ----- ----- ---- ---  --                  0 
xctest               77189 fd              10  k--                 25 READ      SOCKET   -       a--- ---- ----- ----- ---- ---  --                  0 
xctest               77189 fd              10  k--                 27 READ      SOCKET   -       a--- ---- ----- ----- ---- ---  --                  0 
xctest               77189 fd              10  k--                 28 READ      SOCKET   -       a--- ---- ----- ----- ---- ---  --                  0 
xctest               77189 fd              10  k--                  0 USER               ---     an-- --c- ----- ----- ---- ---  --                  0 
xctest               77189     0x7ff95b1043c0  --l             0x1103 MACHPORT           -       an-- ---s u---- ----- ---- -v-  IN                  0 
xctest               77189     0x7ff95852f260  --l             0x2707 MACHPORT           r       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff95b105700  --l                  5 READ      PIPE     l       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958649f80  --l             0x33a3 MACHPORT           r       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 11 READ      POLICY   l       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 14 SOCK      SOCKET           an-- --cs u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 14 READ      SOCKET   l       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 17 SOCK      SOCKET           an-- --cs u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 17 READ      SOCKET   l       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 19 SOCK      SOCKET           an-- --cs u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 19 READ      SOCKET   l       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 21 SOCK      SOCKET           an-- --cs u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 21 READ      SOCKET   l       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 23 SOCK      SOCKET           an-- --cs u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 23 READ      SOCKET   l       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 24 SOCK      SOCKET           an-- --cs u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 24 READ      SOCKET   l       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 26 SOCK      SOCKET           an-- --cs u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l                 26 READ      SOCKET   l       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff958643210  --l 0xffffffffffffff03 TIMER              ma--l   an-- -1c- ----- ----- ---- ---  DF                  0 
xctest               77189     0x7ff95870ca60  --l             0x1903 MACHPORT           r       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff95b22a150  --l             0x5103 MACHPORT           r       an-- ---s u---- ----- ---- -v-  DF                  0 
xctest               77189     0x7ff95b104ab0  --l             0x2303 MACHPORT           r       an-- ---s u---- ----- ---- -v-  UI                  0 
xctest               77189     0x7ff958506d50  --l             0x2903 MACHPORT           r       an-- ---s u---- ----- ---- -v-  DF                  0 
johannes:~
$ lsof -p 77189
COMMAND   PID     USER   FD      TYPE             DEVICE SIZE/OFF                NODE NAME
xctest  77189 johannes    0r      CHR                3,2      0t0                 332 /dev/null
xctest  77189 johannes    1w      REG               1,14    47126          8747902795 /private/tmp/.nio-release-tools_1BTKsG/log_swift_dHHKIz
xctest  77189 johannes    2w      REG               1,14    47126          8747902795 /private/tmp/.nio-release-tools_1BTKsG/log_swift_dHHKIz
xctest  77189 johannes    3      PIPE 0x29ef7a3602bf2dad    16384                     ->0x3a9d0f9120b87c42
xctest  77189 johannes    4      PIPE 0x3a9d0f9120b87c42    16384                     ->0x29ef7a3602bf2dad
xctest  77189 johannes    5      PIPE 0x8558c6c1784f1f81    16384                     ->0x505cce4c58240e80
xctest  77189 johannes    6      PIPE 0x9192d1c71390c4f6    16384                     ->0x6f87bdc6ae091848
xctest  77189 johannes    7u   KQUEUE                                                 count=1, state=0x8
xctest  77189 johannes    8u   KQUEUE                                                 count=0, state=0xa
xctest  77189 johannes    9u    systm 0x7ee343f4177a7631      0t0                     [ctl com.apple.netsrc id 7 unit 70]
xctest  77189 johannes   10u   KQUEUE                                                 count=0, state=0xa
xctest  77189 johannes   11   NPOLICY                                                 
xctest  77189 johannes   12u    systm 0x7ee343f40c7e2f71      0t0                     [ctl com.apple.netsrc id 7 unit 63]
xctest  77189 johannes   13u     IPv4 0x7ee343f43bc24759      0t0                 TCP localhost:53708 (LISTEN)
xctest  77189 johannes   14u     IPv4 0x7ee343f40bb60ac9      0t0                 TCP localhost:53710->localhost:53708 (ESTABLISHED)
xctest  77189 johannes   15u     IPv4 0x7ee343f40bb61ef9      0t0                 TCP localhost:53708->localhost:53710 (ESTABLISHED)
xctest  77189 johannes   16u     unix 0x7ee343f3fb51f001      0t0                     ->0x7ee343f3fb51e061
xctest  77189 johannes   17u     IPv4 0x7ee343f40bb63d41      0t0                 TCP localhost:53711->localhost:53708 (ESTABLISHED)
xctest  77189 johannes   18u     IPv4 0x7ee343f40bb64759      0t0                 TCP localhost:53708->localhost:53711 (ESTABLISHED)
xctest  77189 johannes   19u     IPv4 0x7ee343f40bb84911      0t0                 TCP localhost:53712->localhost:53708 (ESTABLISHED)
xctest  77189 johannes   20u     IPv4 0x7ee343f40bb85d41      0t0                 TCP localhost:53708->localhost:53712 (ESTABLISHED)
xctest  77189 johannes   21u     IPv4 0x7ee343f40bb820b1      0t0                 TCP localhost:53713->localhost:53708 (ESTABLISHED)
xctest  77189 johannes   22u     IPv4 0x7ee343f40bb80269      0t0                 TCP localhost:53708->localhost:53713 (ESTABLISHED)
xctest  77189 johannes   23u     IPv4 0x7ee343f40bb8aef9      0t0                 TCP localhost:53714->localhost:53708 (ESTABLISHED)
xctest  77189 johannes   24u     IPv4 0x7ee343f40bb8a4e1      0t0                 TCP localhost:53715->localhost:53708 (ESTABLISHED)
xctest  77189 johannes   25u     IPv4 0x7ee343f40bb890b1      0t0                 TCP localhost:53708->localhost:53714 (ESTABLISHED)
xctest  77189 johannes   26u     IPv4 0x7ee343f40ba01d41      0t0                 TCP localhost:53716->localhost:53708 (ESTABLISHED)
xctest  77189 johannes   27u     IPv4 0x7ee343f40b9feac9      0t0                 TCP localhost:53708->localhost:53715 (ESTABLISHED)
xctest  77189 johannes   28u     IPv4 0x7ee343f40ba02759      0t0                 TCP localhost:53708->localhost:53716 (ESTABLISHED)
@weissi weissi added the area/testing Improvements to tests. label Jun 16, 2020
@artemredkin
Copy link
Collaborator

is this with NIOTS?

@weissi
Copy link
Contributor Author

weissi commented Jun 17, 2020

Yes, it was with the nio release tools, so default config on macOS which should be server NIO, client NIOTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Improvements to tests.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants