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

panic: runtime error: agentops_crud.go:531

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • None
    • None
    • None
    • 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

          People

            brett19 Brett Lawson
            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