GithubHelp home page GithubHelp logo

chunkreader's People

Contributors

furdarius avatar jackc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chunkreader's Issues

a panic due to slice out of range

panic: runtime error: slice bounds out of range [5:2]

goroutine 1 [running]:
github.com/jackc/chunkreader/v2.(*ChunkReader).Next(0xc0001de400, 0xfffffffffffffffd, 0xc000150000, 0x5, 0x2000, 0x0, 0x0)
	/go/pkg/mod/github.com/jackc/chunkreader/[email protected]/chunkreader.go:61 +0x452
github.com/jackc/pgproto3/v2.(*Frontend).Receive(0xc000555400, 0x5a, 0xc0004f3f00, 0x77, 0x77)
	/go/pkg/mod/github.com/jackc/pgproto3/[email protected]/frontend.go:82 +0x63
github.com/jackc/pgconn.(*PgConn).peekMessage(0xc00083a000, 0x0, 0x0, 0xfffffffe000ce400, 0x0)
	/go/pkg/mod/github.com/jackc/[email protected]/pgconn.go:463 +0x346
github.com/jackc/pgconn.(*PgConn).receiveMessage(0xc00083a000, 0xc0000ce400, 0x5a, 0x400, 0x5a)
	/go/pkg/mod/github.com/jackc/[email protected]/pgconn.go:485 +0x45
github.com/jackc/pgconn.connect(0x1b08c40, 0xc00004e060, 0xc0008460f0, 0xc000114ba0, 0x0, 0x0, 0x0)
	/go/pkg/mod/github.com/jackc/[email protected]/pgconn.go:268 +0x6ee
github.com/jackc/pgconn.ConnectConfig(0x1b08c40, 0xc00004e060, 0xc0008460f0, 0x0, 0x0, 0x0)
	/go/pkg/mod/github.com/jackc/[email protected]/pgconn.go:150 +0x2a5
github.com/jackc/pgx/v4.connect(0x1b08c40, 0xc00004e060, 0xc000846000, 0x0, 0x0, 0x406ffa)
	/go/pkg/mod/github.com/jackc/pgx/[email protected]/conn.go:222 +0x16b
github.com/jackc/pgx/v4.ConnectConfig(...)
	/go/pkg/mod/github.com/jackc/pgx/[email protected]/conn.go:113
....
Our redacted stuff 
....
main.main()
	/go/src/workdir/autogen/cmd/batch-jobs-api-v2-server/main.go:51 +0x4b4

It has happened in production during time when the db was not accessible due to maintenance restart, sorry that I do not have more details but this is slice out of bounds you could just check if the index is in length

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.