An lcb_search call that would return an error calls the callback unexpectedly

Description

That segfaults the python client. I've worked around that for now (but it is a hack). The problem is, we don't clear the callback before calling the handle destructor (which will call the callback if it is set). One-liner fix - clear_callback() in search.cc:46

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

CB robot October 8, 2021 at 8:26 AM

Build couchbase-server-7.1.0-1450 contains libcouchbase commit cf77cb2 with commit message:
https://couchbasecloud.atlassian.net/browse/CCBC-1428#icft=CCBC-1428 Clear callback upon error in lcb_search

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

Details

Assignee

Fix versions

Sprint

Story Points

Components

Reporter

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created July 21, 2021 at 5:01 PM
Updated October 8, 2021 at 8:26 AM
Resolved August 2, 2021 at 5:47 PM
Instabug