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 #1104

Closed
guoshimin opened this Issue Sep 22, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@guoshimin
Copy link

guoshimin commented Sep 22, 2015

Prometheus gave the following error after running for a few days:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x77e8e6]

goroutine 184 [running]:
github.com/prometheus/prometheus/retrieval/discovery.(*ConsulDiscovery).watchServices(0xc208451320, 0xc224c14120, 0xc22d0e90e0)
        /app/.build/root/gopath/src/github.com/prometheus/prometheus/retrieval/discovery/consul.go:200 +0x1f6
created by github.com/prometheus/prometheus/retrieval/discovery.(*ConsulDiscovery).Run
        /app/.build/root/gopath/src/github.com/prometheus/prometheus/retrieval/discovery/consul.go:151 +0xbe
@guoshimin

This comment has been minimized.

Copy link
Author

guoshimin commented Sep 22, 2015

The commit hash is 9a70ee7

@fabxc

This comment has been minimized.

Copy link
Member

fabxc commented Sep 22, 2015

Thanks, that was a pretty clear one unfortunately.
Really time to put some though in either proper integration tests or doing or putting effort into some relatively complex mocking...

@fabxc fabxc closed this in #1105 Sep 22, 2015

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.