Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-143

segfault during lcb handle-level error handler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 1.1.0
    • 1.0.4, 1.1.0-dp5
    • None
    • Security Level: Public
    • None

    Description

      This is related to CCBC-120 (stack trace there). Will fix accordingly soon.

      Basically the error handler checks for the 'ctx' which is not reset in-between calls.

      The ideal solution should be for start_loop to accept a cookie argument and call lcb_set_cookie on it. This way there is always a valid cookie.

      Otherwise the cookie remains a stale pointer and when the global error handler is called, it crashes.

      Attachments

        Issue Links

          For Gerrit Dashboard: PCBC-143
          # Subject Branch Project Status CR V

          Activity

            People

              mnunberg Mark Nunberg (Inactive)
              mnunberg Mark Nunberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty