Details
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
- backports to
-
CBL-5271 Ensure that c4queryobs_* functions are called under the database-exclusive lock
- Closed