You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This looks like a continuation of #164
To Reproduce
This may still need to be entirely fixed. I can reproduce this about once every 50-100 runs or so. Using https://github.com/sean-/bench-go-histograms as the reproducer:
$ go test -test.bench=PromDuration -benchmem -count 200
goos: darwin
goarch: arm64
pkg: github.com/sean-/bench-go-histograms
Benchmark_PromDuration-10 5184980 229.5 ns/op 0 B/op 0 allocs/op
Benchmark_PromDuration-10 5846218 217.5 ns/op 0 B/op 0 allocs/op
[snip]
Benchmark_PromDuration-10 5678696 234.6 ns/op 0 B/op 0 allocs/op
Benchmark_PromDuration-10 5885458 226.5 ns/op 0 B/op 0 allocs/op
Benchmark_PromDuration-10 5580679 225.2 ns/op 0 B/op 0 allocs/op
Benchmark_PromDuration-10 panic: runtime error: index out of range [-1]
goroutine 635 [running]:
math/rand.(*rngSource).Uint64(...)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/math/rand/rng.go:249
math/rand.(*rngSource).Int63(0x9?)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/math/rand/rng.go:234 +0x8c
math/rand.(*Rand).Int63(...)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/math/rand/rand.go:96
math/rand.(*Rand).Int63n(0x140000a8c30, 0x2540be400)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/math/rand/rand.go:128 +0x68
math/rand.(*Rand).Intn(0xb?, 0x14000130000?)
/opt/homebrew/Cellar/go/1.22.0/libexec/src/math/rand/rand.go:185 +0x44
github.com/jaswdr/faker/v2.Faker.IntBetween({{0x102946538?, 0x140000a8c30?}}, 0x1?, 0x2540be400?)
/Users/seanc/go/pkg/mod/github.com/jaswdr/faker/[email protected]/faker.go:182 +0xb0
github.com/sean-/bench-go-histograms.randDuration(...)
/Users/seanc/go/src/github.com/sean-/bench-go-histograms/bench_test.go:22
github.com/sean-/bench-go-histograms.Benchmark_PromDuration.func1(0x1400007e000)
/Users/seanc/go/src/github.com/sean-/bench-go-histograms/bench_test.go:151 +0x64
testing.(*B).RunParallel.func1()
/opt/homebrew/Cellar/go/1.22.0/libexec/src/testing/benchmark.go:797 +0xbc
created by testing.(*B).RunParallel in goroutine 610
/opt/homebrew/Cellar/go/1.22.0/libexec/src/testing/benchmark.go:790 +0x104
exit status 2
FAIL github.com/sean-/bench-go-histograms 15.354s
JFYI. The rate of this happening is now quite small, but it's not zero, either. I don't know if you want to open a new issue, or
The text was updated successfully, but these errors were encountered:
Describe the bug
This looks like a continuation of #164
To Reproduce
This may still need to be entirely fixed. I can reproduce this about once every 50-100 runs or so. Using https://github.com/sean-/bench-go-histograms as the reproducer:
JFYI. The rate of this happening is now quite small, but it's not zero, either. I don't know if you want to open a new issue, or
The text was updated successfully, but these errors were encountered: