Go version

go 1.23

Output of go env in your module/workspace:

go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE='*'
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.0'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD=
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2845012808=/tmp/go-build -gno-record-gcc-switches'

What did you do?

warded-Proto:[https]] 2024/09/06 15:43:20 Sending request to backend panic: id (106) <= evictCount (117)

goroutine 9201 [running]: vendor/golang.org/x/net/http2/hpack.(headerFieldTable).idToIndex(0xc0000bca00, 0xc00055dcb0?) /usr/local/go/src/vendor/golang.org/x/net/http2/hpack/tables.go:118 +0xbd vendor/golang.org/x/net/http2/hpack.(headerFieldTable).search(0xc0000bca00, {{0x148ff02, 0x6}, {0xc000112ea0, 0xc1}, 0x0}) /usr/local/go/src/vendor/golang.org/x/net/http2/hpack/tables.go:105 +0xe5 vendor/golang.org/x/net/http2/hpack.(Encoder).searchTable(0xc0000bca00, {{0x148ff02, 0x6}, {0xc000112ea0, 0xc1}, 0x0}) /usr/local/go/src/vendor/golang.org/x/net/http2/hpack/encode.go:97 +0x85 vendor/golang.org/x/net/http2/hpack.(Encoder).WriteField(0xc0000bca00, {{0x148ff02, 0x6}, {0xc000112ea0, 0xc1}, 0x0}) /usr/local/go/src/vendor/golang.org/x/net/http2/hpack/encode.go:62 +0x145 net/http.(http2ClientConn).writeHeader(0xc000956b60?, {0x148ff02?, 0x1454060?}, {0xc000112ea0?, 0xc000a63650?}) /usr/local/go/src/net/http/h2_bundle.go:9331 +0x148 net/http.(http2ClientConn).encodeHeaders.func3({0xc000956b60?, 0xc000a63650?}, {0xc000112ea0, 0xc1}) /usr/local/go/src/net/http/h2_bundle.go:9265 +0x71 net/http.(http2ClientConn).encodeHeaders.func1(0xc000933bb8) /usr/local/go/src/net/http/h2_bundle.go:9226 +0x627 net/http.(http2ClientConn).encodeHeaders(0xc0002eed80, 0xc0003a8500, 0x0, {0x0, 0x0}, 0x0) /usr/local/go/src/net/http/h2_bundle.go:9258 +0x58c net/http.(http2clientStream).encodeAndWriteHeaders(0xc00072e300, 0xc0003a8500) /usr/local/go/src/net/http/h2_bundle.go:8721 +0x2e9 net/http.(http2clientStream).writeRequest(0xc00072e300, 0xc0003a8500, 0x0) /usr/local/go/src/net/http/h2_bundle.go:8617 +0x535 net/http.(http2clientStream).doRequest(0xc00072e300, 0x1856ea0?, 0xc000867068?) /usr/local/go/src/net/http/h2_bundle.go:8551 +0x56 created by net/http.(http2ClientConn).roundTrip in goroutine 9199 /usr/local/go/src/net/http/h2_bundle.go:8456 +0x3d8

What did you see happen?

some crawler online crash it.

What did you expect to see?

at least an error msg but not crash

Comment From: gabyhelp

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Comment From: dmitshur

CC @neild, @tombergan.

Comment From: abikosik3000

this error trow If your grpc client makes calls using a non-Immutable context, or inherits from it (for example, using fiber.UserContext())

Comment From: xue1213888

this error trow If your grpc client makes calls using a non-Immutable context, or inherits from it (for example, using fiber.UserContext())

I'm making an HTTP GET request in my fiber route and using fiber's c.Context() . I'm getting a panic: id (16) <= evictCount (22) . I'm not sure if this is due to fiber's c.Context() . How did you conclude that using c.UserContext() would solve the problem? I'd like to understand the specific cause of this issue and where this usage might have any impact. Thanks