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:
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.