Skip to content

Instantly share code, notes, and snippets.

@roycaihw
Created March 29, 2019 00:04
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 roycaihw/56eb78c23aff3c8dbdd66bbc5d2aaec3 to your computer and use it in GitHub Desktop.
Save roycaihw/56eb78c23aff3c8dbdd66bbc5d2aaec3 to your computer and use it in GitHub Desktop.
panicparse result from github.com/maruel/panicparse
$ pp /tmp/kube-apiserver.log.panic
E0328 16:10:10.806679 24517 runtime.go:68] Observed a panic: test panic
1: running [Created by handlers.finishRequest @ rest.go:194]
debug stack.go:24 Stack(0xc008b93ed0, #1, #2)
handlers rest.go:203 finishRequest.func1.1(Duration(#4))
panic.go:522 panic(interface{}(#1))
handlers rest.go:213 finishRequest.func1(#4, #3, 0xc00500a1e0, 0xc00500a180)
1: running [Created by filters.(*timeoutHandler).ServeHTTP @ timeout.go:97]
debug stack.go:24 Stack(#46, #1, #42)
filters timeout.go:105 (*timeoutHandler).ServeHTTP.func1.1(*timeoutHandler(#45))
panic.go:522 panic(interface{}(#1))
handlers rest.go:229 finishRequest(Duration(#15), resultFunc(#14), #52, 0x0)
handlers create.go:155 createHandler.func1(NamedCreater(#10), RequestScope(#40))
endpoints installer.go:1091 restfulCreateResource.func1(Creater(#41))
metrics metrics.go:272 InstrumentRouteFunc.func1(string(#41, len=824717647968))
go-restful container.go:277 (*Container).dispatch(*Container(#18), ResponseWriter(#53), *Request(#40))
go-restful container.go:199 (*Container).Dispatch(...)
server handler.go:146 director.ServeHTTP(ResponseWriter(#7), *Request(#18), #19, #53, #36, #40)
apiserver handler_proxy.go:108 (*proxyHandler).ServeHTTP(*proxyHandler(#16), ResponseWriter(#53), *Request(#40))
mux pathrecorder.go:248 (*pathHandler).ServeHTTP(*pathHandler(#51), ResponseWriter(#53), *Request(#40))
mux pathrecorder.go:234 (*PathRecorderMux).ServeHTTP(*PathRecorderMux(#25), ResponseWriter(#53), *Request(#40))
server handler.go:154 director.ServeHTTP(ResponseWriter(#8), *Request(#21), #25, #53, #36, #40)
filters authorization.go:64 WithAuthorization.func1(Handler(#53), Authorizer(#40))
http server.go:1995 HandlerFunc.ServeHTTP(ResponseWriter(#22), *Request(#36), #40)
filters maxinflight.go:160 WithMaxInFlightLimit.func1(Handler(#53), 824720560640)
http server.go:1995 HandlerFunc.ServeHTTP(ResponseWriter(#30), *Request(#36), #40)
filters impersonation.go:50 WithImpersonation.func1(Handler(#53), Authorizer(#40))
http server.go:1995 HandlerFunc.ServeHTTP(ResponseWriter(#23), *Request(#36), #40)
filters authentication.go:81 WithAuthentication.func1(Handler(#53), Request(#39))
http server.go:1995 HandlerFunc.ServeHTTP(ResponseWriter(#24), *Request(#36), #39)
filters cors.go:75 WithCORS.func1(Handler(#53), []string(#39 len=0 cap=0))
http server.go:1995 HandlerFunc.ServeHTTP(ResponseWriter(#26), *Request(#36), #39)
filters timeout.go:109 (*timeoutHandler).ServeHTTP.func1(#45, #27, #13, #36, #39)
1: running [Created by http2.(*serverConn).processHeaders @ server.go:1829]
debug stack.go:24 Stack(#44, #5, #6)
runtime runtime.go:66 logPanic(interface{}(#1))
runtime runtime.go:52 HandleCrash(<unknown>(#48), <unknown>(0x1))
panic.go:522 panic(interface{}(#1))
filters timeout.go:114 (*timeoutHandler).ServeHTTP(*timeoutHandler(#27), ResponseWriter(#11), *Request(#39))
filters waitgroup.go:47 WithWaitGroup.func1(Handler(#11), LongRunningRequestCheck(#38))
http server.go:1995 HandlerFunc.ServeHTTP(ResponseWriter(#31), *Request(#17), #38)
filters requestinfo.go:39 WithRequestInfo.func1(Handler(#11), RequestInfoResolver(#50))
http server.go:1995 HandlerFunc.ServeHTTP(ResponseWriter(#32), *Request(#17), #50)
filters wrap.go:46 withPanicRecovery.func1(Handler(#11), func(#50))
http server.go:1995 HandlerFunc.ServeHTTP(ResponseWriter(#28), *Request(#20), #50)
server handler.go:189 (*APIServerHandler).ServeHTTP(*APIServerHandler(#33), ResponseWriter(#9), *Request(#50))
http server.go:2774 serverHandler.ServeHTTP(ResponseWriter(#29), *Request(#20), #50)
http server.go:3323 initNPNRequest.ServeHTTP(ResponseWriter(#47), *Request(#9), #20, #50)
http2 server.go:2095 (*serverConn).runHandler(#49, #20, #50, #34)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment