Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.0.0, 7.0.1, 7.0.2, 7.1.0
-
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
- is a backport of
-
MB-49518 Crash in memdb.Close if items_count=1 and concurrency=2
-
- Closed
-