Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid memory address or nil pointer dereference with Docker plugin #1081

Closed
jwmarshall opened this issue Apr 22, 2016 · 2 comments
Closed

Comments

@jwmarshall
Copy link

This seems to have coincided with a container redeploy.

Ubuntu 14.04
Telegraf version: 0.12.1

2016/04/22 10:44:50 Error decoding: EOF
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x583e6c]

goroutine 175910 [running]:
panic(0x10241a0, 0xc8200100f0)
        /usr/local/go/src/runtime/panic.go:464 +0x3e6
github.com/influxdata/telegraf/plugins/inputs/docker.gatherContainerStats(0x0, 0x7f05a21db800, 0xc82037be00, 0xc8205
a2fc0)
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/docker/docker.go:238 +0x352c
github.com/influxdata/telegraf/plugins/inputs/docker.(*Docker).gatherContainer(0xc820184c80, 0xc820849f80, 0x40, 0xc
820849fc0, 0x1, 0x4, 0xc820609730, 0xc, 0xc820668690, 0x47, ...)
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/docker/docker.go:228 +0x963
github.com/influxdata/telegraf/plugins/inputs/docker.(*Docker).Gather.func1(0xc8206099c0, 0xc820184c80, 0x7f05a21db8
00, 0xc82037be00, 0xc820849f80, 0x40, 0xc820849fc0, 0x1, 0x4, 0xc820609730, ...)
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/docker/docker.go:112 +0x9e
created by github.com/influxdata/telegraf/plugins/inputs/docker.(*Docker).Gather
        /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/docker/docker.go:116 +0x58d
2016/04/22 10:44:58 Starting Telegraf (version 0.12.1)
2016/04/22 10:44:58 Loaded outputs: influxdb
2016/04/22 10:44:58 Loaded inputs: diskio mem net swap system cpu disk docker
@sparrc
Copy link
Contributor

sparrc commented Apr 22, 2016

thanks for the report @jwmarshall, this has been fixed already and will be available in the next release (see #1052)

@sparrc sparrc closed this as completed Apr 22, 2016
@jwmarshall
Copy link
Author

Thanks! Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants