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

[volume] panic: runtime error: makeslice: len out of range #3882

Closed
kmlebedev opened this issue Oct 19, 2022 · 0 comments
Closed

[volume] panic: runtime error: makeslice: len out of range #3882

kmlebedev opened this issue Oct 19, 2022 · 0 comments

Comments

@kmlebedev
Copy link
Contributor

kmlebedev commented Oct 19, 2022

Describe the bug
panic on start

panic: runtime error: makeslice: len out of range

goroutine 1488 [running]:
github.com/seaweedfs/seaweedfs/weed/storage/needle.(*Needle).ReadNeedleMeta(0xc0001519b0, {0x2d0dfb0, 0xc0006cecc0}, 0xfdd920, 0x0, 0x3)
	/go/src/github.com/seaweedfs/seaweedfs/weed/storage/needle/needle_read_page.go:52 +0x159
github.com/seaweedfs/seaweedfs/weed/storage.(*Volume).readNeedleMetaAt(0xc0027f7180, 0xc0001518f8?, 0xfdd920, 0xfb269a?)
	/go/src/github.com/seaweedfs/seaweedfs/weed/storage/volume_read.go:87 +0xce
github.com/seaweedfs/seaweedfs/weed/storage.(*Store).ReadVolumeNeedleMetaAt(0x12?, 0x24ef200?, 0xc007ebebe0?, 0xc000151a78?, 0xb547e4?)
	/go/src/github.com/seaweedfs/seaweedfs/weed/storage/store.go:419 +0x47
github.com/seaweedfs/seaweedfs/weed/server.(*VolumeServer).ReadNeedleMeta(0xc0006d4b40, {0xc007ebebe0?, 0x535ac6?}, 0xc007ebebe0)
	/go/src/github.com/seaweedfs/seaweedfs/weed/server/volume_grpc_read_write.go:41 +0xde
github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb._VolumeServer_ReadNeedleMeta_Handler({0x2665420?, 0xc0006d4b40}, {0x2d02ee0, 0xc007ede8a0}, 0xc00077cbd0, 0x0)
	/go/src/github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb/volume_server_grpc.pb.go:1262 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000402780, {0x2d12640, 0xc006ff21a0}, 0xc007bfd9e0, 0xc0000a8e10, 0x3faa020, 0x0)
	/go/pkg/mod/google.golang.org/grpc@v1.50.0/server.go:1318 +0xb2b
google.golang.org/grpc.(*Server).handleStream(0xc000402780, {0x2d12640, 0xc006ff21a0}, 0xc007bfd9e0, 0x0)
	/go/pkg/mod/google.golang.org/grpc@v1.50.0/server.go:1659 +0xa2f
google.golang.org/grpc.(*Server).serveStreams.func1.2()
	/go/pkg/mod/google.golang.org/grpc@v1.50.0/server.go:955 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
	/go/pkg/mod/google.golang.org/grpc@v1.50.0/server.go:953 +0x28a

After run volume.fschk -verify #3879

is line
metaSlice := make([]byte, int(metaSize))

System Setup
3.32

kmlebedev added a commit to kmlebedev/seaweedfs that referenced this issue Oct 19, 2022
chrislusf added a commit that referenced this issue Oct 23, 2022
chrislusf pushed a commit that referenced this issue Oct 23, 2022
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

2 participants