Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-280

Invalid memory address or nil pointer dereference on cluster restart

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.4
    • Component/s: None
    • Labels:
      None

      Description

      Server version is 4.6.3 GA (but it happens regardless of the server)
      Go SDK codes are
      https://github.com/brett19/gocbcore/
      branch:v7
      commit:5f7997accbcac0ffb0d456d8a13582172dfc1e1b

      https://github.com/brett19/gocb
      branch:master
      commit:2eb0acf712d18731419004e82c57cd80d9914db4

      When all servers are restarting one by one with 5 seconds sleep,
      As soon as the first server stops (systemctl stop couchbase-server), then panic shows up

      [88.65 DEBUG] (SSHCommand execute:75) Running service couchbase-server stop on 172.23.98.167
      [88.99 INFO] (SDKD log:137) panic: runtime error: invalid memory address or nil pointer dereference
      [88.99 INFO] (SDKD log:137) [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x6af14f]
      [88.99 INFO] (SDKD log:137)
      [88.99 INFO] (SDKD log:137) goroutine 98 [running]:
      [89.00 INFO] (SDKD log:137) github.com/couchbase/gocb.(*Bucket).lookupIn.func1(0x0, 0x8e2fa0, 0x93d800)
      [89.00 INFO] (SDKD log:137) /root/jenkins/workspace/sdk-go-situational-release/go-sdk-situational-watson-4.6.3/src/github.com/couchbase/gocb/bucket_subdoc.go:171 +0x9f
      [89.00 INFO] (SDKD log:137) Starting SDKD on port 842350556864
      [89.00 INFO] (SDKD log:137) gopkg.in/couchbase/gocbcore%2ev7.(*Agent).LookupInEx.func1(0x0, 0xc4208e65a0, 0x8e2fa0, 0x93d800)
      [89.00 INFO] (SDKD log:137) /root/jenkins/workspace/sdk-go-situational-release/go-sdk-situational-watson-4.6.3/src/gopkg.in/couchbase/gocbcore.v7/agentops_subdoc.go:432 +0x4a0

      Expected : no panic and application should continue

        Attachments

        For Gerrit Dashboard: GOCBC-280
        # Subject Branch Project Status CR V

          Activity

          Hide
          jaekwon.park Jae Park [X] (Inactive) added a comment -

          Attached the log

          When server stops, 'res' in this line was nil
          https://github.com/brett19/gocb/blob/master/bucket_subdoc.go#L171

          Show
          jaekwon.park Jae Park [X] (Inactive) added a comment - Attached the log When server stops, 'res' in this line was nil https://github.com/brett19/gocb/blob/master/bucket_subdoc.go#L171
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-5.5.0-2559 contains gocb commit 02baf790f4fc20aad24a111f6228edff88754b20 with commit message:
          GOCBC-280: Fix nil pointer exception during subdoc errors.
          https://github.com/couchbase/gocb/commit/02baf790f4fc20aad24a111f6228edff88754b20

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.0-2559 contains gocb commit 02baf790f4fc20aad24a111f6228edff88754b20 with commit message: GOCBC-280 : Fix nil pointer exception during subdoc errors. https://github.com/couchbase/gocb/commit/02baf790f4fc20aad24a111f6228edff88754b20
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-6.0.0-1046 contains gocb commit 02baf790f4fc20aad24a111f6228edff88754b20 with commit message:
          GOCBC-280: Fix nil pointer exception during subdoc errors.
          https://github.com/couchbase/gocb/commit/02baf790f4fc20aad24a111f6228edff88754b20

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.0-1046 contains gocb commit 02baf790f4fc20aad24a111f6228edff88754b20 with commit message: GOCBC-280 : Fix nil pointer exception during subdoc errors. https://github.com/couchbase/gocb/commit/02baf790f4fc20aad24a111f6228edff88754b20
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.1.0-83 contains gocb commit 02baf790f4fc20aad24a111f6228edff88754b20 with commit message:
          GOCBC-280: Fix nil pointer exception during subdoc errors.
          https://github.com/couchbase/gocb/commit/02baf790f4fc20aad24a111f6228edff88754b20

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.1.0-83 contains gocb commit 02baf790f4fc20aad24a111f6228edff88754b20 with commit message: GOCBC-280 : Fix nil pointer exception during subdoc errors. https://github.com/couchbase/gocb/commit/02baf790f4fc20aad24a111f6228edff88754b20
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-5.1.2-6014 contains gocb commit 02baf79 with commit message:
          GOCBC-280: Fix nil pointer exception during subdoc errors.

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-5.1.2-6014 contains gocb commit 02baf79 with commit message: GOCBC-280 : Fix nil pointer exception during subdoc errors.
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-5.1.1-5904 contains gocb commit 02baf79 with commit message:
          GOCBC-280: Fix nil pointer exception during subdoc errors.

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-5.1.1-5904 contains gocb commit 02baf79 with commit message: GOCBC-280 : Fix nil pointer exception during subdoc errors.

            People

            • Assignee:
              brett19 Brett Lawson
              Reporter:
              jaekwon.park Jae Park [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.