Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1425

libcouchbase invokes trace methods after final callbacks, leading to segfault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.2.0
    • 3.2.0
    • library
    • None
    • 1

    Description

      Libcouchbase appears to be invoking various trace methods against trace spans that were created by the application after the final callback of the associated method has returned. For instance, a view query's final callback is invoked and then the associated trace for that view query is closed, this leads to a segfault as libcouchbase tries to set properties against a freed span (the span is freed as part of the final callback that is invoked, since otherwise it would be leaked). I believe that this also implies that the spans are being closed late (query spans should be closed as soon as the first row is received, as query row streaming is not considered part of the SDK-side trace).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            avsej Sergey Avseyev
            brett19 Brett Lawson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty