panic: conn.AuthBackend
Denchick opened this issue · 0 comments
Denchick commented
LOG: 2022/11/17 10:58:28.788666 acquire new connection to sas-m9tf7zhglbs4y4vu.db.yandex.net:6432
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x9c0aee]
goroutine 62 [running]:
github.com/pg-sharding/spqr/pkg/conn.AuthBackend({0xdec1e8, 0xc0004281c0}, 0xc0002fd200, {0xde7988?, 0xc000400420?})
/spqr/pkg/conn/auth.go:22 +0x18e
github.com/pg-sharding/spqr/router/pkg/datashard.(*Conn).Auth(0xc00043c460, 0xc000412960?)
/spqr/router/pkg/datashard/datashard.go:161 +0x4c7
github.com/pg-sharding/spqr/router/pkg/datashard.NewShard({{0xc0003c2aa5?, 0xc0002fd500?}, 0xa5?}, {0xdec1e8?, 0xc0004281c0}, 0xc0003d4700, 0xc0002fd200)
/spqr/router/pkg/datashard/datashard.go:137 +0x313
github.com/pg-sharding/spqr/router/pkg/datashard.NewConnPool.func1({{0xc0003c2aa5?, 0xc0000d68f0?}, 0x60?}, {0xc00003c660, 0x27}, 0x569740?)
/spqr/router/pkg/datashard/conn_pool.go:281 +0x18b
github.com/pg-sharding/spqr/router/pkg/datashard.(*cPool).Connection(0xc000426030, {{0xc0003c2aa5?, 0xc0003c2aa5?}, 0x7?}, {0xc00003c660, 0x27}, 0x503324?)
/spqr/router/pkg/datashard/conn_pool.go:84 +0x214
github.com/pg-sharding/spqr/router/pkg/datashard.(*InstancePoolImpl).Connection(0xc0003d4900, {{0xc0003c2aa5?, 0xc0003c2070?}, 0x9?}, 0x10?)
/spqr/router/pkg/datashard/conn_pool.go:211 +0x209
github.com/pg-sharding/spqr/router/pkg/route.(*Route).Params(0xc00012a000)
/spqr/router/pkg/route/route.go:81 +0x153
github.com/pg-sharding/spqr/router/pkg/client.(*PsqlClient).Auth(0xc0001a6090, 0xc0003c2018?)
/spqr/router/pkg/client/client.go:513 +0x2ea
github.com/pg-sharding/spqr/router/pkg/rulerouter.(*RuleRouterImpl).PreRoute(0xc000428000, {0xdec3f8?, 0xc000010008})
/spqr/router/pkg/rulerouter/rulerouter.go:175 +0x42c
github.com/pg-sharding/spqr/router/pkg.(*InstanceImpl).serv(0xc000410320, {0xdec3f8, 0xc000010008})
/spqr/router/pkg/instance.go:117 +0x3d
github.com/pg-sharding/spqr/router/pkg.(*InstanceImpl).Run.func3()
/spqr/router/pkg/instance.go:163 +0x29
created by github.com/pg-sharding/spqr/router/pkg.(*InstanceImpl).Run
/spqr/router/pkg/instance.go:162 +0x32a