Skip to content

cmd/compile: "internal compiler error: NewBulk too big" while running a program with dlv #56120

Open
@sufiyan-techp

Description

@sufiyan-techp

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

$ go version
go version go1.19.2 darwin/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="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/sufiyan/Library/Caches/go-build"
GOENV="/Users/sufiyan/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS="-mod=vendor"
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/sufiyan/Workspace/Go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/sufiyan/Workspace/Go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.19.2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/sufiyan/Workspace/Go/src/github.com/cdktf-poc/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 -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/cm/lqydsrqj7b3cl_01bqz8048c0000gn/T/go-build1841126309=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

dlv debug main.go

Minimal program:
https://github.com/sufiyan-techp/cdktf-poc

dlv debug main.go

PS: go build/run work successfully.

What did you expect to see?

The program starts in debug mode successfully.

What did you see instead?

github.com/hashicorp/cdktf-provider-aws-go/aws/v9/ec2
<autogenerated>:1: internal compiler error: NewBulk too big: nbit=45718 count=439306 nword=1429 size=627768274

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
exit status 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions