Skip to content

Instantly share code, notes, and snippets.

@chantra
Created May 20, 2016 04:28
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 chantra/a1a69b4b3601f712712aa7b64b91b3ac to your computer and use it in GitHub Desktop.
Save chantra/a1a69b4b3601f712712aa7b64b91b3ac to your computer and use it in GitHub Desktop.
2016/05/19 19:08:52 panic: runtime error: invalid memory address or nil pointer dereference
goroutine 114 [running]:
runtime/debug.Stack(0x0, 0x0, 0x0)
/usr/lib/go-1.6/src/runtime/debug/stack.go:24 +0x80
runtime/debug.PrintStack()
/usr/lib/go-1.6/src/runtime/debug/stack.go:16 +0x18
github.com/facebook/augmented-traffic-control/src/api.ErrorHandler.func1.1(0x7f1ef08f3ed0, 0xc8203d8750)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/api/utils.go:89 +0xc5
panic(0x9df200, 0xc82000e150)
/usr/lib/go-1.6/src/runtime/panic.go:426 +0x4e9
github.com/facebook/augmented-traffic-control/src/atc_thrift.(*Shaping).writeField1(0x0, 0x7f1ef08f3c58, 0xc8200281e8, 0x0, 0x0)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/atc_thrift/ttypes.go:1067 +0x1b6
github.com/facebook/augmented-traffic-control/src/atc_thrift.(*Shaping).Write(0x0, 0x7f1ef08f3c58, 0xc8200281e8, 0x0, 0x0)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/atc_thrift/ttypes.go:1048 +0x1d7
github.com/facebook/augmented-traffic-control/src/atc_thrift.(*AtcdShapeGroupArgs).writeField2(0xc8203a1580, 0x7f1ef08f3c58, 0xc8200281e8, 0x0, 0x0)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/atc_thrift/atcd.go:3040 +0x1dd
github.com/facebook/augmented-traffic-control/src/atc_thrift.(*AtcdShapeGroupArgs).Write(0xc8203a1580, 0x7f1ef08f3c58, 0xc8200281e8, 0x0, 0x0)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/atc_thrift/atcd.go:3008 +0x237
github.com/facebook/augmented-traffic-control/src/atc_thrift.(*AtcdClient).sendShapeGroup(0xc8201fa4b0, 0x1, 0x0, 0xc8203dfea8, 0x6, 0x0, 0x0)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/atc_thrift/atcd.go:719 +0x1c2
github.com/facebook/augmented-traffic-control/src/atc_thrift.(*AtcdClient).ShapeGroup(0xc8201fa4b0, 0x1, 0x0, 0xc8203dfea8, 0x6, 0x0, 0x0, 0x0)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/atc_thrift/atcd.go:698 +0x64
github.com/facebook/augmented-traffic-control/src/api.createSimpleShaping(0x7f1ef08b6560, 0xc8203a1360, 0x7f1ef08f3ed0, 0xc8203d8750, 0xc820114380, 0x0, 0x0, 0x0, 0x0)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/api/api.go:340 +0x740
github.com/facebook/augmented-traffic-control/src/api.ShapeHandler(0x7f1ef08f3ed0, 0xc8203d8750, 0xc820114380, 0x0, 0x0, 0x0, 0x0)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/api/api.go:291 +0x2a6
github.com/facebook/augmented-traffic-control/src/api.JsonHandler.func1(0x7f1ef08f3ed0, 0xc8203d8750, 0xc820114380, 0x0, 0x0)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/api/utils.go:114 +0x60
github.com/facebook/augmented-traffic-control/src/api.ContextHandler.func1(0x7f1ef08f3ed0, 0xc8203d8750, 0xc820114380, 0x0, 0x0)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/api/utils.go:75 +0x294
github.com/facebook/augmented-traffic-control/src/api.ErrorHandler.func1(0x7f1ef08f3ed0, 0xc8203d8750, 0xc820114380)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/facebook/augmented-traffic-control/src/api/utils.go:94 +0x93
net/http.HandlerFunc.ServeHTTP(0xc82016e900, 0x7f1ef08f3ed0, 0xc8203d8750, 0xc820114380)
/usr/lib/go-1.6/src/net/http/server.go:1618 +0x3a
github.com/gorilla/mux.(*Router).ServeHTTP(0xc820130230, 0x7f1ef08f3ed0, 0xc8203d8750, 0xc820114380)
/home/chantra/augmented-traffic-control/.gopath/src/github.com/gorilla/mux/mux.go:107 +0x285
net/http.serverHandler.ServeHTTP(0xc82000a980, 0x7f1ef08f3ed0, 0xc8203d8750, 0xc820114380)
/usr/lib/go-1.6/src/net/http/server.go:2081 +0x19e
net/http.(*conn).serve(0xc820143480)
/usr/lib/go-1.6/src/net/http/server.go:1472 +0xf2e
created by net/http.(*Server).Serve
/usr/lib/go-1.6/src/net/http/server.go:2137 +0x44e
2016/05/19 19:10:54 Error: Invalid group
@zealws
Copy link

zealws commented May 20, 2016

😱

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment