Skip to content

Instantly share code, notes, and snippets.

@gosharplite
Created November 16, 2016 08:43
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/7ac2f3def72f9a81c5d7019d71881da8 to your computer and use it in GitHub Desktop.
Save gosharplite/7ac2f3def72f9a81c5d7019d71881da8 to your computer and use it in GitHub Desktop.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4a98c9]
goroutine 11174 [running]:
panic(0xb10d00, 0xc42000c0c0)
/home/tony/go/go/src/runtime/panic.go:500 +0x1a1
github.com/DroiTaipei/mongo.getReadSess(0x7fd2ed085e10, 0x0, 0xc41fb81026, 0x0, 0xc42ad83850)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:99 +0x69
github.com/DroiTaipei/mongo.QueryAll(0xc4276a6a00, 0x3, 0x4, 0xc42ac42bc0, 0x3d, 0xab2360, 0xc4276a9b40, 0xb18180, 0xc428fdfad0, 0xb18180, ...)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/access.go:300 +0x5b
api.GetGroupIDs(0xc4276a6a00, 0x3, 0x4, 0xc428fdfa70, 0x28, 0xc4276a9ae0, 0x18, 0xc4203b6000, 0x0, 0x0, ...)
/home/tony/code/go_buster/src/api/classes.go:952 +0x4d2
api.DocumentPreChecker(0xc42ac78180, 0x7b0000000047c8f3, 0x3)
/home/tony/code/go_buster/src/api/classes.go:160 +0x6b7
api.DocumentFindHandler(0xc42ac78180, 0x4, 0xbc8b10, 0x4, 0xc428f73c01, 0x0, 0xc42ac73a90)
/home/tony/code/go_buster/src/api/classes.go:216 +0x2f
grpcapi.(*Server).DocumentRead(0xc420352000, 0xefb620, 0xc428fdf9e0, 0xc4276a9ac0, 0x0, 0x100, 0x100)
/home/tony/code/go_buster/src/grpcapi/api.go:69 +0x392
grpcapi/protobuf/mongo._Mongo_DocumentRead_Handler(0xba9520, 0xc420352000, 0xefb620, 0xc428fdf9e0, 0xc427689540, 0x0, 0x0, 0x0, 0x8, 0x40c0c1db627bbf17)
/home/tony/code/go_buster/src/grpcapi/protobuf/mongo/mongo.pb.go:386 +0x27d
google.golang.org/grpc.(*Server).processUnaryRPC(0xc420284000, 0xefdc20, 0xc42053c090, 0xc4265c9e00, 0xc42043e2a0, 0xf1b708, 0xc428fdf9b0, 0x0, 0x0)
/home/tony/code/go_buster/vendor/src/google.golang.org/grpc/server.go:611 +0xc14
google.golang.org/grpc.(*Server).handleStream(0xc420284000, 0xefdc20, 0xc42053c090, 0xc4265c9e00, 0xc428fdf9b0)
/home/tony/code/go_buster/vendor/src/google.golang.org/grpc/server.go:769 +0x6b0
google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc42049ee00, 0xc420284000, 0xefdc20, 0xc42053c090, 0xc4265c9e00)
/home/tony/code/go_buster/vendor/src/google.golang.org/grpc/server.go:422 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
/home/tony/code/go_buster/vendor/src/google.golang.org/grpc/server.go:423 +0xa3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment