GoLLRB icon indicating copy to clipboard operation
GoLLRB copied to clipboard

Particular data sequence causes inconsistency & panic in llrb

Open peterwald opened this issue 10 years ago • 0 comments

I encountered a crash in a data processing app that makes use of GoLLRB.

panic: runtime error: invalid memory address or nil pointer dereference at llrb/llrb.go:423 (moveRedLeft)

I found a particular sequence of data that causes the tree to become inconsistent and crash. I've attached a simple test program that reproduces the error.

Download the code file llrbcrash.go and run with:

go get github.com/petar/GoLLRB
go run llrbcrash.go

peterwald avatar Jan 14 '15 18:01 peterwald