Skip to content

cmd/compile: internal compiler error: width not calculated: go.shape.struct { Next *"".Node[go.shape.uint64_0] }_0 #50993

Closed

Description

@fxeqxmulfx

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

Activity

  1. randall77 commented on Feb 3, 2022

    @randall77
    Contributor

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

    go tool compile -d checkptr main.go
    
  2. self-assigned this
    on Feb 3, 2022
  3. gopherbot commented on Feb 3, 2022

    @gopherbot
    Contributor

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

  4. locked and limited conversation to collaborators on Jun 22, 2023
  5. added a commit that references this issue on Apr 29, 2024
    1ab8273
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions