grafana / pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
https://grafana.com/oss/pyroscope/
GNU Affero General Public License v3.0
9.69k stars 578 forks source link

Panic: Index out of range on the write path #3242

Closed aleks-p closed 2 months ago

aleks-p commented 2 months ago
connectrpc.com/connect.NewUnaryHandler[...].func1({0x2ef8980, 0xc003932000})
    github.com/grafana/pyroscope/pkg/distributor/distributor.go:221 +0x24a
github.com/grafana/pyroscope/pkg/distributor.(*Distributor).Push(0xc000f0e000, {0x2eeacf8, 0xc014812f60}, 0xc003932000)
    github.com/grafana/pyroscope/pkg/distributor/distributor.go:355 +0x877
github.com/grafana/pyroscope/pkg/distributor.(*Distributor).PushParsed(0xc000f0e000, {0x2eeacf8, 0xc014812f60}, 0xc008f350b0)
    github.com/grafana/pyroscope/pkg/distributor/distributor.go:395 +0x12e
github.com/grafana/pyroscope/pkg/distributor.(*Distributor).sendRequests(0xc000f0e000, {0x2eeacf8?, 0xc014812f60}, 0xc0056850b0, {0xc00d99e570, 0x5})
    github.com/grafana/pyroscope/pkg/distributor/distributor.go:647 +0x5f9
github.com/grafana/pyroscope/pkg/distributor.extractSampleSeries(0xc0056850b0)
    github.com/grafana/pyroscope/pkg/distributor/distributor.go:723 +0xcc
github.com/grafana/pyroscope/pkg/distributor.exportSamples(0xc018073680?, {0xc00576a000, 0x72, 0x24553f8?})
    github.com/grafana/pyroscope/pkg/pprof/pprof.go:852 +0x12d2
github.com/grafana/pyroscope/pkg/pprof.(*SampleExporter).ExportSamples(0xc0056842b8, 0xc0180737a0, {0xc00585e000, 0x72, 0x72})
    github.com/grafana/pyroscope/pkg/pprof/pprof.go:791
github.com/grafana/pyroscope/pkg/pprof.(*lookupTable).lookup(...)
    runtime/panic.go:914 +0x21f
panic({0x224a560?, 0xc00fd46780?})
    github.com/opentracing-contrib/go-stdlib@v1.0.0/nethttp/server.go:150 +0x11e
github.com/opentracing-contrib/go-stdlib/nethttp.MiddlewareFunc.func5.1()
    runtime/panic.go:914 +0x21f
panic({0x224a560?, 0xc00fd46780?})
    golang.org/x/net@v0.24.0/http2/server.go:2362 +0x13b