Native crash in objects derived from ResultSet

Description

Any object obtained from a ResultSet, a Result, a Dictionary, an Array, etc, cannot be used once the ResultSet that owns the c4QueryEnum has been closed.

Closing the ResultSet will free the query enumerator and subsequent references to the Fleece data underlying it will have unpredictable results.

Any reference to any object that can be obtained from a QueryResult should fail immediatly, if the QueryResult that owns it has been closed.

Activity

Show:

CB robot April 26, 2024 at 10:07 PM

Build couchbase-lite-java-3.2.0-71 contains couchbase-lite-java-common commit d5296f9 with commit message:
: Native crash using ResultSet component after close (#282)

CB robot April 26, 2024 at 10:07 PM

Build couchbase-lite-android-3.2.0-80 contains couchbase-lite-java-common commit d5296f9 with commit message:
: Native crash using ResultSet component after close (#282)

Blake Meike March 13, 2024 at 5:46 PM

VF 2.1.6-001 for contains code that addresses this issue.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created March 6, 2024 at 1:31 AM
Updated August 31, 2024 at 10:56 AM
Resolved July 24, 2024 at 7:07 PM
Instabug