(lldb) bt all * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 * frame #0: 0x00007fff203b1b3e libc++abi.dylib`__cxa_throw frame #1: 0x000000010f98e017 CouchbaseLite`litecore::error::_throw(this=0x000000010441fda0, skipFrames=1) at Error.cc:618:9 frame #2: 0x000000010f98e185 CouchbaseLite`litecore::error::_throw(domain=LiteCore, code=6) at Error.cc:624:29 frame #3: 0x000000010ea8be41 CouchbaseLite`litecore::repl::DBAccess::AssertDBOpen(db=0x000061700005a9f0) at DBAccess.hh:46:17 frame #4: 0x000000010ea90c6f CouchbaseLite`decltype(__f=(0x000061700005a9c8), __args=0x000061700005a9f0)(fleece::Retained const&)>(fp)(std::__1::forward const&>(fp0))) std::__1::__invoke const&), fleece::Retained const&>(void (*&)(fleece::Retained const&), fleece::Retained const&) at type_traits:3694:1 frame #5: 0x000000010ea90be2 CouchbaseLite`void std::__1::__invoke_void_return_wrapper::__call const&), fleece::Retained const&>(void (*&)(fleece::Retained const&), fleece::Retained const&) at __functional_base:348:9 frame #6: 0x000000010ea90ba2 CouchbaseLite`std::__1::__function::__alloc_func const&), std::__1::allocator const&)>, void (fleece::Retained const&)>::operator(this=0x000061700005a9c8, __arg=0x000061700005a9f0)(fleece::Retained const&) at functional:1558:16 frame #7: 0x000000010ea8d3f1 CouchbaseLite`std::__1::__function::__func const&), std::__1::allocator const&)>, void (fleece::Retained const&)>::operator(this=0x000061700005a9c0, __arg=0x000061700005a9f0)(fleece::Retained const&) at functional:1732:12 frame #8: 0x000000010ee37c08 CouchbaseLite`std::__1::__function::__value_func const&)>::operator(this=0x000061700005a9c0, __args=0x000061700005a9f0)(fleece::Retained const&) const at functional:1885:16 frame #9: 0x000000010ee3794d CouchbaseLite`std::__1::function const&)>::operator(this= Function = litecore::repl::DBAccess::AssertDBOpen(fleece::Retained const&) , __arg=0x000061700005a9f0)(fleece::Retained const&) const at functional:2560:12 frame #10: 0x000000010ee3789c CouchbaseLite`litecore::access_lock, std::__1::recursive_mutex>::access&>::access(this=0x000000010454e280, mut=0x000061700005a9f8, ref=0x000061700005a9f0, sentry= Function = litecore::repl::DBAccess::AssertDBOpen(fleece::Retained const&) )>&) at access_lock.hh:109:29 frame #11: 0x000000010ee28c91 CouchbaseLite`litecore::access_lock, std::__1::recursive_mutex>::useLocked(this=0x000061700005a9c0) at access_lock.hh:152:20 frame #12: 0x000000010ee2b6f5 CouchbaseLite`litecore::repl::Replicator::isDocumentPending(this=0x000061900009a680, docID=litecore::repl::Worker::slice @ 0x000000010454e230) at Replicator.cc:680:52 frame #13: 0x000000010ed408e2 CouchbaseLite`litecore::C4ReplicatorImpl::PendingDocuments::isDocumentPending(this=0x0000000104694a40, docID=(buf = 0x000000010e37cc03, size = 5)) at c4ReplicatorImpl.hh:533:47 frame #14: 0x000000010ed0569b CouchbaseLite`litecore::C4ReplicatorImpl::isDocumentPending(this=0x0000613000075600, docID=(buf = 0x000000010e37cc03, size = 5)) const at c4ReplicatorImpl.hh:193:43 frame #15: 0x000000010ed05391 CouchbaseLite`C4Replicator::isDocumentPending(this=0x0000613000075600, docID=C4Base::slice @ 0x000000010441efa0) const at c4Replicator.cc:94:30 frame #16: 0x000000010ebfa3b7 CouchbaseLite`::c4repl_isDocumentPending(repl=0x0000613000075600, docID=(buf = 0x000000010e37cc03, size = 5), outErr=0x00000001046932a0) at c4Replicator_CAPI.cc:159:22 frame #17: 0x000000010e5ea13d CouchbaseLite`-[CBLReplicator isDocumentPending:error:](self=0x0000610000040c40, _cmd="isDocumentPending:error:", documentID="doc-1", error=0x00000001046e2060) at CBLReplicator.mm:461:22 frame #18: 0x000000010e1aa2db CouchbaseLiteTests`__67-[ReplicatorTest_PendingDocIds testIsDocumentPendingWithPushFilter]_block_invoke_2(.block_descriptor=0x00006040000ec910, change=0x00006030000880f0) at ReplicatorTest+PendingDocIds.m:397:24 frame #19: 0x000000010e5353ad CouchbaseLite`__37-[CBLChangeListenerToken postChange:]_block_invoke(.block_descriptor=0x00006040000e4cd0) at CBLChangeListenerToken.m:44:9 frame #20: 0x00000001001735fb libclang_rt.asan_osx_dynamic.dylib`__wrap_dispatch_async_block_invoke + 203 frame #21: 0x00007fff20241623 libdispatch.dylib`_dispatch_call_block_and_release + 12 frame #22: 0x00007fff20242806 libdispatch.dylib`_dispatch_client_callout + 8 frame #23: 0x00007fff2024eb4f libdispatch.dylib`_dispatch_main_queue_callback_4CF + 940 frame #24: 0x00007fff20520f18 CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 frame #25: 0x00007fff204e3112 CoreFoundation`__CFRunLoopRun + 2755 frame #26: 0x00007fff204e1f8c CoreFoundation`CFRunLoopRunSpecific + 563 frame #27: 0x0000000100e37a70 XCTestCore`-[XCTWaiter waitForExpectations:timeout:enforceOrder:] + 832 frame #28: 0x0000000100ddc190 XCTestCore`-[XCTestCase(AsynchronousTesting) waitForExpectations:timeout:enforceOrder:] + 102 frame #29: 0x000000010e1a98e2 CouchbaseLiteTests`-[ReplicatorTest_PendingDocIds testIsDocumentPendingWithPushFilter](self=0x0000612000051040, _cmd="testIsDocumentPendingWithPushFilter") at ReplicatorTest+PendingDocIds.m:415:5 frame #30: 0x00007fff204c76fc CoreFoundation`__invoking___ + 140 frame #31: 0x00007fff204c759d CoreFoundation`-[NSInvocation invoke] + 305 frame #32: 0x0000000100e90488 XCTestCore`+[XCTFailableInvocation invokeStandardConventionInvocation:completion:] + 64 frame #33: 0x0000000100e90446 XCTestCore`__65+[XCTFailableInvocation invokeInvocation:lastObservedErrorIssue:]_block_invoke_3 + 23 frame #34: 0x0000000100e8fe32 XCTestCore`__81+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:]_block_invoke.11 + 71 frame #35: 0x0000000100e0b632 XCTestCore`+[XCTSwiftErrorObservation observeErrorsInBlock:] + 113 frame #36: 0x0000000100e8fcc7 XCTestCore`+[XCTFailableInvocation invokeWithAsynchronousWait:lastObservedErrorIssue:block:] + 435 frame #37: 0x0000000100e9015a XCTestCore`+[XCTFailableInvocation invokeInvocation:lastObservedErrorIssue:] + 237 frame #38: 0x0000000100e76788 XCTestCore`__24-[XCTestCase invokeTest]_block_invoke_2 + 99 frame #39: 0x0000000100e1ae03 XCTestCore`-[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 65 frame #40: 0x0000000100e80e1d XCTestCore`-[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 61 frame #41: 0x0000000100e766ec XCTestCore`__24-[XCTestCase invokeTest]_block_invoke.272 + 165 frame #42: 0x0000000100de68b4 XCTestCore`-[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 179 frame #43: 0x0000000100e76244 XCTestCore`-[XCTestCase invokeTest] + 812 frame #44: 0x0000000100e77b52 XCTestCore`__26-[XCTestCase performTest:]_block_invoke_2 + 43 frame #45: 0x0000000100de68b4 XCTestCore`-[XCTestCase(XCTIssueHandling) _caughtUnhandledDeveloperExceptionPermittingControlFlowInterruptions:caughtInterruptionException:whileExecutingBlock:] + 179 frame #46: 0x0000000100e77a89 XCTestCore`__26-[XCTestCase performTest:]_block_invoke.375 + 86 frame #47: 0x0000000100e3064c XCTestCore`+[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 220 frame #48: 0x0000000100e77299 XCTestCore`-[XCTestCase performTest:] + 693 frame #49: 0x0000000100db27a2 XCTestCore`-[XCTest runTest] + 57 frame #50: 0x0000000100e33829 XCTestCore`-[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 156 frame #51: 0x0000000100e3369f XCTestCore`__27-[XCTestSuite performTest:]_block_invoke + 252 frame #52: 0x0000000100e32fd5 XCTestCore`__59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 24 frame #53: 0x0000000100e3064c XCTestCore`+[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 220 frame #54: 0x0000000100e32f8c XCTestCore`-[XCTestSuite _performProtectedSectionForTest:testSection:] + 159 frame #55: 0x0000000100e3324a XCTestCore`-[XCTestSuite performTest:] + 222 frame #56: 0x0000000100db27a2 XCTestCore`-[XCTest runTest] + 57 frame #57: 0x0000000100e33829 XCTestCore`-[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 156 frame #58: 0x0000000100e3369f XCTestCore`__27-[XCTestSuite performTest:]_block_invoke + 252 frame #59: 0x0000000100e32fd5 XCTestCore`__59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 24 frame #60: 0x0000000100e3064c XCTestCore`+[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 220 frame #61: 0x0000000100e32f8c XCTestCore`-[XCTestSuite _performProtectedSectionForTest:testSection:] + 159 frame #62: 0x0000000100e3324a XCTestCore`-[XCTestSuite performTest:] + 222 frame #63: 0x0000000100db27a2 XCTestCore`-[XCTest runTest] + 57 frame #64: 0x0000000100e33829 XCTestCore`-[XCTestSuite runTestBasedOnRepetitionPolicy:testRun:] + 156 frame #65: 0x0000000100e3369f XCTestCore`__27-[XCTestSuite performTest:]_block_invoke + 252 frame #66: 0x0000000100e32fd5 XCTestCore`__59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 24 frame #67: 0x0000000100e3064c XCTestCore`+[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 220 frame #68: 0x0000000100e32f8c XCTestCore`-[XCTestSuite _performProtectedSectionForTest:testSection:] + 159 frame #69: 0x0000000100e3324a XCTestCore`-[XCTestSuite performTest:] + 222 frame #70: 0x0000000100db27a2 XCTestCore`-[XCTest runTest] + 57 frame #71: 0x0000000100db46a7 XCTestCore`__44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke_2 + 148 frame #72: 0x0000000100e3064c XCTestCore`+[XCTContext runInContextForTestCase:markAsReportingBase:block:] + 220 frame #73: 0x0000000100db460c XCTestCore`__44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 119 frame #74: 0x0000000100db478d XCTestCore`__44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.85 + 96 frame #75: 0x0000000100ddee7f XCTestCore`-[XCTestObservationCenter _observeTestExecutionForBlock:] + 325 frame #76: 0x0000000100db437e XCTestCore`-[XCTTestRunSession runTestsAndReturnError:] + 473 frame #77: 0x0000000100e2dc67 XCTestCore`-[XCTestDriver _runTests] + 466 frame #78: 0x0000000100db2d36 XCTestCore`_XCTestMain + 108 frame #79: 0x0000000100006480 xctest`main + 423 frame #80: 0x00007fff20407f3d libdyld.dylib`start + 1 frame #81: 0x00007fff20407f3d libdyld.dylib`start + 1 thread #2 frame #0: 0x00007fff203b895e libsystem_kernel.dylib`__workq_kernreturn + 10 frame #1: 0x00007fff203e94c1 libsystem_pthread.dylib`_pthread_wqthread + 414 frame #2: 0x00007fff203e842f libsystem_pthread.dylib`start_wqthread + 15 thread #3 frame #0: 0x00007fff203b895e libsystem_kernel.dylib`__workq_kernreturn + 10 frame #1: 0x00007fff203e94c1 libsystem_pthread.dylib`_pthread_wqthread + 414 frame #2: 0x00007fff203e842f libsystem_pthread.dylib`start_wqthread + 15 thread #4 frame #0: 0x00007fff203b895e libsystem_kernel.dylib`__workq_kernreturn + 10 frame #1: 0x00007fff203e94c1 libsystem_pthread.dylib`_pthread_wqthread + 414 frame #2: 0x00007fff203e842f libsystem_pthread.dylib`start_wqthread + 15 thread #5 frame #0: 0x00007fff203b895e libsystem_kernel.dylib`__workq_kernreturn + 10 frame #1: 0x00007fff203e94c1 libsystem_pthread.dylib`_pthread_wqthread + 414 frame #2: 0x00007fff203e842f libsystem_pthread.dylib`start_wqthread + 15 thread #6 frame #0: 0x00007fff203b895e libsystem_kernel.dylib`__workq_kernreturn + 10 frame #1: 0x00007fff203e94c1 libsystem_pthread.dylib`_pthread_wqthread + 414 frame #2: 0x00007fff203e842f libsystem_pthread.dylib`start_wqthread + 15 thread #7 frame #0: 0x00007fff203e8420 libsystem_pthread.dylib`start_wqthread thread #8, name = 'Timer (CBL)' frame #0: 0x00007fff203b9cde libsystem_kernel.dylib`__psynch_cvwait + 10 frame #1: 0x00007fff203ece49 libsystem_pthread.dylib`_pthread_cond_wait + 1298 frame #2: 0x00007fff20355e03 libc++.1.dylib`std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock&, std::__1::chrono::time_point > >) + 93 frame #3: 0x000000010eda72dd CouchbaseLite`std::__1::cv_status std::__1::condition_variable::wait_for >(this=0x000060d000018018, __lk=0x0000000112ff7020, __d=0x0000000112f77c40) at __mutex_base:465:9 frame #4: 0x000000010eda65bc CouchbaseLite`void std::__1::condition_variable::__do_timed_wait(this=0x000060d000018018, __lk=0x0000000112ff7020, __tp=time_point > > @ 0x0000000112f77c20) at __mutex_base:520:5 frame #5: 0x000000010ed9fe33 CouchbaseLite`std::__1::cv_status std::__1::condition_variable::wait_until > >(this=0x000060d000018018, __lk=0x0000000112ff7020, __t=0x0000000112ff70a0) at __mutex_base:423:5 frame #6: 0x000000010ed9ef90 CouchbaseLite`litecore::actor::Timer::Manager::run(this=0x000060d000017fc0) at Timer.cc:62:28 frame #7: 0x000000010eda41f5 CouchbaseLite`litecore::actor::Timer::Manager::Manager(this=0x000060200001a558)::$_0::operator()() const at Timer.cc:28:24 frame #8: 0x000000010eda416d CouchbaseLite`decltype(__f=0x000060200001a558)::$_0>(fp)()) std::__1::__invoke(litecore::actor::Timer::Manager::Manager()::$_0&&) at type_traits:3694:1 frame #9: 0x000000010eda3f15 CouchbaseLite`void std::__1::__thread_execute >, litecore::actor::Timer::Manager::Manager()::$_0>(__t=size=2, (null)=__tuple_indices<> @ 0x00007000100c3f08)::$_0>&, std::__1::__tuple_indices<>) at thread:286:5 frame #10: 0x000000010eda2e03 CouchbaseLite`void* std::__1::__thread_proxy >, litecore::actor::Timer::Manager::Manager()::$_0> >(__vp=0x000060200001a550) at thread:297:5 frame #11: 0x00007fff203ec8fc libsystem_pthread.dylib`_pthread_start + 224 frame #12: 0x00007fff203e8443 libsystem_pthread.dylib`thread_start + 15 (lldb)