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

Chunker buf range panic #525

Closed
duongnhat opened this issue Aug 31, 2023 · 2 comments
Closed

Chunker buf range panic #525

duongnhat opened this issue Aug 31, 2023 · 2 comments

Comments

@duongnhat
Copy link

panic: runtime error: index out of range [1] with length 0

goroutine 456468686 [running]:
encoding/binary.bigEndian.PutUint16(...)
/usr/local/go/src/encoding/binary/binary.go:144
github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/bolt.(*chunker).send(0xc000ef4870, {0xe817c0, 0xc00003c0e8}, {0xe7b5c0?, 0xc05e76fb50})
/home/linuxroot/go/pkg/mod/github.com/neo4j/neo4j-go-driver/[email protected]/neo4j/internal/bolt/chunker.go:72 +0x3a5
github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/bolt.(*outgoing).send(0xc000ef4870, {0xe817c0?, 0xc00003c0e8?}, {0xe7b5c0?, 0xc05e76fb50?})
/home/linuxroot/go/pkg/mod/github.com/neo4j/neo4j-go-driver/[email protected]/neo4j/internal/bolt/outgoing.go:260 +0x34
github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/bolt.(*messageQueue).send(...)
/home/linuxroot/go/pkg/mod/github.com/neo4j/neo4j-go-driver/[email protected]/neo4j/internal/bolt/message_queue.go:134
github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/bolt.(*bolt5).Close(0xc07fe26000, {0xe817c0, 0xc00003c0e8})
/home/linuxroot/go/pkg/mod/github.com/neo4j/neo4j-go-driver/[email protected]/neo4j/internal/bolt/bolt5.go:925 +0xd6
created by github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/pool.(*server).removeIdleOlderThan
/home/linuxroot/go/pkg/mod/github.com/neo4j/neo4j-go-driver/[email protected]/neo4j/internal/pool/server.go:187 +0x22a
FAIL go-pkg/database/neo4j/test 141.206s
FAIL

@StephenCathcart
Copy link
Contributor

Hi @duongnhat, I'm assuming this is v5.11.0? Can you share an example of the client-side code you were using that caused this error?

@robsdedude
Copy link
Member

I tried to track down how this unexpected state in the chunker could occur, but without luck.

To be able to locate the issue, more information would be necessary, as @StephenCathcart already wrote. Any combination of the following (preferably all of it) would help:

  • Minimal reproducer.
  • Driver debug logs (including bolt logs) so that we can see what the panicking connection did before things went wrong.

Since there as been no feedback on this issue for over 3 months, I'll close it for now. However, we're still interested in debugging this and happy to re-open it as soon as we have more information.

@robsdedude robsdedude closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2023
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

3 participants