Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-647

mutex lock failed: Invalid argument

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.8.0
    • 2.8.0
    • LiteCore
    • Security Level: Public
    • None

    Description

      Issue happens with latest lite core update

      Steps to Reproduce:

      • Happens randomly when running unit tests

      Actual Result:

      • Should not cause a mutex lock.

      Expected Result:

      • mutex lock failure

      (lldb) bt
      * thread #24, queue = 'Repl->file:////var/folders/bz/vsvhjks11qncrj3_mzsstvj80000gn/T/CouchbaseLite_EE/otherdb.cblite2/', stop reason = breakpoint 1.1
        * frame #0: 0x00007fff6c94d3ec libc++abi.dylib`__cxa_throw
          frame #1: 0x00007fff6c93f2db libc++.1.dylib`std::__1::__throw_system_error(int, char const*) + 77
          frame #2: 0x00007fff6c8f944d libc++.1.dylib`std::__1::mutex::lock() + 29
          frame #3: 0x000000010a2f5154 CouchbaseLite`std::__1::lock_guard<std::__1::mutex>::lock_guard(this=0x0000000113e2b360, __m=0x0000612000794d70) at __mutex_base:104:27
          frame #4: 0x000000010a2f430d CouchbaseLite`std::__1::lock_guard<std::__1::mutex>::lock_guard(this=0x0000000113e2b360, __m=0x0000612000794d70) at __mutex_base:104:21
          frame #5: 0x000000010a3091e2 CouchbaseLite`c4Internal::C4LocalReplicator::replicatorStatusChanged(this=0x0000612000794d40, repl=0x000061900037fa80, newStatus=0x0000000113fedc90) at c4LocalReplicator.hh:66:13
          frame #6: 0x000000010a3865d5 CouchbaseLite`litecore::repl::Replicator::reportStatus(this=0x000061900037fa80) at Replicator.cc:329:24
          frame #7: 0x000000010a385ef8 CouchbaseLite`litecore::repl::Replicator::changedStatus(this=0x000061900037fa80) at Replicator.cc:314:17
          frame #8: 0x000000010a62dd6c CouchbaseLite`litecore::repl::Worker::afterEvent(this=0x000061900037fa80) at Worker.cc:278:13
          frame #9: 0x000000010aab9787 CouchbaseLite`litecore::actor::GCDMailbox::afterEvent(this=0x000061900037fa90) at GCDMailbox.cc:126:17
          frame #10: 0x000000010aab96bf CouchbaseLite`::___ZN8litecore5actor10GCDMailbox7enqueueEU13block_pointerFvvE_block_invoke(.block_descriptor=0x000060400016a5d0) at GCDMailbox.cc:102:13
          frame #11: 0x000000010016e6e6 libclang_rt.asan_osx_dynamic.dylib`__wrap_dispatch_async_block_invoke + 214
          frame #12: 0x00007fff6f788583 libdispatch.dylib`_dispatch_call_block_and_release + 12
          frame #13: 0x00007fff6f78950e libdispatch.dylib`_dispatch_client_callout + 8
          frame #14: 0x00007fff6f78eace libdispatch.dylib`_dispatch_lane_serial_drain + 597
          frame #15: 0x00007fff6f78f452 libdispatch.dylib`_dispatch_lane_invoke + 363
          frame #16: 0x00007fff6f798a9e libdispatch.dylib`_dispatch_workloop_worker_thread + 598
          frame #17: 0x00007fff6f9e36fc libsystem_pthread.dylib`_pthread_wqthread + 290
          frame #18: 0x00007fff6f9e2827 libsystem_pthread.dylib`start_wqthread + 15
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              The Lite The Lite
              Jayahari.Vavachan Jay Vavachan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty