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

运行报错 #44

Closed
mark988 opened this issue Sep 7, 2019 · 0 comments
Closed

运行报错 #44

mark988 opened this issue Sep 7, 2019 · 0 comments

Comments

@mark988
Copy link

mark988 commented Sep 7, 2019

[root@iZuf6franciex4vdls96ygZ App]# ./Server
parse mysql config once. filePath: /data/go-project/TopList/Config/mysql.toml
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x759b9d]

goroutine 1 [running]:
sync.(*Mutex).Lock(...)
/data/go/src/sync/mutex.go:74
database/sql.(*DB).SetMaxOpenConns(0x0, 0x7d0)
/data/go/src/database/sql/sql.go:899 +0x2d
_/data/go-project/TopList/Common.init.0()
/data/go-project/TopList/Common/Db.go:41 +0xe0

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

2 participants