DataDog / datadog-agent

Main repository for Datadog Agent
https://docs.datadoghq.com/
Apache License 2.0
2.88k stars 1.21k forks source link

unknown panic #1681

Closed julianvmodesto closed 6 years ago

julianvmodesto commented 6 years ago

I'm not quite sure how to reproduce this, but I've observed this panic in the agent.

[ AGENT ] panic: runtime error: invalid memory address or nil pointer dereference
[ AGENT ] [signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x910564]
[ AGENT ]
[ AGENT ] goroutine 120 [running]:
[ AGENT ] github.com/DataDog/datadog-agent/pkg/util/docker.(*DockerUtil).dockerContainers(0xc4204520c0, 0xc42019da8e, 0x0, 0x0, 0x0, 0x0, 0x0)
[ AGENT ]       /go/src/github.com/DataDog/datadog-agent/.omnibus/src/datadog-agent/src/github.com/DataDog/datadog-agent/pkg/util/docker/docker_util.go:164 +0xb34
[ AGENT ] github.com/DataDog/datadog-agent/pkg/util/docker.(*DockerUtil).Containers(0xc4204520c0, 0xc42019da8e, 0x0, 0x0, 0x0, 0x2, 0x2)
[ AGENT ]       /go/src/github.com/DataDog/datadog-agent/.omnibus/src/datadog-agent/src/github.com/DataDog/datadog-agent/pkg/util/docker/docker_util.go:234 +0x11ed
[ AGENT ] github.com/DataDog/datadog-agent/pkg/collector/corechecks/containers.(*DockerCheck).Run(0xc4201505b0, 0x7ab2b3af1, 0x30b34e0)
[ AGENT ]       /go/src/github.com/DataDog/datadog-agent/.omnibus/src/datadog-agent/src/github.com/DataDog/datadog-agent/pkg/collector/corechecks/containers/docker.go:160 +0x246
[ AGENT ] github.com/DataDog/datadog-agent/pkg/collector/runner.(*Runner).work(0xc4219434a0)
[ AGENT ]       /go/src/github.com/DataDog/datadog-agent/.omnibus/src/datadog-agent/src/github.com/DataDog/datadog-agent/pkg/collector/runner/runner.go:255 +0x4a1
[ AGENT ] created by github.com/DataDog/datadog-agent/pkg/collector/runner.(*Runner).AddWorker
[ AGENT ]       /go/src/github.com/DataDog/datadog-agent/.omnibus/src/datadog-agent/src/github.com/DataDog/datadog-agent/pkg/collector/runner/runner.go:100 +0x8a
[ AGENT ] AGENT EXITED WITH CODE 2, SIGNAL 0, KILLING CONTAINER
[PROCESS] trace-agent exited with code 256, signal 15, restarting in 2 seconds

Agent version:

Agent 6.2.0-rc.1 - Commit: aecc560 - Serialization version: 4.7
CharlyF commented 6 years ago

Hey @julianvmodesto, sorry to see that. We have not received similar reports with such a stack trace as far as I know. Could you reach out to support@datadoghq.com ? It would be much more efficient to further investigate. We will post an update here as we make progress as well. Ideally, could you share the details on how you install the agent and the environment as well as the logs via a flare command ?

Thanks!