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

cmd/compile: internal compiler error: bad type: chan struct { v [65536]byte } #49767

Open
burik666 opened this issue Nov 23, 2021 · 2 comments
Open
Assignees
Milestone

Comments

@burik666
Copy link

@burik666 burik666 commented Nov 23, 2021

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

$ go version
go version go1.17.2 linux/amd64

Does this issue reproduce with the latest release?

Yes

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

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.17.3"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/app/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2607095789=/tmp/go-build -gno-record-gcc-switches"

What did you do?

main.go

package main

func main() {
    ch := make(chan struct{ v [65536]byte })
    close(ch)
}

go build

What did you expect to see?

# t
./main.go:4:13: channel element type too large (>64kB)

What did you see instead?

# t
./main.go:4:12: internal compiler error: bad type: chan struct { v [65536]byte }
@heschi
Copy link
Contributor

@heschi heschi commented Nov 24, 2021

Loading

@heschi heschi added this to the Go1.18 milestone Nov 24, 2021
@griesemer
Copy link
Contributor

@griesemer griesemer commented Nov 29, 2021

See #49771 for the possible remedies.

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants