Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic happen #12

Closed
laplaceyang opened this issue Apr 16, 2021 · 3 comments
Closed

panic happen #12

laplaceyang opened this issue Apr 16, 2021 · 3 comments
Labels

Comments

@laplaceyang
Copy link

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)

@laplaceyang
Copy link
Author

version v1.1.0

@huandu
Copy link
Owner

huandu commented Apr 18, 2021

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.

@huandu
Copy link
Owner

huandu commented Jun 9, 2021

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.

@huandu huandu closed this as completed Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants