Skip to content

Instantly share code, notes, and snippets.

@gosharplite
Created November 14, 2016 09:05
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/32abd105c77c29e7027656c048ae9632 to your computer and use it in GitHub Desktop.
Save gosharplite/32abd105c77c29e7027656c048ae9632 to your computer and use it in GitHub Desktop.
panic: send on closed channel
goroutine 32069 [running]:
panic(0xb0b600, 0xc45dccb750)
/home/tony/go/go/src/runtime/panic.go:500 +0x1a1
github.com/DroiTaipei/mongo.getReadSess(0x7f6f7bc80000, 0x0, 0xc41fdf0e12)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/mongo.go:85 +0xc1
github.com/DroiTaipei/mongo.QueryAll(0xc4323bf400, 0x3, 0x4, 0xc4264496c0, 0x3d, 0xaad1c0, 0xc423d58d60, 0xb12900, 0xc4241e3d40, 0xb1290
0, ...)
/home/tony/code/go_buster/vendor/src/github.com/DroiTaipei/mongo/access.go:258 +0x5b
api.GetGroupIDs(0xc4323bf400, 0x3, 0x4, 0xc4241e3ce0, 0x28, 0xc423d587c0, 0x18, 0xc420096880, 0x0, 0x0, ...)
/home/tony/code/go_buster/src/api/classes.go:952 +0x4d2
api.DocumentPreChecker(0xc429a75e00, 0x47c883, 0xb08060)
/home/tony/code/go_buster/src/api/classes.go:160 +0x6b7
api.DocumentFindHandler(0xc429a75e00, 0xc4241e3cb0, 0xbc3b6f, 0x5, 0xf3b6a0, 0x0, 0xc4278b3a90)
/home/tony/code/go_buster/src/api/classes.go:216 +0x2f
grpcapi.(*Server).DocumentRead(0xc4204cae20, 0xef3600, 0xc4241e3c50, 0xc423d583a0, 0x0, 0x119, 0x119)
/home/tony/code/go_buster/src/grpcapi/api.go:69 +0x392
grpcapi/protobuf/mongo._Mongo_DocumentRead_Handler(0xba3c40, 0xc4204cae20, 0xef3600, 0xc4241e3c50, 0xc429aa1090, 0x0, 0x0, 0x0, 0x8, 0xd
287b9ac8d625371)
/home/tony/code/go_buster/src/grpcapi/protobuf/mongo/mongo.pb.go:386 +0x27d
google.golang.org/grpc.(*Server).processUnaryRPC(0xc420292dc0, 0xef5c00, 0xc4200a2bd0, 0xc426367e00, 0xc42028f860, 0xf136e8, 0xc4241e3c2
0, 0x0, 0x0)
/home/tony/code/go_buster/vendor/src/google.golang.org/grpc/server.go:611 +0xc14
google.golang.org/grpc.(*Server).handleStream(0xc420292dc0, 0xef5c00, 0xc4200a2bd0, 0xc426367e00, 0xc4241e3c20)
/home/tony/code/go_buster/vendor/src/google.golang.org/grpc/server.go:769 +0x6b0
google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc4209268e0, 0xc420292dc0, 0xef5c00, 0xc4200a2bd0, 0xc426367e00)
/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