Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic in API server #968

Open
khrm opened this issue Feb 19, 2025 · 1 comment
Open

Panic in API server #968

khrm opened this issue Feb 19, 2025 · 1 comment
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@khrm
Copy link
Contributor

khrm commented Feb 19, 2025

Expected Behavior

There should be no panic during the operation.

Actual Behavior

tekton-results-api-84d786669d-rbbx9 api 2025/02/18 13:41:26 http2: panic serving 10.128.6.156:38960: runtime error: invalid memory address or nil pointer dereference
tekton-results-api-84d786669d-rbbx9 api goroutine 126188 [running]:
tekton-results-api-84d786669d-rbbx9 api net/http.(*http2serverConn).runHandler.func1()
tekton-results-api-84d786669d-rbbx9 api 	/usr/lib/golang/src/net/http/h2_bundle.go:6185 +0x145
tekton-results-api-84d786669d-rbbx9 api panic({0x2844640?, 0x4c4d920?})
tekton-results-api-84d786669d-rbbx9 api 	/usr/lib/golang/src/runtime/panic.go:770 +0x132
tekton-results-api-84d786669d-rbbx9 api github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.getBlobLogs(0xc000037600, {0x7f41d6410868, 0xc000761998}, {0xc000b5c34a, 0x17}, 0x0)
tekton-results-api-84d786669d-rbbx9 api 	/opt/app-root/src/pkg/api/server/v1alpha2/plugin/plugin_logs.go:327 +0x4f8
tekton-results-api-84d786669d-rbbx9 api github.com/tektoncd/results/pkg/api/server/v1alpha2.Handler.(*LogServer).LogMux.func1({0x34f33d8, 0xc000761998}, 0xc000cfe900)
tekton-results-api-84d786669d-rbbx9 api 	/opt/app-root/src/pkg/api/server/v1alpha2/plugin/plugin_logs.go:451 +0x3a3
tekton-results-api-84d786669d-rbbx9 api net/http.HandlerFunc.ServeHTTP(0xc00050e9c0?, {0x34f33d8?, 0xc000761998?}, 0xc00153ca20?)
tekton-results-api-84d786669d-rbbx9 api 	/usr/lib/golang/src/net/http/server.go:2171 +0x29
tekton-results-api-84d786669d-rbbx9 api net/http.(*ServeMux).ServeHTTP(0x0?, {0x34f33d8, 0xc000761998}, 0xc000cfe900)
tekton-results-api-84d786669d-rbbx9 api 	/usr/lib/golang/src/net/http/server.go:2688 +0x1ad
tekton-results-api-84d786669d-rbbx9 api main.main.grpcHandler.func25({0x34f33d8?, 0xc000761998?}, 0xc000cfe900?)
tekton-results-api-84d786669d-rbbx9 api 	/opt/app-root/src/cmd/api/main.go:338 +0xa5
tekton-results-api-84d786669d-rbbx9 api net/http.HandlerFunc.ServeHTTP(0xc000aa3470?, {0x34f33d8?, 0xc000761998?}, 0xc0016ba800?)
tekton-results-api-84d786669d-rbbx9 api 	/usr/lib/golang/src/net/http/server.go:2171 +0x29
tekton-results-api-84d786669d-rbbx9 api golang.org/x/net/http2/h2c.h2cHandler.ServeHTTP({{0x34d0ec0?, 0xc00073e780?}, 0xc000000b60?}, {0x34f33d8, 0xc000761998}, 0xc000cfe900)
tekton-results-api-84d786669d-rbbx9 api 	/opt/app-root/src/vendor/golang.org/x/net/http2/h2c/h2c.go:125 +0x697
tekton-results-api-84d786669d-rbbx9 api net/http.serverHandler.ServeHTTP({0x0?}, {0x34f33d8?, 0xc000761998?}, 0xc000b06510?)
tekton-results-api-84d786669d-rbbx9 api 	/usr/lib/golang/src/net/http/server.go:3142 +0x8e
tekton-results-api-84d786669d-rbbx9 api net/http.initALPNRequest.ServeHTTP({{0x3502268?, 0xc00004dda0?}, 0xc000c5aa88?, {0xc00075e1e0?}}, {0x34f33d8, 0xc000761998}, 0xc000cfe900)
tekton-results-api-84d786669d-rbbx9 api 	/usr/lib/golang/src/net/http/server.go:3750 +0x231
tekton-results-api-84d786669d-rbbx9 api net/http.(*http2serverConn).runHandler(0x44925d?, 0x0?, 0x0?, 0xc000b1ed50?)
tekton-results-api-84d786669d-rbbx9 api 	/usr/lib/golang/src/net/http/h2_bundle.go:6192 +0xbb
tekton-results-api-84d786669d-rbbx9 api created by net/http.(*http2serverConn).scheduleHandler in goroutine 126217
tekton-results-api-84d786669d-rbbx9 api 	/usr/lib/golang/src/net/http/h2_bundle.go:6127 +0x21d

Steps to Reproduce the Problem

  1. There's no easy way to recreate this, it happens in a long running server.
@khrm khrm added the kind/bug Categorizes issue or PR as related to a bug. label Feb 19, 2025
@khrm
Copy link
Contributor Author

khrm commented Feb 19, 2025

/assign @khrm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant