Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-24500

(*bucketDataSource).handleRecv panic: runtime error: slice bounds out of range

    XMLWordPrintable

Details

    • Task
    • Resolution: Duplicate
    • Major
    • None
    • master
    • cbdatasource
    • None

    Description

      I'm seeing this during some test development, where I think one test might be leaving a DCP connection open, and the next test is flushing the bucket and then opening a new DCP connection.  

       

      cbdatasource / go-couchbase commit: b8f5b7e5e256b586d30ddf92f484ad91dc1e8c60 from May 3, 2017 at 2:29:22 PM PDT

      Couchbase server: 4.1.0-5005 Community Edition (build-5005) 

      If needed, I can provide detailed steps to repro.

       

      Here's the panic message:

       

      panic: runtime error: slice bounds out of range

      goroutine 46 [running]:
      panic(0x52f740, 0xc420014140)
      /usr/local/go/src/runtime/panic.go:500 +0x1a1
      github.com/couchbase/go-couchbase/cbdatasource.(*bucketDataSource).handleRecv(0xc4202f4000, 0xc4201e7320, 0xc4201ef410, 0xc4201d8e40, 0x0, 0x0)
      /Users/tleyden/Development/sync_gateway/godeps/src/github.com/couchbase/go-couchbase/cbdatasource/cbdatasource.go:1346 +0xbb6
      github.com/couchbase/go-couchbase/cbdatasource.(*bucketDataSource).worker.func5(0xc4201e73e0, 0xc4202f4000, 0xc4201f30d0, 0xf, 0xc4203929e0, 0x1d, 0xc4201ef380, 0xc4201f34e8, 0xc4201ef410, 0xc4201e7320, ...)
      /Users/tleyden/Development/sync_gateway/godeps/src/github.com/couchbase/go-couchbase/cbdatasource/cbdatasource.go:1162 +0xf11
      created by github.com/couchbase/go-couchbase/cbdatasource.(*bucketDataSource).worker
      /Users/tleyden/Development/sync_gateway/godeps/src/github.com/couchbase/go-couchbase/cbdatasource/cbdatasource.go:1184 +0x563

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            steve Steve Yen
            traun Traun Leyden (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty