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

Update bbolt version to go.etcd.io/bbolt #61

Open
zhaojizhuang opened this issue May 24, 2023 · 1 comment
Open

Update bbolt version to go.etcd.io/bbolt #61

zhaojizhuang opened this issue May 24, 2023 · 1 comment

Comments

@zhaojizhuang
Copy link
Contributor

zhaojizhuang commented May 24, 2023

panic when browse containerd 1.17.1‘s metadata

panic: runtime error: index out of range [18446744073709547520] with length 281474976710655

goroutine 1 [running]:
github.com/boltdb/bolt.(*DB).page(...)
	/data00/code/pkg/mod/github.com/boltdb/[email protected]/db.go:796
github.com/boltdb/bolt.Open({0x7ffd572e0544, 0x3a}, 0x48690?, 0xc00008de60)
	/data00/code/pkg/mod/github.com/boltdb/[email protected]/db.go:237 +0x545
main.main()
	/data00/code/pkg/mod/github.com/br0xen/[email protected]/main.go:117 +0x1bc
root@n37-006-180:~# boltbrowser /var/lib/containerd/io.containerd.metadata.v1.bolt/meta.db
panic: runtime error: index out of range [18446744073709547520] with length 281474976710655

goroutine 1 [running]:
github.com/boltdb/bolt.(*DB).page(...)
	/data00/code/pkg/mod/github.com/boltdb/[email protected]/db.go:796
github.com/boltdb/bolt.Open({0x7ffc1e7f2544, 0x3a}, 0x48690?, 0xc000059e60)
	/data00/code/pkg/mod/github.com/boltdb/[email protected]/db.go:237 +0x545
main.main()
	/data00/code/pkg/mod/github.com/br0xen/[email protected]/main.go:117 +0x1bc

Maybe we should update bolt version

Due to:

And etcd bbolt is a fork of Ben Johnson's Bolt key/value store. The purpose of this fork is to provide the Go community with an active maintenance and development target for Bolt; the goal is improved reliability and stability. bbolt includes bug fixes, performance enhancements, and features not found in Bolt while preserving backwards compatibility with the Bolt API.
see https://github.com/etcd-io/bbolt#bbolt

@zhaojizhuang
Copy link
Contributor Author

cc @br0xen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant