Skip to content

Instantly share code, notes, and snippets.

@gosharplite
Created November 16, 2016 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gosharplite/72b8cd60e9dfbacd0b607310c144ff51 to your computer and use it in GitHub Desktop.
Save gosharplite/72b8cd60e9dfbacd0b607310c144ff51 to your computer and use it in GitHub Desktop.
2016/11/15 18:25:19 mongos 10.128.112.181:7379 : connnections: 10
2016/11/15 18:25:19 mongos 10.128.112.181:7380 : connnections: 10
2016/11/16 11:16:44 mongos 10.128.112.181:7379 : connnections: 10
2016/11/16 11:16:44 mongos 10.128.112.181:7380 : connnections: 10
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4a9259]
goroutine 273 [running]:
panic(0xb0fd00, 0xc42000c0c0)
/home/tony/go/go/src/runtime/panic.go:500 +0x1a1
github.com/DroiTaipei/mongo.getWriteSess(0xf41300, 0xc420756ea0, 0xc4222e5b70)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:78 +0x69
github.com/DroiTaipei/mongo.getWriteSess(0xf41300, 0xc420756d00, 0xc4222e5bc8)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:83 +0xc0
github.com/DroiTaipei/mongo.getWriteSess(0xf41300, 0xc420756b60, 0xc4222e5c20)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:83 +0xc0
github.com/DroiTaipei/mongo.getWriteSess(0xf41300, 0xc4207569c0, 0xc4222e5c78)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:83 +0xc0
github.com/DroiTaipei/mongo.getWriteSess(0xf41300, 0xc420756820, 0xc4222e5cd0)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:83 +0xc0
github.com/DroiTaipei/mongo.getWriteSess(0xf41300, 0xc420756680, 0xc4222e5d28)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:83 +0xc0
github.com/DroiTaipei/mongo.getWriteSess(0xf41300, 0xc4207564e0, 0xc4222e5d80)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:83 +0xc0
github.com/DroiTaipei/mongo.getWriteSess(0xf41300, 0xc420756340, 0xc4222e5dd8)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:83 +0xc0
github.com/DroiTaipei/mongo.getWriteSess(0xf41300, 0xc4207561a0, 0xc4222e5e30)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:83 +0xc0
github.com/DroiTaipei/mongo.getWriteSess(0xf41300, 0xc420756000, 0xc4222e5e88)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:83 +0xc0
github.com/DroiTaipei/mongo.getWriteSess(0xc400000002, 0xc420180000, 0xc42040e680)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:83 +0xc0
github.com/DroiTaipei/mongo.Ping(0xc42008c580, 0x3, 0x4, 0x0, 0x0)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/access.go:24 +0x4a
github.com/DroiTaipei/mongo.CheckConnection()
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:334 +0x49
github.com/DroiTaipei/mongo.pinger()
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:327 +0x6d
created by github.com/DroiTaipei/mongo.Initialize
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:283 +0x15f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment