You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you please provide a runnable sample for debugging? I cannot find out any issue from this call stack. It may be a bug in this package; It can also be an issue from caller which provides an invalid element pointer.
As I cannot analyze this without a sample, I close this issue for lack of enough information. @laplaceyang feels free to reopen this issue if you can provide a sample.
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/huandu/skiplist.(*SkipList).RemoveElement(0xc000555ae0, 0xc01378a240)
/home/yangxujing/work/go/pkg/mod/github.com/huandu/skiplist@v1.1.0/skiplist.go:387 +0x33a
github.com/huandu/skiplist.(*SkipList).Remove(0xc000555ae0, 0xc15340, 0xc6b76a1d98, 0x18)
/home/yangxujing/work/go/pkg/mod/github.com/huandu/skiplist@v1.1.0/skiplist.go:325 +0x61
main.(*LRU).removeElement(0xc0003af6a0, 0xc723270960)
The text was updated successfully, but these errors were encountered: