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

[BP-7.0.4 MB-49518] - Crash in memdb.Close if items_count=1 and concurrency=2

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Yes

    Description

      If memdb has only 1 node and it is attempted to be closed with concurrency=2, then the following crash occurs:

       

      panic: runtime error: invalid memory address or nil pointer dereference [recovered]
      	panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xa4bcbd]goroutine 38 [running]:
      github.com/couchbase/indexing/secondary/memdb.(*Item).Bytes(...)
      	/home/akhilmd/projects/couchbase-neo/goproj/src/github.com/couchbase/indexing/secondary/memdb/item.go:116
      github.com/couchbase/indexing/secondary/memdb.(*MemDB).FreeNodesConcurrent(0xc000320780, 0x2, 0x0, 0x0)
      	/home/akhilmd/projects/couchbase-neo/goproj/src/github.com/couchbase/indexing/secondary/memdb/memdb.go:674 +0xa5d
      github.com/couchbase/indexing/secondary/memdb.(*MemDB).Close2(0xc000320780, 0x2)
      	/home/akhilmd/projects/couchbase-neo/goproj/src/github.com/couchbase/indexing/secondary/memdb/memdb.go:603 +0x4ae

      Attachments

        Issue Links

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

          Activity

            People

              akhil.mundroy Akhil Mundroy
              srinath.duvuru Srinath Duvuru
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty