giantswarm/prometheus-pingdom-exporter

Panic in go-pingdom library

JosephSalisbury opened this issue · 0 comments

We just had a crash with:

Sep 28 13:35:55 0b04f612c4d4826f docker[3062]: panic: runtime error: invalid memory address or nil pointer dereference
Sep 28 13:35:55 0b04f612c4d4826f docker[3062]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x534be8]
Sep 28 13:35:55 0b04f612c4d4826f docker[3062]: goroutine 11 [running]:
Sep 28 13:35:55 0b04f612c4d4826f docker[3062]: panic(0x778b80, 0xc420012030)
Sep 28 13:35:55 0b04f612c4d4826f docker[3062]: /usr/local/go/src/runtime/panic.go:500 +0x1a1
Sep 28 13:35:55 0b04f612c4d4826f docker[3062]: github.com/russellcardullo/go-pingdom/pingdom.(*CheckService).List(0xc4200340a8, 0x0, 0x0, 0x0, 0x0, 0x0)
Sep 28 13:35:55 0b04f612c4d4826f docker[3062]: /usr/code/.gobuild/src/github.com/russellcardullo/go-pingdom/pingdom/check.go:32 +0x108
Sep 28 13:35:55 0b04f612c4d4826f docker[3062]: github.com/giantswarm/prometheus-pingdom-exporter/cmd.serverRun.func1(0xc42000a9c0)
Sep 28 13:35:55 0b04f612c4d4826f docker[3062]: /usr/code/.gobuild/src/github.com/giantswarm/prometheus-pingdom-exporter/cmd/server.go:76 +0x65
Sep 28 13:35:55 0b04f612c4d4826f docker[3062]: created by github.com/giantswarm/prometheus-pingdom-exporter/cmd.serverRun
Sep 28 13:35:55 0b04f612c4d4826f docker[3062]: /usr/code/.gobuild/src/github.com/giantswarm/prometheus-pingdom-exporter/cmd/server.go:133 +0xca