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: width not calculated: go.shape.struct { Next *"".Node[go.shape.uint64_0] }_0 #50993

Closed
mishapoiuytrewq opened this issue Feb 3, 2022 · 2 comments

Comments

@mishapoiuytrewq
Copy link

@mishapoiuytrewq mishapoiuytrewq commented Feb 3, 2022

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

$ go version
go version go1.18beta2 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="/home/misha/.cache/go-build"
GOENV="/home/misha/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/misha/.asdf/installs/golang/1.18beta2/packages/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/misha/.asdf/installs/golang/1.18beta2/packages"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/misha/.asdf/installs/golang/1.18beta2/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/misha/.asdf/installs/golang/1.18beta2/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18beta2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/misha/GolandProjects/test/go.mod"
GOWORK=""
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-build351429637=/tmp/go-build -gno-record-gcc-switches"

What did you do?

https://go.dev/play/p/dRgjhsNTE8H?v=gotip
run

$ go test . --race

What did you expect to see?

?       main    [no test files]

What did you see instead?

# main
./main.go:10:2: internal compiler error: width not calculated: go.shape.struct { Next *"".Node[go.shape.interface {}_0] }_0
@randall77
Copy link
Contributor

@randall77 randall77 commented Feb 3, 2022

Some type isn't sized correctly when running with checkptr.

go tool compile -d checkptr main.go

@randall77 randall77 self-assigned this Feb 3, 2022
@gopherbot
Copy link

@gopherbot gopherbot commented Feb 3, 2022

Change https://golang.org/cl/382874 mentions this issue: cmd/compile: ensure size is computed for shape types

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

No branches or pull requests

3 participants