Skip to content

Panic in RangeBackwards #174

@dobrac

Description

@dobrac

Hi, we are experiencing panic in RangeBackwards function. ttlcache version v3.3.1-0.202502071402, includes commit (e25850a) because of deadlocks.

Here is the relevant part of the stacktrace:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x714220]

goroutine 8 [running]:
container/list.(*Element).Prev(0xc00018c200?)
	/opt/hostedtoolcache/go/1.23.7/x64/src/container/list/list.go:40
github.com/jellydator/ttlcache/v3.(*Cache[...]).RangeBackwards(0x152d480, 0xc000026e48)
	/home/runner/go/pkg/mod/github.com/jellydator/ttlcache/v3@v3.3.1-0.202502071402[43](https://github.com/e2b-dev/infra/actions/runs/15070929902/job/42366869657#step:6:44)-aefc35918359/cache.go:582 +0xb4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions