-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in CBLDatabase_SaveDocumentWithConcurrencyControl
and CBLDocument::properties()
#330
Comments
Is it possible that the document that is accessing its properties or is being saved is released on another thread? |
Only a single thread is accessing the same database and all related documents. However, I do share the |
|
This issue was caused by #339, which has been fixed in the latest release. In our case we write to the same document many times. In some cases more times than can be counted by a uint16_t variable. I suspect that there is a counter somewhere in the document revision data, that once overflowed causes corruption of the document data that could lead to crashes. |
These crashes were reported in cbl-dart/cbl-dart#390:
Both seem to be related to
RevTree
but that might be a coincidence.The text was updated successfully, but these errors were encountered: