Closed
Description
Issue description
goroutine startWatcher cause panic error
Example code
Since it happens in goroutine, there is no code to reproduce
0xee0f31 github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher.func1+0x131 /home/runner/go/pkg/mod/github.com/go-sql-driver/[email protected]/connection.go:620
Error log
panic: sync/atomic: store of nil value into Value
goroutine 1961295 [running]:
sync/atomic.(*Value).Store(0xc002e34ef0?, {0x0, 0x0})
/opt/hostedtoolcache/go/1.19.13/x64/src/sync/atomic/value.go:49 +0xf8
github.com/go-sql-driver/mysql.(*atomicError).Set(...)
/home/runner/go/pkg/mod/github.com/go-sql-driver/[email protected]/utils.go:831
github.com/go-sql-driver/mysql.(*mysqlConn).cancel(0xc0022a2b40?, {0x0?, 0x0?})
/home/runner/go/pkg/mod/github.com/go-sql-driver/[email protected]/connection.go:435 +0x3d
github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher.func1()
/home/runner/go/pkg/mod/github.com/go-sql-driver/[email protected]/connection.go:622 +0x16a
created by github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher
/home/runner/go/pkg/mod/github.com/go-sql-driver/[email protected]/connection.go:611 +0x10a
Configuration
Driver version (or git SHA):
v1.6.0
Go version: run go version
in your console
1.19.13
Server version: E.g. MySQL 5.6, MariaDB 10.0.20
MySQL 8.0.30
Server OS: E.g. Debian 8.1 (Jessie), Windows 10
alpine:3
Metadata
Metadata
Assignees
Labels
No labels