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

Ensure that c4queryobs_* functions are called under the database-exclusive lock

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • Beryllium
    • Beryllium
    • .NET
    • Security Level: Public
    • None
    • Jim 122, Jim 123
    • 2

    Description

      Based on iOS's CBSE-15957 / CBL-4428, crash from using an already freed background database in LiteCore's LiveQuerier object could happen if mutliple live queries are started concurrently. In iOS, the issue happens as iOS didn't call c4queryobs_setEnabled: functions under the database's exclusive lock.

      This ticket is to make sure that the platform does follow the thread-safety guideline that c4queryobs_* functions beside c4queryobs_create must be called under the database's exclusive lock.

      Thread-Safety Doc : https://github.com/couchbase/couchbase-lite-core/wiki/Thread-Safety

      Attachments

        Issue Links

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

          Activity

            People

              jimb Jim Borden
              pasin Pasin Suriyentrakorn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty