Skip to content

net/http: [signal SIGSEGV: segmentation violation code=0x1] invalid memory address or nil pointer dereference #62133

Closed as not planned
@linlexing

Description

@linlexing

What version of Go are you using (go version)?

$ go version
go version go1.20.6 linux/arm64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE="on"
GOARCH="arm64"
GOBIN=""
GOCACHE="/home/huawel/.cache/go-build"
GOENV="/home/huawel/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/huawel/gowork/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/huawel/gowork"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/home/huawel/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/huawel/go/pkg/tool/linux_arm64"
GOVCS=""
GOVERSION="go1.20.6"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
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 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1090095046=/tmp/go-build -gno-record-gcc-switches"

What did you do?

What did you expect to see?

What did you see instead?

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4f pc=0x46cc48]

goroutine 53571406 [running]:
internal/poll.runtime_pollSetDeadline(0x4f, 0x12a05f002, 0x77)
/home/huawel/go/src/runtime/netpoll.go:328 +0x28
internal/poll.setDeadlineImpl(0x403e945380, {0x470580?, 0x0?, 0x3c6dec0?}, 0x400484f988?)
/home/huawel/go/src/internal/poll/fd_poll_runtime.go:161 +0x1a8
internal/poll.(*FD).SetWriteDeadline(...)
/home/huawel/go/src/internal/poll/fd_poll_runtime.go:143
net.(*netFD).SetWriteDeadline(...)
/home/huawel/go/src/net/fd_posix.go:146
net.(*conn).SetWriteDeadline(0x405aeee678, {0x63d534?, 0x400484f988?, 0x3c6dec0?})
/home/huawel/go/src/net/net.go:261 +0x3c
crypto/tls.(*Conn).SetWriteDeadline(...)
/home/huawel/go/src/crypto/tls/conn.go:153
crypto/tls.(*Conn).closeNotify(0x4021a9d500)
/home/huawel/go/src/crypto/tls/conn.go:1400 +0x104
crypto/tls.(*Conn).Close(0x4021a9d500)
/home/huawel/go/src/crypto/tls/conn.go:1370 +0x8c
net/http.(*conn).close(0x4027d76360)
/home/huawel/go/src/net/http/server.go:1734 +0x34
net/http.(*conn).serve.func1()
/home/huawel/go/src/net/http/server.go:1865 +0x198
net/http.(*conn).serve(0x4027d76360, {0x245d140, 0x4001426420})
/home/huawel/go/src/net/http/server.go:2031 +0x654
created by net/http.(*Server).Serve
/home/huawel/go/src/net/http/server.go:3089 +0x4e8

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions