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

panic: runtime error: agentops_crud.go:531

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When I startup sync gateway and couchbase server at roughly the same time, I'm seeing this panic:

       

      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x69ff9b]goroutine 117 [running]:
      panic(0xae2140, 0xc42000e040)
      {{ /usr/local/go/src/runtime/panic.go:500 +0x1a1}}
      gopkg.in/couchbase/gocbcore%2ev7.(*Agent).Stats.func2(0x0, 0xc420262000, 0xf58c20, 0x10e2220)
      {{ /Users/tleyden/Development/sync_gateway/godeps/src/gopkg.in/couchbase/gocbcore.v7/agentops_crud.go:531 +0x23b}}
      gopkg.in/couchbase/gocbcore%2ev7.(*memdQRequest).tryCallback(0xc420262000, 0x0, 0xf58c20, 0x10e2220, 0x1)
      {{ /Users/tleyden/Development/sync_gateway/godeps/src/gopkg.in/couchbase/gocbcore.v7/memdqpackets.go:57 +0x85}}

       

      The full logs are attached here:

       

       

      sync_gateway_error.log

       

      For gocb I'm using the not-yet-merged version from https://issues.couchbase.com/browse/GOCBC-210, which I cherry picked from the gerrit change (both gocb and gocb-core).

      For couchbase server, I'm using server-version=5.0.0-3193

      It's running under a setup where everything is running inside docker containers.

      If I delay the sync gateway startup by a few seconds, everything seems to work fine.

       

       

       

       

        Attachments

        1. capture_success_case.pcap
          428 kB
        2. capture.pcap
          46 kB
        3. sync_gateway_error_success_case.log
          1.27 MB
        4. sync_gateway_error.log
          210 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          traun Traun Leyden (Inactive) added a comment -

          I also attached a tcpdump capture from this command:

          tcpdump -i eth1 -s0 port 11210 -w capture.pcap

          Show
          traun Traun Leyden (Inactive) added a comment - I also attached a tcpdump capture from this command: tcpdump -i eth1 -s0 port 11210 -w capture.pcap
          Hide
          traun Traun Leyden (Inactive) added a comment - - edited

          Added logs + packet captures for the success case for comparison.  The only difference in the success case is that it basically waits 30 seconds after starting couchbase server before starting sync gateway

          Show
          traun Traun Leyden (Inactive) added a comment - - edited Added logs + packet captures for the success case for comparison.  The only difference in the success case is that it basically waits 30 seconds after starting couchbase server before starting sync gateway
          Hide
          traun Traun Leyden (Inactive) added a comment -

          I believe this has already been fixed.  Re-open if still pending.

          Show
          traun Traun Leyden (Inactive) added a comment - I believe this has already been fixed.  Re-open if still pending.
          Hide
          build-team Couchbase Build Team added a comment -

          Build 5.0.0-3507 contains gocbcore commit 5f9bdbea97eee2d8937db33f05293935756d0349 with commit message:
          GOCBC-219: Fix possible nil-pointer access in Stats method.
          https://github.com/couchbase/gocbcore/commit/5f9bdbea97eee2d8937db33f05293935756d0349

          Show
          build-team Couchbase Build Team added a comment - Build 5.0.0-3507 contains gocbcore commit 5f9bdbea97eee2d8937db33f05293935756d0349 with commit message: GOCBC-219 : Fix possible nil-pointer access in Stats method. https://github.com/couchbase/gocbcore/commit/5f9bdbea97eee2d8937db33f05293935756d0349
          Hide
          build-team Couchbase Build Team added a comment -

          Build 5.0.1-4671 contains gocbcore commit 5f9bdbea97eee2d8937db33f05293935756d0349 with commit message:
          GOCBC-219: Fix possible nil-pointer access in Stats method.
          https://github.com/couchbase/gocbcore/commit/5f9bdbea97eee2d8937db33f05293935756d0349

          Show
          build-team Couchbase Build Team added a comment - Build 5.0.1-4671 contains gocbcore commit 5f9bdbea97eee2d8937db33f05293935756d0349 with commit message: GOCBC-219 : Fix possible nil-pointer access in Stats method. https://github.com/couchbase/gocbcore/commit/5f9bdbea97eee2d8937db33f05293935756d0349
          Hide
          build-team Couchbase Build Team added a comment -

          Build 5.1.0-1448 contains gocbcore commit 5f9bdbea97eee2d8937db33f05293935756d0349 with commit message:
          GOCBC-219: Fix possible nil-pointer access in Stats method.
          https://github.com/couchbase/gocbcore/commit/5f9bdbea97eee2d8937db33f05293935756d0349

          Show
          build-team Couchbase Build Team added a comment - Build 5.1.0-1448 contains gocbcore commit 5f9bdbea97eee2d8937db33f05293935756d0349 with commit message: GOCBC-219 : Fix possible nil-pointer access in Stats method. https://github.com/couchbase/gocbcore/commit/5f9bdbea97eee2d8937db33f05293935756d0349

            People

            • Assignee:
              brett19 Brett Lawson
              Reporter:
              traun Traun Leyden (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.