Skip to content

Instantly share code, notes, and snippets.

@srinadh-k
Created December 11, 2018 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srinadh-k/414b8a805f9fa974f3076786e70b872f to your computer and use it in GitHub Desktop.
Save srinadh-k/414b8a805f9fa974f3076786e70b872f to your computer and use it in GitHub Desktop.
(lldb) bt all
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 27.1
frame #0: 0x00000001092a8feb Cost Alert Bridge App`closure #1 in CouchbaseSingleton.startReplicator(change=CouchbaseLiteSwift.ReplicatorChange @ 0x00007ffee6a55060, self=0x000060000221fcc0, type=pushAndPull) at CouchbaseSingleton.swift:69
frame #1: 0x00000001092ab571 Cost Alert Bridge App`partial apply for closure #1 in CouchbaseSingleton.startReplicator(type:) at <compiler-generated>:0
* frame #2: 0x00000001098ced82 CouchbaseLiteSwift`closure #1 in Replicator.addChangeListener(change=<unavailable>, listener=<unavailable>, self=<unavailable>) at Replicator.swift:140
frame #3: 0x00000001098cf265 CouchbaseLiteSwift`partial apply for closure #1 in Replicator.addChangeListener(withQueue:_:) at <compiler-generated>:0
frame #4: 0x00000001098cede2 CouchbaseLiteSwift`thunk for @escaping @callee_guaranteed (@guaranteed CBLReplicatorChange) -> () at <compiler-generated>:0
frame #5: 0x000000010e557595 libdispatch.dylib`_dispatch_call_block_and_release + 12
frame #6: 0x000000010e558602 libdispatch.dylib`_dispatch_client_callout + 8
frame #7: 0x000000010e56599a libdispatch.dylib`_dispatch_main_queue_callback_4CF + 1541
frame #8: 0x000000010c3923e9 CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
frame #9: 0x000000010c38ca76 CoreFoundation`__CFRunLoopRun + 2342
frame #10: 0x000000010c38be11 CoreFoundation`CFRunLoopRunSpecific + 625
frame #11: 0x0000000114e6a1dd GraphicsServices`GSEventRunModal + 62
frame #12: 0x000000011039f81d UIKitCore`UIApplicationMain + 140
frame #13: 0x0000000109273977 Cost Alert Bridge App`main at AppDelegate.swift:12
frame #14: 0x000000010e5ce575 libdyld.dylib`start + 1
thread #6, name = 'com.apple.uikit.eventfetch-thread'
frame #0: 0x000000010e8f1c2a libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x000000010e8f2174 libsystem_kernel.dylib`mach_msg + 60
frame #2: 0x000000010c3921b4 CoreFoundation`__CFRunLoopServiceMachPort + 212
frame #3: 0x000000010c38c7e9 CoreFoundation`__CFRunLoopRun + 1689
frame #4: 0x000000010c38be11 CoreFoundation`CFRunLoopRunSpecific + 625
frame #5: 0x000000010a11e322 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
frame #6: 0x000000010a11e4f4 Foundation`-[NSRunLoop(NSRunLoop) runUntilDate:] + 79
frame #7: 0x0000000110496bcb UIKitCore`-[UIEventFetcher threadMain] + 118
frame #8: 0x000000010a133732 Foundation`__NSThread__start__ + 1221
frame #9: 0x000000010e948339 libsystem_pthread.dylib`_pthread_body + 126
frame #10: 0x000000010e94b2a7 libsystem_pthread.dylib`_pthread_start + 70
frame #11: 0x000000010e947445 libsystem_pthread.dylib`thread_start + 13
thread #8, name = 'com.apple.CFStream.LegacyThread'
frame #0: 0x000000010e8f1c2a libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x000000010e8f2174 libsystem_kernel.dylib`mach_msg + 60
frame #2: 0x000000010c3921b4 CoreFoundation`__CFRunLoopServiceMachPort + 212
frame #3: 0x000000010c38c7e9 CoreFoundation`__CFRunLoopRun + 1689
frame #4: 0x000000010c38be11 CoreFoundation`CFRunLoopRunSpecific + 625
frame #5: 0x000000010c3a9985 CoreFoundation`_legacyStreamRunLoop_workThread + 261
frame #6: 0x000000010e948339 libsystem_pthread.dylib`_pthread_body + 126
frame #7: 0x000000010e94b2a7 libsystem_pthread.dylib`_pthread_start + 70
frame #8: 0x000000010e947445 libsystem_pthread.dylib`thread_start + 13
thread #9, name = 'com.apple.NSURLConnectionLoader'
frame #0: 0x000000010e8f1c2a libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x000000010e8f2174 libsystem_kernel.dylib`mach_msg + 60
frame #2: 0x000000010c3921b4 CoreFoundation`__CFRunLoopServiceMachPort + 212
frame #3: 0x000000010c38c7e9 CoreFoundation`__CFRunLoopRun + 1689
frame #4: 0x000000010c38be11 CoreFoundation`CFRunLoopRunSpecific + 625
frame #5: 0x000000010bdc5939 CFNetwork`-[__CoreSchedulingSetRunnable runForever] + 195
frame #6: 0x000000010a133732 Foundation`__NSThread__start__ + 1221
frame #7: 0x000000010e948339 libsystem_pthread.dylib`_pthread_body + 126
frame #8: 0x000000010e94b2a7 libsystem_pthread.dylib`_pthread_start + 70
frame #9: 0x000000010e947445 libsystem_pthread.dylib`thread_start + 13
thread #12, name = 'com.apple.CFSocket.private'
frame #0: 0x000000010e8f8e82 libsystem_kernel.dylib`__select + 10
frame #1: 0x000000010c39b3ce CoreFoundation`__CFSocketManager + 670
frame #2: 0x000000010e948339 libsystem_pthread.dylib`_pthread_body + 126
frame #3: 0x000000010e94b2a7 libsystem_pthread.dylib`_pthread_start + 70
frame #4: 0x000000010e947445 libsystem_pthread.dylib`thread_start + 13
thread #13, name = 'LiteCore Timer'
frame #0: 0x000000010e8f51b2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x000000010e94b5cb libsystem_pthread.dylib`_pthread_cond_wait + 724
frame #2: 0x000000010e3ab821 libc++.1.dylib`std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 93
frame #3: 0x0000000109b25e84 CouchbaseLiteSwift`litecore::actor::Timer::Manager::run() [inlined] std::__1::cv_status std::__1::condition_variable::wait_for<long long, std::__1::ratio<1l, 1000000000l> >(this=0x0000600001e48dd8, __lk=0x0000600001e48d98) at __mutex_base:0 [opt]
frame #4: 0x0000000109b25e6d CouchbaseLiteSwift`litecore::actor::Timer::Manager::run() [inlined] std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(this=0x0000600001e48dd8, __lk=0x0000600001e48d98) at __mutex_base:384 [opt]
frame #5: 0x0000000109b25e6d CouchbaseLiteSwift`litecore::actor::Timer::Manager::run(this=0x0000600001e48d80) at Timer.cc:73 [opt]
frame #6: 0x0000000109b25d59 CouchbaseLiteSwift`litecore::actor::Timer::Manager::Manager(this=<unavailable>)::$_0::operator()() const at Timer.cc:33 [opt]
frame #7: 0x0000000109b25d0d CouchbaseLiteSwift`void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, litecore::actor::Timer::Manager::Manager()::$_0> >(void*) [inlined] decltype(std::__1::forward<litecore::actor::Timer::Manager::Manager()::$_0>(fp)(std::__1::forward<>(fp0))) std::__1::__invoke<litecore::actor::Timer::Manager::Manager()::$_0>(litecore::actor::Timer::Manager::Manager()::$_0&&) at type_traits:4428 [opt]
frame #8: 0x0000000109b25d08 CouchbaseLiteSwift`void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, litecore::actor::Timer::Manager::Manager()::$_0> >(void*) [inlined] void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, litecore::actor::Timer::Manager::Manager()::$_0>(__t=<unavailable>)::$_0>&, std::__1::__tuple_indices<>) at thread:342 [opt]
frame #9: 0x0000000109b25d08 CouchbaseLiteSwift`void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, litecore::actor::Timer::Manager::Manager()::$_0> >(__vp=0x0000600002e4f1f0) at thread:352 [opt]
frame #10: 0x000000010e948339 libsystem_pthread.dylib`_pthread_body + 126
frame #11: 0x000000010e94b2a7 libsystem_pthread.dylib`_pthread_start + 70
frame #12: 0x000000010e947445 libsystem_pthread.dylib`thread_start + 13
thread #103
frame #0: 0x000000010e8f35be libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x000000010e947661 libsystem_pthread.dylib`_pthread_wqthread + 446
frame #2: 0x000000010e947435 libsystem_pthread.dylib`start_wqthread + 13
thread #108, queue = 'com.apple.network.connections'
frame #0: 0x000000010e9349ce libsystem_platform.dylib`_platform_bzero$VARIANT$Haswell + 142
frame #1: 0x000000010e89c79b libxpc.dylib`_xpc_serializer_append + 199
frame #2: 0x000000010e89945a libxpc.dylib`_xpc_uint64_serialize + 57
frame #3: 0x000000010e896cb2 libxpc.dylib`_xpc_dictionary_serialize_apply + 201
frame #4: 0x000000010e894ead libxpc.dylib`_xpc_dictionary_apply_node_f + 132
frame #5: 0x000000010e8947a2 libxpc.dylib`_xpc_dictionary_serialize + 161
frame #6: 0x000000010e89cc2c libxpc.dylib`_xpc_serializer_pack + 587
frame #7: 0x000000010e8a19ca libxpc.dylib`_xpc_pipe_pack_message + 128
frame #8: 0x000000010e8a18ab libxpc.dylib`_xpc_pipe_simpleroutine + 58
frame #9: 0x000000010e8a1c71 libxpc.dylib`xpc_pipe_simpleroutine + 44
frame #10: 0x000000010e85761c libsystem_trace.dylib`___os_activity_stream_reflect_block_invoke_2 + 29
frame #11: 0x000000010e558602 libdispatch.dylib`_dispatch_client_callout + 8
frame #12: 0x000000010e55bb78 libdispatch.dylib`_dispatch_block_invoke_direct + 301
frame #13: 0x000000010e55ba2b libdispatch.dylib`dispatch_block_perform + 124
frame #14: 0x000000010e8570aa libsystem_trace.dylib`_os_activity_stream_reflect + 688
frame #15: 0x000000010e863c97 libsystem_trace.dylib`_os_log_impl_stream + 595
frame #16: 0x000000010e863332 libsystem_trace.dylib`_os_log_impl_flatten_and_send + 5592
frame #17: 0x000000010e8647b6 libsystem_trace.dylib`os_log_pack_send + 40
frame #18: 0x000000010f2d1254 libnetwork.dylib`nw_connection_log_event_summary + 5604
frame #19: 0x000000010f2cee84 libnetwork.dylib`nw_connection_log_summary + 12004
frame #20: 0x000000010f2c78ff libnetwork.dylib`nw_connection_send_stats_report + 3103
frame #21: 0x000000010f3f066b libnetwork.dylib`__nw_connection_cancel_inner_block_invoke + 747
frame #22: 0x000000010e557595 libdispatch.dylib`_dispatch_call_block_and_release + 12
frame #23: 0x000000010e558602 libdispatch.dylib`_dispatch_client_callout + 8
frame #24: 0x000000010e56209e libdispatch.dylib`_dispatch_workloop_invoke + 3266
frame #25: 0x000000010e56a89a libdispatch.dylib`_dispatch_workloop_worker_thread + 733
frame #26: 0x000000010e94763c libsystem_pthread.dylib`_pthread_wqthread + 409
frame #27: 0x000000010e947435 libsystem_pthread.dylib`start_wqthread + 13
thread #109
frame #0: 0x000000010e8f35be libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x000000010e947661 libsystem_pthread.dylib`_pthread_wqthread + 446
frame #2: 0x000000010e947435 libsystem_pthread.dylib`start_wqthread + 13
thread #110
frame #0: 0x000000010e8f35be libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x000000010e947661 libsystem_pthread.dylib`_pthread_wqthread + 446
frame #2: 0x000000010e947435 libsystem_pthread.dylib`start_wqthread + 13
thread #111, queue = 'Pull->ws://objectsourceincapps.com:4984/costalerts/_blipsync'
frame #0: 0x000000010e8f34f2 libsystem_kernel.dylib`__fcntl + 10
frame #1: 0x000000010e8f34ac libsystem_kernel.dylib`fcntl + 171
frame #2: 0x00000001099f4c9c CouchbaseLiteSwift`unixShmLock [inlined] unixShmSystemLock(lockType=1, ofst=<unavailable>, n=1) at see-sqlite.c:35449 [opt]
frame #3: 0x00000001099f4c73 CouchbaseLiteSwift`unixShmLock(fd=0x00007fef5507af98, ofst=4, n=1, flags=<unavailable>) at see-sqlite.c:35982 [opt]
frame #4: 0x0000000109a17583 CouchbaseLiteSwift`walTryBeginRead [inlined] sqlite3OsShmLock(id=<unavailable>, offset=4, n=1, flags=6) at see-sqlite.c:21323 [opt]
frame #5: 0x0000000109a17570 CouchbaseLiteSwift`walTryBeginRead [inlined] walLockShared(pWal=<unavailable>, lockIdx=4) at see-sqlite.c:57591 [opt]
frame #6: 0x0000000109a1756c CouchbaseLiteSwift`walTryBeginRead(pWal=0x00007fef56d09c40, pChanged=<unavailable>, useWal=<unavailable>, cnt=<unavailable>) at see-sqlite.c:59338 [opt]
frame #7: 0x0000000109a1eb4f CouchbaseLiteSwift`sqlite3PagerSharedLock [inlined] sqlite3WalBeginReadTransaction(pWal=0x00007fef56d09c40, pChanged=0x0000000000000000) at see-sqlite.c:59495 [opt]
frame #8: 0x0000000109a1eb35 CouchbaseLiteSwift`sqlite3PagerSharedLock [inlined] pagerBeginReadTransaction(pPager=<unavailable>) at see-sqlite.c:52343 [opt]
frame #9: 0x0000000109a1eac2 CouchbaseLiteSwift`sqlite3PagerSharedLock(pPager=0x00007fef5507ae00) at see-sqlite.c:54437 [opt]
frame #10: 0x0000000109a198f9 CouchbaseLiteSwift`sqlite3BtreeBeginTrans [inlined] lockBtree(pBt=<unavailable>) at see-sqlite.c:64563 [opt]
frame #11: 0x0000000109a198c3 CouchbaseLiteSwift`sqlite3BtreeBeginTrans(p=0x00006000022dcff0, wrflag=<unavailable>) at see-sqlite.c:64928 [opt]
frame #12: 0x0000000109a2ae0b CouchbaseLiteSwift`sqlite3VdbeExec(p=0x00007fef58900bb0) at see-sqlite.c:84433 [opt]
frame #13: 0x0000000109a276df CouchbaseLiteSwift`sqlite3_step [inlined] sqlite3Step(p=<unavailable>) at see-sqlite.c:79579 [opt]
frame #14: 0x0000000109a27539 CouchbaseLiteSwift`sqlite3_step(pStmt=0x00007fef58900bb0) at see-sqlite.c:79642 [opt]
frame #15: 0x00000001099bd82f CouchbaseLiteSwift`SQLite::Statement::executeStep(this=0x000070000a0df610) at Statement.cpp:258 [opt]
frame #16: 0x000000010997b8cf CouchbaseLiteSwift`litecore::SQLiteDataFile::intQuery(this=<unavailable>, query=<unavailable>) at SQLiteDataFile.cc:415 [opt]
frame #17: 0x000000010997b2f0 CouchbaseLiteSwift`litecore::SQLiteDataFile::optimizeAndVacuum(this=0x0000600001550380) at SQLiteDataFile.cc:472 [opt]
frame #18: 0x000000010997a0a3 CouchbaseLiteSwift`litecore::SQLiteDataFile::close(this=0x0000600001550380) at SQLiteDataFile.cc:258 [opt]
frame #19: 0x000000010997bb8d CouchbaseLiteSwift`litecore::SQLiteDataFile::~SQLiteDataFile(this=0x0000600001550380) at SQLiteDataFile.cc:169 [opt]
frame #20: 0x0000000109979ffe CouchbaseLiteSwift`litecore::SQLiteDataFile::~SQLiteDataFile() [inlined] litecore::SQLiteDataFile::~SQLiteDataFile(this=0x0000600001550380) at SQLiteDataFile.cc:168 [opt]
frame #21: 0x0000000109979ff9 CouchbaseLiteSwift`litecore::SQLiteDataFile::~SQLiteDataFile(this=0x0000600001550380) at SQLiteDataFile.cc:168 [opt]
frame #22: 0x00000001099b734b CouchbaseLiteSwift`c4Internal::Database::~Database() [inlined] std::__1::default_delete<litecore::DataFile>::operator(__ptr=<unavailable>)(litecore::DataFile*) const at memory:2285 [opt]
frame #23: 0x00000001099b7345 CouchbaseLiteSwift`c4Internal::Database::~Database() [inlined] std::__1::unique_ptr<litecore::DataFile, std::__1::default_delete<litecore::DataFile> >::reset(this=<unavailable>) at memory:2598 [opt]
frame #24: 0x00000001099b7332 CouchbaseLiteSwift`c4Internal::Database::~Database() [inlined] std::__1::unique_ptr<litecore::DataFile, std::__1::default_delete<litecore::DataFile> >::~unique_ptr(this=<unavailable>) at memory:2552 [opt]
frame #25: 0x00000001099b7332 CouchbaseLiteSwift`c4Internal::Database::~Database() [inlined] std::__1::unique_ptr<litecore::DataFile, std::__1::default_delete<litecore::DataFile> >::~unique_ptr(this=<unavailable>) at memory:2552 [opt]
frame #26: 0x00000001099b7332 CouchbaseLiteSwift`c4Internal::Database::~Database(this=0x000060000174c8f0) at Database.cc:200 [opt]
frame #27: 0x000000010996ff98 CouchbaseLiteSwift`c4Database::~c4Database() [inlined] c4Database::~c4Database(this=0x000060000174c8f0) at c4Database.cc:50 [opt]
frame #28: 0x000000010996ff6a CouchbaseLiteSwift`c4Database::~c4Database() [inlined] c4Database::~c4Database(this=0x000060000174c8f0) at c4Database.cc:48 [opt]
frame #29: 0x000000010996ff6a CouchbaseLiteSwift`c4Database::~c4Database(this=0x000060000174c8f0) at c4Database.cc:48 [opt]
frame #30: 0x0000000109986cf5 CouchbaseLiteSwift`litecore::repl::DBWorker::~DBWorker() [inlined] litecore::RefCounted::_release(this=<unavailable>) at RefCounted.hh:48 [opt]
frame #31: 0x0000000109986ce9 CouchbaseLiteSwift`litecore::repl::DBWorker::~DBWorker() [inlined] litecore::release(r=<unavailable>) at RefCounted.hh:65 [opt]
frame #32: 0x0000000109986ce9 CouchbaseLiteSwift`litecore::repl::DBWorker::~DBWorker() [inlined] c4db_free(database=<unavailable>) at c4Database.cc:134 [opt]
frame #33: 0x0000000109986cde CouchbaseLiteSwift`litecore::repl::DBWorker::~DBWorker() [inlined] c4::freeRef(c=<unavailable>) at c4.hh:35 [opt]
frame #34: 0x0000000109986cde CouchbaseLiteSwift`litecore::repl::DBWorker::~DBWorker() [inlined] c4::ref<c4Database>::~ref(this=<unavailable>) at c4.hh:57 [opt]
frame #35: 0x0000000109986cd7 CouchbaseLiteSwift`litecore::repl::DBWorker::~DBWorker() [inlined] c4::ref<c4Database>::~ref(this=<unavailable>) at c4.hh:57 [opt]
frame #36: 0x0000000109986cd7 CouchbaseLiteSwift`litecore::repl::DBWorker::~DBWorker(this=0x00007fef56d052c0) at DBWorker.hh:36 [opt]
frame #37: 0x000000010998698e CouchbaseLiteSwift`litecore::repl::DBWorker::~DBWorker() [inlined] litecore::repl::DBWorker::~DBWorker(this=0x00007fef56d052c0) at DBWorker.hh:36 [opt]
frame #38: 0x0000000109986989 CouchbaseLiteSwift`litecore::repl::DBWorker::~DBWorker(this=0x00007fef56d052c0) at DBWorker.hh:36 [opt]
frame #39: 0x00000001099ca0da CouchbaseLiteSwift`litecore::repl::Puller::~Puller() [inlined] litecore::RefCounted::_release(this=<unavailable>) at RefCounted.hh:48 [opt]
frame #40: 0x00000001099ca0ce CouchbaseLiteSwift`litecore::repl::Puller::~Puller() [inlined] litecore::release(r=<unavailable>) at RefCounted.hh:65 [opt]
frame #41: 0x00000001099ca0c9 CouchbaseLiteSwift`litecore::repl::Puller::~Puller() [inlined] litecore::Retained<litecore::repl::DBWorker>::~Retained(this=<unavailable>) at RefCounted.hh:77 [opt]
frame #42: 0x00000001099ca0c2 CouchbaseLiteSwift`litecore::repl::Puller::~Puller() [inlined] litecore::Retained<litecore::repl::DBWorker>::~Retained(this=<unavailable>) at RefCounted.hh:77 [opt]
frame #43: 0x00000001099ca0c2 CouchbaseLiteSwift`litecore::repl::Puller::~Puller(this=0x00007fef56e210a0) at Puller.hh:29 [opt]
frame #44: 0x00000001099c9cde CouchbaseLiteSwift`litecore::repl::Puller::~Puller() [inlined] litecore::repl::Puller::~Puller(this=0x00007fef56e210a0) at Puller.hh:29 [opt]
frame #45: 0x00000001099c9cd9 CouchbaseLiteSwift`litecore::repl::Puller::~Puller(this=0x00007fef56e210a0) at Puller.hh:29 [opt]
frame #46: 0x000000010e557595 libdispatch.dylib`_dispatch_call_block_and_release + 12
frame #47: 0x000000010e558602 libdispatch.dylib`_dispatch_client_callout + 8
frame #48: 0x000000010e55fb0b libdispatch.dylib`_dispatch_lane_serial_drain + 791
frame #49: 0x000000010e560784 libdispatch.dylib`_dispatch_lane_invoke + 428
frame #50: 0x000000010e56a89a libdispatch.dylib`_dispatch_workloop_worker_thread + 733
frame #51: 0x000000010e94763c libsystem_pthread.dylib`_pthread_wqthread + 409
frame #52: 0x000000010e947435 libsystem_pthread.dylib`start_wqthread + 13
thread #112
frame #0: 0x0000000000000000
(lldb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment