Skip to content

queue-proxy nil pointer dereference #2642

Closed

Description

@mbrancato

What version of Knative?

1.8.0

Expected Behavior

No panic

Actual Behavior

2022/11/19 04:10:08 http: panic serving 10.32.40.190:37370: runtime error: invalid memory address or nil pointer dereference
goroutine 153447 [running]:
net/http.(*conn).serve.func1()
	net/http/server.go:1825 +0xbf
panic({0xf1c8c0, 0x1932df0})
	runtime/panic.go:844 +0x258
knative.dev/pkg/network/handlers.(*Drainer).resetTimer(0xc0001882a0)
	knative.dev/[email protected]/network/handlers/drain.go:199 +0x78
knative.dev/pkg/network/handlers.(*Drainer).ServeHTTP(0xc0001882a0, {0x1216e60, 0xc01a24bb20}, 0xc00f393500)
	knative.dev/[email protected]/network/handlers/drain.go:112 +0x139
golang.org/x/net/http2/h2c.h2cHandler.ServeHTTP({{0x120c4c0?, 0xc0001882a0?}, 0xc0000bb300?}, {0x1216e60, 0xc01a24bb20}, 0xc00f393500)
	golang.org/x/[email protected]/http2/h2c/h2c.go:113 +0x49f
net/http.serverHandler.ServeHTTP({0x12113c0?}, {0x1216e60, 0xc01a24bb20}, 0xc00f393500)
	net/http/server.go:2916 +0x43b
net/http.(*conn).serve(0xc00b391860, {0x1217fc8, 0xc0001167e0})
	net/http/server.go:1966 +0x5d7
created by net/http.(*Server).Serve
	net/http/server.go:3071 +0x4db

Steps to Reproduce the Problem

No really sure, I noticed this panic in my logs. Seems to happen during a pod startup.

Activity

  1. added
    kind/bug
    on Nov 19, 2022
  2. transferred this issue fromknative/servingon Nov 21, 2022
  3. dprotaso commented on Nov 21, 2022

    @dprotaso
    Member

    /triage accepted

  4. added
    triage/accepted
    on Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugtriage/accepted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions