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

Prometheus 1.6 crashes #2635

Closed
fabxc opened this Issue Apr 18, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@fabxc
Copy link
Member

fabxc commented Apr 18, 2017

It seems like 1.6 reliably crashes after startup – I only saw this happen on a server that had no targets from the beginning.

Did not dig into the code but I suspect rand.Intn is being called with a 0 here.

@beorn7

panic: invalid argument to Intn

goroutine 242 [running]:
math/rand.(*Rand).Intn(0xc42007a090, 0x0, 0x0)
       	/usr/local/Cellar/go/1.8/libexec/src/math/rand/rand.go:141 +0xc7
math/rand.Intn(0x0, 0x343b5a0)
       	/usr/local/Cellar/go/1.8/libexec/src/math/rand/rand.go:276 +0x37
github.com/prometheus/prometheus/storage/local.(*MemorySeriesStorage).cycleThroughMemoryFingerprints.func1(0xc4202654a0, 0xc42036a000)
       	/Users/fabxc/repos/src/github.com/prometheus/prometheus/storage/local/storage.go:1348 +0x440
created by github.com/prometheus/prometheus/storage/local.(*MemorySeriesStorage).cycleThroughMemoryFingerprints
       	/Users/fabxc/repos/src/github.com/prometheus/prometheus/storage/local/storage.go:1377 +0x67
@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented Apr 18, 2017

Fix will be in 1.6.1.

@beorn7 beorn7 closed this Apr 18, 2017

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 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 23, 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.