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

replica crash with runtime error: index out of range [3] with length 3 #107

Open
mixmasala opened this issue Mar 11, 2024 · 0 comments
Open

Comments

@mixmasala
Copy link
Contributor

Observed while testing talekfrontend with talekclient

2024-03-11 13:11:54.075169 I | http: panic serving 127.0.0.1:48240: runtime error: index out of range [3] with length 3
goroutine 51 [running]:
net/http.(*conn).serve.func1()
	/usr/local/go/src/net/http/server.go:1854 +0xbf
panic({0x809120, 0xc0000d8060})
	/usr/local/go/src/runtime/panic.go:890 +0x263
github.com/privacylab/talek/common.(*EncodedReadArgs).Decode(0xc00069d138, 0x3, 0xc0001160d0)
	/go/src/github.com/privacylab/talek/common/readargs.go:75 +0x205
github.com/privacylab/talek/server.(*Replica).BatchRead(0xc0000ca180, 0xc00007c730, 0xc000118090)
	/go/src/github.com/privacylab/talek/server/replica.go:107 +0x3ee
reflect.Value.call({0xc0000b43c0?, 0xc0000b24c0?, 0xc00069d840?}, {0x82a9fd, 0x4}, {0xc00069d988, 0x3, 0xc00069d870?})
	/usr/local/go/src/reflect/value.go:586 +0xb07
reflect.Value.Call({0xc0000b43c0?, 0xc0000b24c0?, 0xc00007c730?}, {0xc00069d988?, 0x4720c6?, 0x4?})
	/usr/local/go/src/reflect/value.go:370 +0xbc
github.com/gorilla/rpc.(*Server).ServeHTTP(0xc0000a2960, {0x8cdcf0, 0xc0006fc000}, 0xc0006ec000)
	/go/pkg/mod/github.com/gorilla/[email protected]/server.go:226 +0x693
net/http.serverHandler.ServeHTTP({0x8cc8d0?}, {0x8cdcf0, 0xc0006fc000}, 0xc0006ec000)
	/usr/local/go/src/net/http/server.go:2936 +0x316
net/http.(*conn).serve(0xc000624090, {0x8cdf78, 0xc0000002a0})
	/usr/local/go/src/net/http/server.go:1995 +0x612
created by net/http.(*Server).Serve
	/usr/local/go/src/net/http/server.go:3089 +0x5ed
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