database/sql.(*DB).conn: slice bounds out of range [:824640893215] with capacity 0 #41938
Labels
Comments
This could be memory corruption. Have you tried running your program under the race detector? See https://blog.golang.org/race-detector . |
Quick follow up @davecheney: I started the program with Might this be the rare case of a random bit flip? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
The problem occurs only sometimes, so reproducing is hard. The error happens on the latest released version.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
We're using
sql/database.DB.PingContext(...)
to check connectivity status to a postgres database in a handler, which is invoked in a goroutine. Sometimes the call crashes with an error that is beyond my understanding.What did you expect to see?
I want to either receive an error, or nil. Got panic instead.
What did you see instead?
The text was updated successfully, but these errors were encountered: