You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are seeing a frequent native crash with Couchbase Lite Swift 4.1.0 on iOS/iPadOS.
The crash occurs on a Couchbase Lite background thread while the replicator is processing and inserting an incoming revision.
The crashed stack is inside LiteCore/Fleece and eventually terminates at:
fleece::impl::internal::HeapValue::release(...)
with a SIGSEGV / SEGV_ACCERR.
There is no application-level code in the crashed thread.
This looks somewhat similar to #3499, which also involved native crashes inside Fleece/LiteCore. However, #3499 was reported against an earlier Couchbase Lite version and was mentioned as fixed in 4.1.0.
We are already using 4.1.0, and this crash occurs through a different path related to replication insertion:
We are currently trying to identify whether a particular document structure, revision sequence, concurrency condition, or replication state consistently triggers the crash.
Expected behavior
The incoming revision should either:
be successfully processed and stored by Couchbase Lite, or
fail gracefully and report an error through the replication/database APIs.
A document/revision processing issue should not result in a native SIGSEGV inside LiteCore/Fleece.
Logs
We are collecting Couchbase Lite diagnostic logs with sensitive application and user information removed.
The crash itself occurs on the Couchbase Lite replication worker thread.
A sanitized crash report can also be provided if required.
Screenshots
Not applicable.
The issue is a native runtime crash and does not have a specific UI state associated with it.
Platform (please complete the following information):
Device: iPhone / iPad
Architecture: ARM64
OS: iOS / iPadOS 26.x
Couchbase Version: CouchbaseLiteSwift 4.1.0
Sync Gateway Version: 4.0.5-2.0.0
Replication Type: Continuous replication
Additional context
Issue #3499 appears related because it also reported crashes inside Fleece/LiteCore.
In that issue, Couchbase identified a race between saving a document and freeing an internal database object. The maintainers later mentioned that the fix was included in Couchbase Lite 4.1.0.
We are already running 4.1.0, but are still seeing a frequent native crash inside Fleece/LiteCore.
Describe the bug
We are seeing a frequent native crash with Couchbase Lite Swift 4.1.0 on iOS/iPadOS.
The crash occurs on a Couchbase Lite background thread while the replicator is processing and inserting an incoming revision.
The crashed stack is inside LiteCore/Fleece and eventually terminates at:
with a
SIGSEGV / SEGV_ACCERR.There is no application-level code in the crashed thread.
This looks somewhat similar to #3499, which also involved native crashes inside Fleece/LiteCore. However, #3499 was reported against an earlier Couchbase Lite version and was mentioned as fixed in 4.1.0.
We are already using 4.1.0, and this crash occurs through a different path related to replication insertion:
The crash occurs frequently in real-world usage but we have not yet been able to reproduce it deterministically in our development environment.
To Reproduce
We do not currently have a deterministic unit test or standalone sample project that reproduces the issue.
The crash is observed during normal replication activity.
General flow:
The relevant part of the crash stack is:
Exception:
We are currently trying to identify whether a particular document structure, revision sequence, concurrency condition, or replication state consistently triggers the crash.
Expected behavior
The incoming revision should either:
A document/revision processing issue should not result in a native
SIGSEGVinside LiteCore/Fleece.Logs
We are collecting Couchbase Lite diagnostic logs with sensitive application and user information removed.
The crash itself occurs on the Couchbase Lite replication worker thread.
Relevant native stack:
A sanitized crash report can also be provided if required.
Screenshots
Not applicable.
The issue is a native runtime crash and does not have a specific UI state associated with it.
Platform (please complete the following information):
Additional context
Issue #3499 appears related because it also reported crashes inside Fleece/LiteCore.
In that issue, Couchbase identified a race between saving a document and freeing an internal database object. The maintainers later mentioned that the fix was included in Couchbase Lite 4.1.0.
We are already running 4.1.0, but are still seeing a frequent native crash inside Fleece/LiteCore.
There are two notable differences from #3499:
Our crash occurs around:
rather than directly from an application-triggered
Collection.save(document:)operation.Could you please confirm:
Inserter::insertRevisionNow.crashlog.zip I've attached partial crash logs here.