-
Notifications
You must be signed in to change notification settings - Fork 492
Open
Labels
bugSomething isn't workingSomething isn't workingneeds-attentionAn issue or PR has been sitting around and needs attention.An issue or PR has been sitting around and needs attention.
Description
What's wrong?
Conflicting patterns detected when built with Go 1.23
$ grafana-agent --version
panic: pattern "GET /debug/pprof/" (registered at net/http/pprof/pprof.go:100) conflicts with pattern "/debug/pprof/delta_heap" (registered at github.com/grafana/pyroscope-go/[email protected]/http/pprof/pprof.go:24):
GET /debug/pprof/ matches fewer methods than /debug/pprof/delta_heap, but has a more general path pattern
Steps to reproduce
When runing the tests for Homebrew/homebrew-core#175310 the Grafana agent test failed with:
==> Testing grafana-agent
==> /opt/homebrew/Cellar/grafana-agent/0.41.1/bin/grafana-agent --version
panic: pattern "GET /debug/pprof/" (registered at net/http/pprof/pprof.go:100) conflicts with pattern "/debug/pprof/delta_heap" (registered at github.com/grafana/pyroscope-go/[email protected]/http/pprof/pprof.go:24):
GET /debug/pprof/ matches fewer methods than /debug/pprof/delta_heap, but has a more general path pattern
goroutine 1 [running]:
net/http.(*ServeMux).register(...)
net/http/server.go:2805
net/http.HandleFunc({0x14000074e70?, 0x10587ac8a?}, 0x107723ea0?)
net/http/server.go:2799 +0x9c
net/http/pprof.init.0()
net/http/pprof/pprof.go:100 +0x94
System information
All, irrelevant
Software version
Grafana Agent v0.41.1
Configuration
No response
Logs
No response
gizmoguy, Eijebong, wopfel, ivaylopivanov and alexey-gavrilov-flant
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds-attentionAn issue or PR has been sitting around and needs attention.An issue or PR has been sitting around and needs attention.