Skip to content

net/http: net/http.(*http2pipe).Write: invalid memory address or nil pointer dereference #13932

Closed
@karmeye

Description

@karmeye

Using latest code in the master branch (771da53)

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x30 pc=0x48d65b]

goroutine 48 [running]:
net/http.(*http2pipe).Write(0xc82a437d60, 0xc8201540a0, 0x98, 0x98, 0x0, 0x0, 0x0)
    /usr/local/go/src/net/http/h2_bundle.go:2170 +0x1bb
net/http.(*http2clientConnReadLoop).processData(0xc8203e23c0, 0xc8207c9590, 0x0, 0x0)
    /usr/local/go/src/net/http/h2_bundle.go:5359 +0x1a1
net/http.(*http2clientConnReadLoop).run(0xc8203e23c0, 0x0, 0x0)
    /usr/local/go/src/net/http/h2_bundle.go:5129 +0x4a4
net/http.(*http2ClientConn).readLoop(0xc8203929a0)
    /usr/local/go/src/net/http/h2_bundle.go:5072 +0x162
created by net/http.(*http2Transport).NewClientConn
    /usr/local/go/src/net/http/h2_bundle.go:4601 +0xd7d

Possibly this occurred just after numerous errors returned by http.NewRequest or client.Do:

Post https://172.31.29.132:8001/hello: connection error: COMPRESSION_ERROR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions