-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
It seems "unexpected fault address 0x0 " happened when processing the /metrics
API
What do i do
I try to recover in the http middleware, but can not recover
Version
v1.20.5
Log
unexpected fault address 0x0
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x2249bab]
goroutine 15748 gp=0xc0015e1c00 m=19 mp=0xc001800008 [running]:
runtime.throw({0x2ea0b58?, 0x1?})
/usr/local/go/src/runtime/panic.go:1067 +0x48 fp=0xc004fa17b8 sp=0xc004fa1788 pc=0x479b48
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:931 +0x26c fp=0xc004fa1818 sp=0xc004fa17b8 pc=0x47bd8c
github.com/prometheus/client_golang/prometheus/promhttp.httpError({0x3518970, 0xc01c0560e0}, {0x2eb0a2e, 0x8})
/go/pkg/mod/github.com/prometheus/client_golang@v1.20.5/prometheus/promhttp/http.go:429 +0x6b fp=0xc004fa1858 sp=0xc004fa1818 pc=0x2249bab
github.com/prometheus/client_golang/prometheus/promhttp.HandlerForTransactional.func1({0x3518970, 0xc01c0560e0}, 0xc0173e57c0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.20.5/prometheus/promhttp/http.go:182 +0x707 fp=0xc004fa1a70 sp=0xc004fa1858 pc=0x2249287
net/http.HandlerFunc.ServeHTTP(0x0?, {0x3518970?, 0xc01c0560e0?}, 0x7f1fa4370fd8?)
/usr/local/go/src/net/http/server.go:2220 +0x29 fp=0xc004fa1a98 sp=0xc004fa1a70 pc=0x7402c9