-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
@Asutorufa Output of
Description
Go version
go1.25.0 X:jsonv2,greenteagc darwin/amd64
Output of go env
in your module/workspace:
AR='ar' CC='gcc' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_ENABLED='1' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' CXX='g++' GCCGO='gccgo' GO111MODULE='' GOAMD64='v1' GOARCH='amd64' GOAUTH='netrc' GOBIN='' GOCACHE='/home/asutorufa/.cache/go-build' GOCACHEPROG='' GODEBUG='' GOENV='/home/asutorufa/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFIPS140='off' GOFLAGS='' GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2311514801=/tmp/go-build -gno-record-gcc-switches' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' GOMOD='/home/asutorufa/Documents/Programming/yuhaiin/go.mod' GOMODCACHE='/home/asutorufa/.local/storage/go/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='linux' GOPATH='/home/asutorufa/.local/storage/go' GOPRIVATE='' GOPROXY='https://proxy.golang.org,direct' GOROOT='/home/asutorufa/sdk/go1.25.0' GOSUMDB='sum.golang.org' GOTELEMETRY='local' GOTELEMETRYDIR='/home/asutorufa/.config/go/telemetry' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/home/asutorufa/sdk/go1.25.0/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.25.0' GOWORK='' PKG_CONFIG='pkg-config'
What did you do?
io.Copy
on tls.Conn
and net.Conn
What did you see happen?
panic: invalid return from write: got 33554436 from a write of 239 goroutine 278600 [running]: internal/poll.(*FD).Write(0xc00467d000, {0xc001577c00, 0xef, 0x700}) internal/poll/fd_unix.go:382 +0x534 net.(*netFD).Write(...) net/fd_posix.go:109 net.(*conn).Write(0xc000d7ad18, {0xc001577c00?, 0xc?, 0xc?}) net/net.go:208 +0x48 crypto/tls.(*Conn).write(...) crypto/tls/conn.go:955 crypto/tls.(*Conn).writeRecordLocked(0xc00139f508, 0x17, {0xc00133d000, 0xd9, 0x1000}) crypto/tls/conn.go:1036 +0x1507 crypto/tls.(*Conn).Write(0xd9?, {0xc00133d000, 0xd9, 0x1000}) crypto/tls/conn.go:1255 +0x37e
What did you expect to see?
Normally write or return error, instead of panic.