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

runtime: hello world build failure on windows/amd64 with go1.21.0 #61980

Closed
jay4195 opened this issue Aug 12, 2023 · 29 comments
Closed

runtime: hello world build failure on windows/amd64 with go1.21.0 #61980

jay4195 opened this issue Aug 12, 2023 · 29 comments
Assignees
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Windows
Milestone

Comments

@jay4195
Copy link

jay4195 commented Aug 12, 2023

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

$ go version
go version go1.21.0 windows/amd64

Does this issue reproduce with the latest release?

yes. In maybe 5 times of go build produce one build crash on go 1.21.0.

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

go env Output
$ go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=D:\path\go-build
set GOENV=C:\Users\Wangzhiyuan\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=D:\path\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\path\go
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,direct
set GOROOT=D:\env\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=D:\env\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.21.0
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\WANGZH~1.CIC\AppData\Local\Temp\go-build1340311173=/tmp/go-build -gno-record-gcc-switches

What did you do?

Compile:

package main

import "fmt"

func main() {
	fmt.Print("hello world")
}

What did you expect to see?

hello world

What did you see instead?

GOROOT=D:\env\Go #gosetup
GOPATH=D:\path\go #gosetup
D:\env\Go\bin\go.exe build -o C:\Users\Wangzhiyuan\AppData\Local\JetBrains\GoLand2023.2\tmp\GoLand\___go_build_hello_go.exe -gcflags "all=-N -l" D:\code\go\hello\hello.go #gosetup
Exception 0xc0000005 0x0 0x222e4643781 0x7ffc2d571b90
PC=0x7ffc2d571b90

runtime.cgocall(0x7e00e0, 0xc0004802c8)
	runtime/cgocall.go:157 +0x3e fp=0xc0004b06e0 sp=0xc0004b06a8 pc=0x77823e
syscall.SyscallN(0x7f0a0a?, {0xc0004b0778?, 0xc000114400?, 0xbe8?})
	runtime/syscall_windows.go:544 +0x107 fp=0xc0004b0758 sp=0xc0004b06e0 pc=0x7db687
syscall.Syscall12(0x0?, 0x0?, 0x0?, 0xc0004b0850?, 0x7c06c9?, 0x126a260?, 0xc0004b0880?, 0xc0002c8000?, 0xc0004b08a0?, 0x0, ...)
	runtime/syscall_windows.go:500 +0xa9 fp=0xc0004b07e8 sp=0xc0004b0758 pc=0x7db569
syscall.CreateProcess(0x49?, 0xc0004b0928?, 0x7804c9?, 0x20100000000?, 0x1, 0x80400, 0x2?, 0xc00003aa00?, 0x100255554aaaa?, 0xc0004b0970)
	syscall/zsyscall_windows.go:545 +0x10c fp=0xc0004b08b0 sp=0xc0004b07e8 pc=0x7f73ac
syscall.StartProcess({0xc00014c210?, 0xd4fb635c00000400?}, {0xc00038c0a0, 0x2, 0x2}, 0xc00017c1f8?)
	syscall/exec_windows.go:418 +0xbcf fp=0xc0004b0b10 sp=0xc0004b08b0 pc=0x7f1acf
os.startProcess({0xc00014c210, 0x28}, {0xc00038c0a0, 0x2, 0x2}, 0xc0004b0d50)
	os/exec_posix.go:54 +0x2df fp=0xc0004b0bf0 sp=0xc0004b0b10 pc=0x8618ff
os.StartProcess({0xc00014c210, 0x28}, {0xc00038c0a0, 0x2, 0x2}, 0x78029e?)
	os/exec.go:111 +0x54 fp=0xc0004b0c38 sp=0xc0004b0bf0 pc=0x8613b4
os/exec.(*Cmd).Start(0xc0004171e0)
	os/exec/exec.go:693 +0x625 fp=0xc0004b0db0 sp=0xc0004b0c38 pc=0x89a7c5
os/exec.(*Cmd).Run(0xc00014c210?)
	os/exec/exec.go:587 +0x18 fp=0xc0004b0dd0 sp=0xc0004b0db0 pc=0x899f18
cmd/go/internal/work.(*Builder).toolID(0xc0000a04d0, {0xdf4efe, 0x3})
	cmd/go/internal/work/buildid.go:167 +0x350 fp=0xc0004b0ee8 sp=0xc0004b0dd0 pc=0xc5f2b0
cmd/go/internal/work.(*Builder).buildActionID(0xc0000a04d0, 0xc0001494a0)
	cmd/go/internal/work/exec.go:331 +0xef4 fp=0xc0004b1270 sp=0xc0004b0ee8 pc=0xc65534
cmd/go/internal/work.(*Builder).build(0xc0000a04d0, {0xc00014c1a4?, 0x0?}, 0xc0001494a0)
	cmd/go/internal/work/exec.go:465 +0x195 fp=0xc0004b1d40 sp=0xc0004b1270 pc=0xc667d5
cmd/go/internal/work.ActorFunc.Act(0xf08230?, 0x12d3e40?, {0xf08230?, 0x12d3e40?}, 0x73736f726361206d?)
	cmd/go/internal/work/action.go:78 +0x2d fp=0xc0004b1d70 sp=0xc0004b1d40 pc=0xc55b2d
cmd/go/internal/work.(*Builder).Do.func3({0xf08230, 0x12d3e40}, 0xc0001494a0)
	cmd/go/internal/work/exec.go:151 +0x7e4 fp=0xc0004b1f20 sp=0xc0004b1d70 pc=0xc64324
cmd/go/internal/work.(*Builder).Do.func4()
	cmd/go/internal/work/exec.go:219 +0xa8 fp=0xc0004b1fe0 sp=0xc0004b1f20 pc=0xc63968
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc0004b1fe8 sp=0xc0004b1fe0 pc=0x7de901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
	cmd/go/internal/work/exec.go:205 +0x405

goroutine 1 [semacquire]:
runtime.gopark(0x20?, 0xd90320?, 0x20?, 0xc7?, 0x222e3950740?)
	runtime/proc.go:398 +0xce fp=0xc0005b79b8 sp=0xc0005b7998 pc=0x7ae60e
runtime.goparkunlock(...)
	runtime/proc.go:404
runtime.semacquire1(0xc000184288, 0x30?, 0x1, 0x0, 0xcb?)
	runtime/sema.go:160 +0x229 fp=0xc0005b7a20 sp=0xc0005b79b8 pc=0x7be969
sync.runtime_Semacquire(0xc0000e0420?)
	runtime/sema.go:62 +0x25 fp=0xc0005b7a58 sp=0xc0005b7a20 pc=0x7d9e05
sync.(*WaitGroup).Wait(0x0?)
	sync/waitgroup.go:116 +0x48 fp=0xc0005b7a80 sp=0xc0005b7a58 pc=0x7ed9c8
cmd/go/internal/work.(*Builder).Do(0xc0000a04d0, {0xf08230, 0x12d3e40}, 0xc000148dc0)
	cmd/go/internal/work/exec.go:228 +0x4b5 fp=0xc0005b7ba0 sp=0xc0005b7a80 pc=0xc63715
cmd/go/internal/work.runBuild({0xf08230, 0x12d3e40}, 0xc000021bd8?, {0xc00007e060, 0x1, 0x2})
	cmd/go/internal/work/build.go:544 +0x7e5 fp=0xc0005b7d00 sp=0xc0005b7ba0 pc=0xc5cb65
main.invoke(0x1273e00, {0xc00007e010, 0x6, 0x7})
	cmd/go/main.go:268 +0x5f1 fp=0xc0005b7e30 sp=0xc0005b7d00 pc=0xcf5011
main.main()
	cmd/go/main.go:186 +0x785 fp=0xc0005b7f40 sp=0xc0005b7e30 pc=0xcf4745
runtime.main()
	runtime/proc.go:267 +0x2b2 fp=0xc0005b7fe0 sp=0xc0005b7f40 pc=0x7ae1f2
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc0005b7fe8 sp=0xc0005b7fe0 pc=0x7de901

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc000055fa8 sp=0xc000055f88 pc=0x7ae60e
runtime.goparkunlock(...)
	runtime/proc.go:404
runtime.forcegchelper()
	runtime/proc.go:322 +0xb8 fp=0xc000055fe0 sp=0xc000055fa8 pc=0x7ae498
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000055fe8 sp=0xc000055fe0 pc=0x7de901
created by runtime.init.6 in goroutine 1
	runtime/proc.go:310 +0x1a

goroutine 3 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc000057f78 sp=0xc000057f58 pc=0x7ae60e
runtime.goparkunlock(...)
	runtime/proc.go:404
runtime.bgsweep(0x0?)
	runtime/mgcsweep.go:321 +0xdf fp=0xc000057fc8 sp=0xc000057f78 pc=0x798bff
runtime.gcenable.func1()
	runtime/mgc.go:200 +0x25 fp=0xc000057fe0 sp=0xc000057fc8 pc=0x78dd05
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000057fe8 sp=0xc000057fe0 pc=0x7de901
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:200 +0x66

goroutine 4 [sleep]:
runtime.gopark(0xc00006c000?, 0x4107ed1b7674?, 0x0?, 0x0?, 0xe62430?)
	runtime/proc.go:398 +0xce fp=0xc000067f30 sp=0xc000067f10 pc=0x7ae60e
runtime.goparkunlock(...)
	runtime/proc.go:404
runtime.(*scavengerState).sleep(0x127ec40, 0x4113880000000000)
	runtime/mgcscavenge.go:504 +0x118 fp=0xc000067fa0 sp=0xc000067f30 pc=0x796618
runtime.bgscavenge(0x0?)
	runtime/mgcscavenge.go:662 +0x74 fp=0xc000067fc8 sp=0xc000067fa0 pc=0x796a14
runtime.gcenable.func2()
	runtime/mgc.go:201 +0x25 fp=0xc000067fe0 sp=0xc000067fc8 pc=0x78dca5
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000067fe8 sp=0xc000067fe0 pc=0x7de901
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:201 +0xa5

goroutine 5 [finalizer wait]:
runtime.gopark(0x0?, 0xe62398?, 0x20?, 0x80?, 0x2000000020?)
	runtime/proc.go:398 +0xce fp=0xc000059e28 sp=0xc000059e08 pc=0x7ae60e
runtime.runfinq()
	runtime/mfinal.go:193 +0x107 fp=0xc000059fe0 sp=0xc000059e28 pc=0x78cdc7
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000059fe8 sp=0xc000059fe0 pc=0x7de901
created by runtime.createfing in goroutine 1
	runtime/mfinal.go:163 +0x3d

goroutine 101 [select]:
runtime.gopark(0xc000583fa8?, 0x2?, 0x88?, 0x5e?, 0xc000583f5c?)
	runtime/proc.go:398 +0xce fp=0xc000583e00 sp=0xc000583de0 pc=0x7ae60e
runtime.selectgo(0xc000583fa8, 0xc000583f58, 0xc000416420?, 0x0, 0xc000065f01?, 0x1)
	runtime/select.go:327 +0x725 fp=0xc000583f20 sp=0xc000583e00 pc=0x7bd925
cmd/go/internal/work.(*Builder).Do.func4()
	cmd/go/internal/work/exec.go:209 +0x108 fp=0xc000583fe0 sp=0xc000583f20 pc=0xc639c8
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000583fe8 sp=0xc000583fe0 pc=0x7de901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
	cmd/go/internal/work/exec.go:205 +0x405

goroutine 100 [syscall, locked to thread]:
runtime.cgocall(0x7e00e0, 0xc0002802c8)
	runtime/cgocall.go:157 +0x3e fp=0xc0006026e0 sp=0xc0006026a8 pc=0x77823e
syscall.SyscallN(0x7f0a0a?, {0xc000602778?, 0xc000115c00?, 0xbe8?})
	runtime/syscall_windows.go:544 +0x107 fp=0xc000602758 sp=0xc0006026e0 pc=0x7db687
syscall.Syscall12(0x0?, 0x0?, 0x0?, 0xc000602850?, 0x7c06c9?, 0x126a260?, 0xc000602880?, 0xc0002c8190?, 0xc0006028a0?, 0x0, ...)
	runtime/syscall_windows.go:500 +0xa9 fp=0xc0006027e8 sp=0xc000602758 pc=0x7db569
syscall.CreateProcess(0x49?, 0xc000602928?, 0x7804c9?, 0x20100000000?, 0x1, 0x80400, 0x2?, 0x3?, 0x100255554aaaa?, 0xc000602970)
	syscall/zsyscall_windows.go:545 +0x10c fp=0xc0006028b0 sp=0xc0006027e8 pc=0x7f73ac
syscall.StartProcess({0xc00014c4e0?, 0xcceac11300000400?}, {0xc000506060, 0x2, 0x2}, 0xc0004a80c0?)
	syscall/exec_windows.go:418 +0xbcf fp=0xc000602b10 sp=0xc0006028b0 pc=0x7f1acf
os.startProcess({0xc00014c4e0, 0x28}, {0xc000506060, 0x2, 0x2}, 0xc000602d50)
	os/exec_posix.go:54 +0x2df fp=0xc000602bf0 sp=0xc000602b10 pc=0x8618ff
os.StartProcess({0xc00014c4e0, 0x28}, {0xc000506060, 0x2, 0x2}, 0x78029e?)
	os/exec.go:111 +0x54 fp=0xc000602c38 sp=0xc000602bf0 pc=0x8613b4
os/exec.(*Cmd).Start(0xc000592420)
	os/exec/exec.go:693 +0x625 fp=0xc000602db0 sp=0xc000602c38 pc=0x89a7c5
os/exec.(*Cmd).Run(0xc00014c4e0?)
	os/exec/exec.go:587 +0x18 fp=0xc000602dd0 sp=0xc000602db0 pc=0x899f18
cmd/go/internal/work.(*Builder).toolID(0xc0000a04d0, {0xdf4efe, 0x3})
	cmd/go/internal/work/buildid.go:167 +0x350 fp=0xc000602ee8 sp=0xc000602dd0 pc=0xc5f2b0
cmd/go/internal/work.(*Builder).buildActionID(0xc0000a04d0, 0xc00033c580)
	cmd/go/internal/work/exec.go:331 +0xef4 fp=0xc000603270 sp=0xc000602ee8 pc=0xc65534
cmd/go/internal/work.(*Builder).build(0xc0000a04d0, {0xf08230?, 0x12d3e40?}, 0xc00033c580)
	cmd/go/internal/work/exec.go:465 +0x195 fp=0xc000603d40 sp=0xc000603270 pc=0xc667d5
cmd/go/internal/work.ActorFunc.Act(0xf08230?, 0x12d3e40?, {0xf08230?, 0x12d3e40?}, 0x0?)
	cmd/go/internal/work/action.go:78 +0x2d fp=0xc000603d70 sp=0xc000603d40 pc=0xc55b2d
cmd/go/internal/work.(*Builder).Do.func3({0xf08230, 0x12d3e40}, 0xc00033c580)
	cmd/go/internal/work/exec.go:151 +0x7e4 fp=0xc000603f20 sp=0xc000603d70 pc=0xc64324
cmd/go/internal/work.(*Builder).Do.func4()
	cmd/go/internal/work/exec.go:219 +0xa8 fp=0xc000603fe0 sp=0xc000603f20 pc=0xc63968
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000603fe8 sp=0xc000603fe0 pc=0x7de901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
	cmd/go/internal/work/exec.go:205 +0x405

goroutine 34 [GC worker (idle)]:
runtime.gopark(0xc000265fd0?, 0x930bbc?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc000265f50 sp=0xc000265f30 pc=0x7ae60e
runtime.gcBgMarkWorker()
	runtime/mgc.go:1293 +0xe5 fp=0xc000265fe0 sp=0xc000265f50 pc=0x78f905
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000265fe8 sp=0xc000265fe0 pc=0x7de901
created by runtime.gcBgMarkStartWorkers in goroutine 21
	runtime/mgc.go:1217 +0x1c

goroutine 50 [GC worker (idle)]:
runtime.gopark(0x4107b1675a08?, 0x3?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc00026bf50 sp=0xc00026bf30 pc=0x7ae60e
runtime.gcBgMarkWorker()
	runtime/mgc.go:1293 +0xe5 fp=0xc00026bfe0 sp=0xc00026bf50 pc=0x78f905
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc00026bfe8 sp=0xc00026bfe0 pc=0x7de901
created by runtime.gcBgMarkStartWorkers in goroutine 21
	runtime/mgc.go:1217 +0x1c

goroutine 7 [GC worker (idle)]:
runtime.gopark(0x4107961fbdbc?, 0x3?, 0x98?, 0x4a?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc000263f50 sp=0xc000263f30 pc=0x7ae60e
runtime.gcBgMarkWorker()
	runtime/mgc.go:1293 +0xe5 fp=0xc000263fe0 sp=0xc000263f50 pc=0x78f905
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000263fe8 sp=0xc000263fe0 pc=0x7de901
created by runtime.gcBgMarkStartWorkers in goroutine 21
	runtime/mgc.go:1217 +0x1c

goroutine 51 [GC worker (idle)]:
runtime.gopark(0x4107b1675a08?, 0x3?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc000267f50 sp=0xc000267f30 pc=0x7ae60e
runtime.gcBgMarkWorker()
	runtime/mgc.go:1293 +0xe5 fp=0xc000267fe0 sp=0xc000267f50 pc=0x78f905
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000267fe8 sp=0xc000267fe0 pc=0x7de901
created by runtime.gcBgMarkStartWorkers in goroutine 21
	runtime/mgc.go:1217 +0x1c

goroutine 8 [GC worker (idle)]:
runtime.gopark(0x4107b1675a08?, 0x3?, 0x98?, 0xbf?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc000069f50 sp=0xc000069f30 pc=0x7ae60e
runtime.gcBgMarkWorker()
	runtime/mgc.go:1293 +0xe5 fp=0xc000069fe0 sp=0xc000069f50 pc=0x78f905
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000069fe8 sp=0xc000069fe0 pc=0x7de901
created by runtime.gcBgMarkStartWorkers in goroutine 21
	runtime/mgc.go:1217 +0x1c

goroutine 66 [GC worker (idle)]:
runtime.gopark(0x12d4f80?, 0x1?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc000063f50 sp=0xc000063f30 pc=0x7ae60e
runtime.gcBgMarkWorker()
	runtime/mgc.go:1293 +0xe5 fp=0xc000063fe0 sp=0xc000063f50 pc=0x78f905
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000063fe8 sp=0xc000063fe0 pc=0x7de901
created by runtime.gcBgMarkStartWorkers in goroutine 21
	runtime/mgc.go:1217 +0x1c

goroutine 67 [GC worker (idle)]:
runtime.gopark(0x4107961fbdbc?, 0x3?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc0002fdf50 sp=0xc0002fdf30 pc=0x7ae60e
runtime.gcBgMarkWorker()
	runtime/mgc.go:1293 +0xe5 fp=0xc0002fdfe0 sp=0xc0002fdf50 pc=0x78f905
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc0002fdfe8 sp=0xc0002fdfe0 pc=0x7de901
created by runtime.gcBgMarkStartWorkers in goroutine 21
	runtime/mgc.go:1217 +0x1c

goroutine 82 [GC worker (idle)]:
runtime.gopark(0x4107961fbdbc?, 0x3?, 0xb8?, 0x4?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc000261f50 sp=0xc000261f30 pc=0x7ae60e
runtime.gcBgMarkWorker()
	runtime/mgc.go:1293 +0xe5 fp=0xc000261fe0 sp=0xc000261f50 pc=0x78f905
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000261fe8 sp=0xc000261fe0 pc=0x7de901
created by runtime.gcBgMarkStartWorkers in goroutine 21
	runtime/mgc.go:1217 +0x1c

goroutine 102 [syscall, locked to thread]:
runtime.cgocall(0x7e00e0, 0xc0004006c8)
	runtime/cgocall.go:157 +0x3e fp=0xc0006066e0 sp=0xc0006066a8 pc=0x77823e
syscall.SyscallN(0x7f0a0a?, {0xc000606778?, 0xc000114400?, 0xbe8?})
	runtime/syscall_windows.go:544 +0x107 fp=0xc000606758 sp=0xc0006066e0 pc=0x7db687
syscall.Syscall12(0x0?, 0x0?, 0x0?, 0xc000606850?, 0x7c06c9?, 0x126a260?, 0xc000606880?, 0xc0002c8dc0?, 0xc0006068a0?, 0x0, ...)
	runtime/syscall_windows.go:500 +0xa9 fp=0xc0006067e8 sp=0xc000606758 pc=0x7db569
syscall.CreateProcess(0x49?, 0xc000606928?, 0x7804c9?, 0x100000000?, 0x1, 0x80400, 0x2?, 0x400000?, 0x100c000606930?, 0xc000606970)
	syscall/zsyscall_windows.go:545 +0x10c fp=0xc0006068b0 sp=0xc0006067e8 pc=0x7f73ac
syscall.StartProcess({0xc000419230?, 0x554411c900010400?}, {0xc00030a260, 0x2, 0x2}, 0xc00017c1e0?)
	syscall/exec_windows.go:418 +0xbcf fp=0xc000606b10 sp=0xc0006068b0 pc=0x7f1acf
os.startProcess({0xc000419230, 0x28}, {0xc00030a260, 0x2, 0x2}, 0xc000606d50)
	os/exec_posix.go:54 +0x2df fp=0xc000606bf0 sp=0xc000606b10 pc=0x8618ff
os.StartProcess({0xc000419230, 0x28}, {0xc00030a260, 0x2, 0x2}, 0x78029e?)
	os/exec.go:111 +0x54 fp=0xc000606c38 sp=0xc000606bf0 pc=0x8613b4
os/exec.(*Cmd).Start(0xc0005922c0)
	os/exec/exec.go:693 +0x625 fp=0xc000606db0 sp=0xc000606c38 pc=0x89a7c5
os/exec.(*Cmd).Run(0xc000419230?)
	os/exec/exec.go:587 +0x18 fp=0xc000606dd0 sp=0xc000606db0 pc=0x899f18
cmd/go/internal/work.(*Builder).toolID(0xc0000a04d0, {0xdf4efe, 0x3})
	cmd/go/internal/work/buildid.go:167 +0x350 fp=0xc000606ee8 sp=0xc000606dd0 pc=0xc5f2b0
cmd/go/internal/work.(*Builder).buildActionID(0xc0000a04d0, 0xc00033d600)
	cmd/go/internal/work/exec.go:331 +0xef4 fp=0xc000607270 sp=0xc000606ee8 pc=0xc65534
cmd/go/internal/work.(*Builder).build(0xc0000a04d0, {0xc000419223?, 0x0?}, 0xc00033d600)
	cmd/go/internal/work/exec.go:465 +0x195 fp=0xc000607d40 sp=0xc000607270 pc=0xc667d5
cmd/go/internal/work.ActorFunc.Act(0xf08230?, 0x12d3e40?, {0xf08230?, 0x12d3e40?}, 0x0?)
	cmd/go/internal/work/action.go:78 +0x2d fp=0xc000607d70 sp=0xc000607d40 pc=0xc55b2d
cmd/go/internal/work.(*Builder).Do.func3({0xf08230, 0x12d3e40}, 0xc00033d600)
	cmd/go/internal/work/exec.go:151 +0x7e4 fp=0xc000607f20 sp=0xc000607d70 pc=0xc64324
cmd/go/internal/work.(*Builder).Do.func4()
	cmd/go/internal/work/exec.go:219 +0xa8 fp=0xc000607fe0 sp=0xc000607f20 pc=0xc63968
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000607fe8 sp=0xc000607fe0 pc=0x7de901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
	cmd/go/internal/work/exec.go:205 +0x405

goroutine 103 [select]:
runtime.gopark(0xc0004adfa8?, 0x2?, 0x0?, 0x0?, 0xc0004adf5c?)
	runtime/proc.go:398 +0xce fp=0xc0004ade00 sp=0xc0004adde0 pc=0x7ae60e
runtime.selectgo(0xc0004adfa8, 0xc0004adf58, 0xc000149a20?, 0x0, 0x12d3e40?, 0x1)
	runtime/select.go:327 +0x725 fp=0xc0004adf20 sp=0xc0004ade00 pc=0x7bd925
cmd/go/internal/work.(*Builder).Do.func4()
	cmd/go/internal/work/exec.go:209 +0x108 fp=0xc0004adfe0 sp=0xc0004adf20 pc=0xc639c8
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc0004adfe8 sp=0xc0004adfe0 pc=0x7de901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
	cmd/go/internal/work/exec.go:205 +0x405

goroutine 104 [select]:
runtime.gopark(0xc0004b7fa8?, 0x2?, 0x88?, 0xfe?, 0xc0004b7f5c?)
	runtime/proc.go:398 +0xce fp=0xc0004b7e00 sp=0xc0004b7de0 pc=0x7ae60e
runtime.selectgo(0xc0004b7fa8, 0xc0004b7f58, 0xc00033c000?, 0x0, 0x12d3e40?, 0x1)
	runtime/select.go:327 +0x725 fp=0xc0004b7f20 sp=0xc0004b7e00 pc=0x7bd925
cmd/go/internal/work.(*Builder).Do.func4()
	cmd/go/internal/work/exec.go:209 +0x108 fp=0xc0004b7fe0 sp=0xc0004b7f20 pc=0xc639c8
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc0004b7fe8 sp=0xc0004b7fe0 pc=0x7de901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
	cmd/go/internal/work/exec.go:205 +0x405

goroutine 105 [syscall, locked to thread]:
runtime.cgocall(0x7e00e0, 0xc00005eec8)
	runtime/cgocall.go:157 +0x3e fp=0xc0004ba6e0 sp=0xc0004ba6a8 pc=0x77823e
syscall.SyscallN(0x7f0a0a?, {0xc0004ba778?, 0xc00012d800?, 0xbe8?})
	runtime/syscall_windows.go:544 +0x107 fp=0xc0004ba758 sp=0xc0004ba6e0 pc=0x7db687
syscall.Syscall12(0x0?, 0x0?, 0x0?, 0xc0004ba850?, 0x7c06c9?, 0x126a260?, 0xc0004ba880?, 0xc000026190?, 0xc0004ba8a0?, 0x0, ...)
	runtime/syscall_windows.go:500 +0xa9 fp=0xc0004ba7e8 sp=0xc0004ba758 pc=0x7db569
syscall.CreateProcess(0x49?, 0xc0004ba928?, 0x7804c9?, 0x20100000000?, 0x1, 0x80400, 0x2?, 0x420e08?, 0x100c0004ba930?, 0xc0004ba970)
	syscall/zsyscall_windows.go:545 +0x10c fp=0xc0004ba8b0 sp=0xc0004ba7e8 pc=0x7f73ac
syscall.StartProcess({0xc000316090?, 0x7a983c5800000400?}, {0xc00038c0e0, 0x2, 0x2}, 0xc0003a4060?)
	syscall/exec_windows.go:418 +0xbcf fp=0xc0004bab10 sp=0xc0004ba8b0 pc=0x7f1acf
os.startProcess({0xc000316090, 0x28}, {0xc00038c0e0, 0x2, 0x2}, 0xc0004bad50)
	os/exec_posix.go:54 +0x2df fp=0xc0004babf0 sp=0xc0004bab10 pc=0x8618ff
os.StartProcess({0xc000316090, 0x28}, {0xc00038c0e0, 0x2, 0x2}, 0x78029e?)
	os/exec.go:111 +0x54 fp=0xc0004bac38 sp=0xc0004babf0 pc=0x8613b4
os/exec.(*Cmd).Start(0xc000417340)
	os/exec/exec.go:693 +0x625 fp=0xc0004badb0 sp=0xc0004bac38 pc=0x89a7c5
os/exec.(*Cmd).Run(0xc000316090?)
	os/exec/exec.go:587 +0x18 fp=0xc0004badd0 sp=0xc0004badb0 pc=0x899f18
cmd/go/internal/work.(*Builder).toolID(0xc0000a04d0, {0xdf4efe, 0x3})
	cmd/go/internal/work/buildid.go:167 +0x350 fp=0xc0004baee8 sp=0xc0004badd0 pc=0xc5f2b0
cmd/go/internal/work.(*Builder).buildActionID(0xc0000a04d0, 0xc000149e40)
	cmd/go/internal/work/exec.go:331 +0xef4 fp=0xc0004bb270 sp=0xc0004baee8 pc=0xc65534
cmd/go/internal/work.(*Builder).build(0xc0000a04d0, {0xf08230?, 0x12d3e40?}, 0xc000149e40)
	cmd/go/internal/work/exec.go:465 +0x195 fp=0xc0004bbd40 sp=0xc0004bb270 pc=0xc667d5
cmd/go/internal/work.ActorFunc.Act(0xf08230?, 0x12d3e40?, {0xf08230?, 0x12d3e40?}, 0x0?)
	cmd/go/internal/work/action.go:78 +0x2d fp=0xc0004bbd70 sp=0xc0004bbd40 pc=0xc55b2d
cmd/go/internal/work.(*Builder).Do.func3({0xf08230, 0x12d3e40}, 0xc000149e40)
	cmd/go/internal/work/exec.go:151 +0x7e4 fp=0xc0004bbf20 sp=0xc0004bbd70 pc=0xc64324
cmd/go/internal/work.(*Builder).Do.func4()
	cmd/go/internal/work/exec.go:219 +0xa8 fp=0xc0004bbfe0 sp=0xc0004bbf20 pc=0xc63968
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc0004bbfe8 sp=0xc0004bbfe0 pc=0x7de901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
	cmd/go/internal/work/exec.go:205 +0x405

goroutine 106 [select]:
runtime.gopark(0xc000587fa8?, 0x2?, 0x0?, 0x0?, 0xc000587f5c?)
	runtime/proc.go:398 +0xce fp=0xc000587e00 sp=0xc000587de0 pc=0x7ae60e
runtime.selectgo(0xc000587fa8, 0xc000587f58, 0xc00033c160?, 0x0, 0x12d3e40?, 0x1)
	runtime/select.go:327 +0x725 fp=0xc000587f20 sp=0xc000587e00 pc=0x7bd925
cmd/go/internal/work.(*Builder).Do.func4()
	cmd/go/internal/work/exec.go:209 +0x108 fp=0xc000587fe0 sp=0xc000587f20 pc=0xc639c8
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000587fe8 sp=0xc000587fe0 pc=0x7de901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
	cmd/go/internal/work/exec.go:205 +0x405
rax     0x22786
rbx     0x222e347c8e0
rcx     0x222e4643781
rdi     0x0
rsi     0x22781
rbp     0x7305afda29
rsp     0x7305afd978
r8      0x5
r9      0x1
r10     0x0
r11     0x246
r12     0x222e33af3d0
r13     0x222e4621000
r14     0x222e347c8d0
r15     0x2b200
rip     0x7ffc2d571b90
rflags  0x10206
cs      0x33
fs      0x53
gs      0x2b

Compilation finished with exit code 2
@jay4195 jay4195 changed the title affected/package: runtime: compile error of simple application on windows amd64 with go1.21.0 runtime: compile error of simple application on windows amd64 with go1.21.0 Aug 12, 2023
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Aug 12, 2023
@mauri870
Copy link
Member

mauri870 commented Aug 12, 2023

Hmm I'm not totally convinced this is a duplicate, the stack trace seems different. I tried to replicate it and the issue reported by #61975 has the exact same stacktrace on both linux and windows, which is different from the one here.

@aarzilli
Copy link
Contributor

@Nasfame it likely isn't.

@mauri870
Copy link
Member

@jay4195 I'm unable to reproduce. Can you run with -x and post the output of one of the crashes?

D:\env\Go\bin\go.exe build -x -o C:\Users\Wangzhiyuan\AppData\Local\JetBrains\GoLand2023.2\tmp\GoLand\___go_build_hello_go.exe -gcflags "all=-N -l" D:\code\go\hello\hello.go

Also, can you try running the following to se if one of these replicate the issue?

D:\env\Go\pkg\tool\windows_amd64\compile.exe -V=full
D:\env\Go\pkg\tool\windows_amd64\asm.exe -V=full
D:\env\Go\pkg\tool\windows_amd64\link.exe -V=full

@jay4195
Copy link
Author

jay4195 commented Aug 12, 2023

@mauri870

For the first command, I reproduced in my laptop like this.

WORK=C:\Users\WANGZH~1.CIC\AppData\Local\Temp\go-build716801665
Exception 0xc0000005 0x0 0x256e16c3e30 0x7ffc2d571b90
PC=0x7ffc2d571b90

runtime.cgocall(0x1900e0, 0xc0000c62c8)
        runtime/cgocall.go:157 +0x3e fp=0xc00055c6e0 sp=0xc00055c6a8 pc=0x12823e
syscall.SyscallN(0x1a0a0a?, {0xc00055c778?, 0xc000590580?, 0xc14?})
        runtime/syscall_windows.go:544 +0x107 fp=0xc00055c758 sp=0xc00055c6e0 pc=0x18b687
syscall.Syscall12(0x0?, 0x0?, 0xc000107ba0?, 0xc00055c850?, 0x1706c9?, 0xc1a260?, 0xc00055c880?, 0xc0002d0190?, 0xc00055c8a0?, 0x0, ...)
        runtime/syscall_windows.go:500 +0xa9 fp=0xc00055c7e8 sp=0xc00055c758 pc=0x18b569
syscall.CreateProcess(0x4c?, 0xc00055c928?, 0x1304c9?, 0x20100000000?, 0x1, 0x80400, 0x2?, 0x3?, 0x100255554aaaa?, 0xc00055c970)
        syscall/zsyscall_windows.go:545 +0x10c fp=0xc00055c8b0 sp=0xc00055c7e8 pc=0x1a73ac
syscall.StartProcess({0xc0004984e0?, 0x885957ea00010400?}, {0xc000204120, 0x2, 0x2}, 0xc0002a4120?)
        syscall/exec_windows.go:418 +0xbcf fp=0xc00055cb10 sp=0xc00055c8b0 pc=0x1a1acf
os.startProcess({0xc0004984e0, 0x28}, {0xc000204120, 0x2, 0x2}, 0xc00055cd50)
        os/exec_posix.go:54 +0x2df fp=0xc00055cbf0 sp=0xc00055cb10 pc=0x2118ff
os.StartProcess({0xc0004984e0, 0x28}, {0xc000204120, 0x2, 0x2}, 0x13029e?)
        os/exec.go:111 +0x54 fp=0xc00055cc38 sp=0xc00055cbf0 pc=0x2113b4
os/exec.(*Cmd).Start(0xc0002ff4a0)
        os/exec/exec.go:693 +0x625 fp=0xc00055cdb0 sp=0xc00055cc38 pc=0x24a7c5
os/exec.(*Cmd).Run(0xc0004984e0?)
        os/exec/exec.go:587 +0x18 fp=0xc00055cdd0 sp=0xc00055cdb0 pc=0x249f18
cmd/go/internal/work.(*Builder).toolID(0xc0000a04d0, {0x7a4efe, 0x3})
        cmd/go/internal/work/buildid.go:167 +0x350 fp=0xc00055cee8 sp=0xc00055cdd0 pc=0x60f2b0
cmd/go/internal/work.(*Builder).buildActionID(0xc0000a04d0, 0xc000397a20)
        cmd/go/internal/work/exec.go:331 +0xef4 fp=0xc00055d270 sp=0xc00055cee8 pc=0x615534
cmd/go/internal/work.(*Builder).build(0xc0000a04d0, {0x8b8230?, 0xc83e40?}, 0xc000397a20)
        cmd/go/internal/work/exec.go:465 +0x195 fp=0xc00055dd40 sp=0xc00055d270 pc=0x6167d5
cmd/go/internal/work.ActorFunc.Act(0x8b8230?, 0xc83e40?, {0x8b8230?, 0xc83e40?}, 0x0?)
        cmd/go/internal/work/action.go:78 +0x2d fp=0xc00055dd70 sp=0xc00055dd40 pc=0x605b2d
cmd/go/internal/work.(*Builder).Do.func3({0x8b8230, 0xc83e40}, 0xc000397a20)
        cmd/go/internal/work/exec.go:151 +0x7e4 fp=0xc00055df20 sp=0xc00055dd70 pc=0x614324
cmd/go/internal/work.(*Builder).Do.func4()
        cmd/go/internal/work/exec.go:219 +0xa8 fp=0xc00055dfe0 sp=0xc00055df20 pc=0x613968
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc00055dfe8 sp=0xc00055dfe0 pc=0x18e901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
        cmd/go/internal/work/exec.go:205 +0x405

goroutine 1 [semacquire]:
runtime.gopark(0x20?, 0x740320?, 0x0?, 0xa0?, 0x256e0610740?)
        runtime/proc.go:398 +0xce fp=0xc0006639b8 sp=0xc000663998 pc=0x15e60e
runtime.goparkunlock(...)
        runtime/proc.go:404
runtime.semacquire1(0xc000200c18, 0x30?, 0x1, 0x0, 0xcb?)
        runtime/sema.go:160 +0x229 fp=0xc000663a20 sp=0xc0006639b8 pc=0x16e969
sync.runtime_Semacquire(0xc000289dd0?)
        runtime/sema.go:62 +0x25 fp=0xc000663a58 sp=0xc000663a20 pc=0x189e05
sync.(*WaitGroup).Wait(0x0?)
        sync/waitgroup.go:116 +0x48 fp=0xc000663a80 sp=0xc000663a58 pc=0x19d9c8
cmd/go/internal/work.(*Builder).Do(0xc0000a04d0, {0x8b8230, 0xc83e40}, 0xc000396420)
        cmd/go/internal/work/exec.go:228 +0x4b5 fp=0xc000663ba0 sp=0xc000663a80 pc=0x613715
cmd/go/internal/work.runBuild({0x8b8230, 0xc83e40}, 0xc00001f8a8?, {0xc00007e070, 0x1, 0x1})
        cmd/go/internal/work/build.go:544 +0x7e5 fp=0xc000663d00 sp=0xc000663ba0 pc=0x60cb65
main.invoke(0xc23e00, {0xc00007e010, 0x7, 0x7})
        cmd/go/main.go:268 +0x5f1 fp=0xc000663e30 sp=0xc000663d00 pc=0x6a5011
main.main()
        cmd/go/main.go:186 +0x785 fp=0xc000663f40 sp=0xc000663e30 pc=0x6a4745
runtime.main()
        runtime/proc.go:267 +0x2b2 fp=0xc000663fe0 sp=0xc000663f40 pc=0x15e1f2
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc000663fe8 sp=0xc000663fe0 pc=0x18e901

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:398 +0xce fp=0xc000055fa8 sp=0xc000055f88 pc=0x15e60e
runtime.goparkunlock(...)
        runtime/proc.go:404
runtime.forcegchelper()
        runtime/proc.go:322 +0xb8 fp=0xc000055fe0 sp=0xc000055fa8 pc=0x15e498
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc000055fe8 sp=0xc000055fe0 pc=0x18e901
created by runtime.init.6 in goroutine 1
        runtime/proc.go:310 +0x1a

goroutine 3 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:398 +0xce fp=0xc000057f78 sp=0xc000057f58 pc=0x15e60e
runtime.goparkunlock(...)
        runtime/proc.go:404
runtime.bgsweep(0x0?)
        runtime/mgcsweep.go:321 +0xdf fp=0xc000057fc8 sp=0xc000057f78 pc=0x148bff
runtime.gcenable.func1()
        runtime/mgc.go:200 +0x25 fp=0xc000057fe0 sp=0xc000057fc8 pc=0x13dd05
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc000057fe8 sp=0xc000057fe0 pc=0x18e901
created by runtime.gcenable in goroutine 1
        runtime/mgc.go:200 +0x66

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x4174400?, 0x3b9aca00?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:398 +0xce fp=0xc000067f70 sp=0xc000067f50 pc=0x15e60e
runtime.goparkunlock(...)
        runtime/proc.go:404
runtime.(*scavengerState).park(0xc2ec40)
        runtime/mgcscavenge.go:425 +0x49 fp=0xc000067fa0 sp=0xc000067f70 pc=0x146449
runtime.bgscavenge(0x0?)
        runtime/mgcscavenge.go:658 +0x59 fp=0xc000067fc8 sp=0xc000067fa0 pc=0x1469f9
runtime.gcenable.func2()
        runtime/mgc.go:201 +0x25 fp=0xc000067fe0 sp=0xc000067fc8 pc=0x13dca5
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc000067fe8 sp=0xc000067fe0 pc=0x18e901
created by runtime.gcenable in goroutine 1
        runtime/mgc.go:201 +0xa5

goroutine 5 [finalizer wait]:
runtime.gopark(0x0?, 0x812398?, 0x20?, 0x0?, 0x2000000020?)
        runtime/proc.go:398 +0xce fp=0xc000059e28 sp=0xc000059e08 pc=0x15e60e
runtime.runfinq()
        runtime/mfinal.go:193 +0x107 fp=0xc000059fe0 sp=0xc000059e28 pc=0x13cdc7
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc000059fe8 sp=0xc000059fe0 pc=0x18e901
created by runtime.createfing in goroutine 1
        runtime/mfinal.go:163 +0x3d

goroutine 14 [GC worker (idle)]:
runtime.gopark(0xc0001b5fd0?, 0x2e0bbc?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:398 +0xce fp=0xc0001b5f50 sp=0xc0001b5f30 pc=0x15e60e
runtime.gcBgMarkWorker()
        runtime/mgc.go:1293 +0xe5 fp=0xc0001b5fe0 sp=0xc0001b5f50 pc=0x13f905
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc0001b5fe8 sp=0xc0001b5fe0 pc=0x18e901
created by runtime.gcBgMarkStartWorkers in goroutine 13
        runtime/mgc.go:1217 +0x1c

goroutine 18 [GC worker (idle)]:
runtime.gopark(0x544cbefbdc7c?, 0x3?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:398 +0xce fp=0xc0001b3f50 sp=0xc0001b3f30 pc=0x15e60e
runtime.gcBgMarkWorker()
        runtime/mgc.go:1293 +0xe5 fp=0xc0001b3fe0 sp=0xc0001b3f50 pc=0x13f905
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc0001b3fe8 sp=0xc0001b3fe0 pc=0x18e901
created by runtime.gcBgMarkStartWorkers in goroutine 13
        runtime/mgc.go:1217 +0x1c

goroutine 19 [GC worker (idle)]:
runtime.gopark(0x544cd00309b4?, 0x1?, 0xd8?, 0x9b?, 0x0?)
        runtime/proc.go:398 +0xce fp=0xc0004e7f50 sp=0xc0004e7f30 pc=0x15e60e
runtime.gcBgMarkWorker()
        runtime/mgc.go:1293 +0xe5 fp=0xc0004e7fe0 sp=0xc0004e7f50 pc=0x13f905
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc0004e7fe8 sp=0xc0004e7fe0 pc=0x18e901
created by runtime.gcBgMarkStartWorkers in goroutine 13
        runtime/mgc.go:1217 +0x1c

goroutine 34 [GC worker (idle)]:
runtime.gopark(0x544ccffb5c78?, 0x3?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:398 +0xce fp=0xc000065f50 sp=0xc000065f30 pc=0x15e60e
runtime.gcBgMarkWorker()
        runtime/mgc.go:1293 +0xe5 fp=0xc000065fe0 sp=0xc000065f50 pc=0x13f905
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc000065fe8 sp=0xc000065fe0 pc=0x18e901
created by runtime.gcBgMarkStartWorkers in goroutine 13
        runtime/mgc.go:1217 +0x1c

goroutine 20 [GC worker (idle)]:
runtime.gopark(0x544cd00309b4?, 0x3?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:398 +0xce fp=0xc0004e9f50 sp=0xc0004e9f30 pc=0x15e60e
runtime.gcBgMarkWorker()
        runtime/mgc.go:1293 +0xe5 fp=0xc0004e9fe0 sp=0xc0004e9f50 pc=0x13f905
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc0004e9fe8 sp=0xc0004e9fe0 pc=0x18e901
created by runtime.gcBgMarkStartWorkers in goroutine 13
        runtime/mgc.go:1217 +0x1c

goroutine 21 [GC worker (idle)]:
runtime.gopark(0x544cbefbdc7c?, 0x3?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:398 +0xce fp=0xc0004e3f50 sp=0xc0004e3f30 pc=0x15e60e
runtime.gcBgMarkWorker()
        runtime/mgc.go:1293 +0xe5 fp=0xc0004e3fe0 sp=0xc0004e3f50 pc=0x13f905
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc0004e3fe8 sp=0xc0004e3fe0 pc=0x18e901
created by runtime.gcBgMarkStartWorkers in goroutine 13
        runtime/mgc.go:1217 +0x1c

goroutine 50 [GC worker (idle)]:
runtime.gopark(0x544cd00309b4?, 0x3?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:398 +0xce fp=0xc0001b7f50 sp=0xc0001b7f30 pc=0x15e60e
runtime.gcBgMarkWorker()
        runtime/mgc.go:1293 +0xe5 fp=0xc0001b7fe0 sp=0xc0001b7f50 pc=0x13f905
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc0001b7fe8 sp=0xc0001b7fe0 pc=0x18e901
created by runtime.gcBgMarkStartWorkers in goroutine 13
        runtime/mgc.go:1217 +0x1c

goroutine 15 [GC worker (idle)]:
runtime.gopark(0x544cbefbdc7c?, 0x3?, 0x0?, 0x0?, 0x0?)
        runtime/proc.go:398 +0xce fp=0xc0001d1f50 sp=0xc0001d1f30 pc=0x15e60e
runtime.gcBgMarkWorker()
        runtime/mgc.go:1293 +0xe5 fp=0xc0001d1fe0 sp=0xc0001d1f50 pc=0x13f905
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc0001d1fe8 sp=0xc0001d1fe0 pc=0x18e901
created by runtime.gcBgMarkStartWorkers in goroutine 13
        runtime/mgc.go:1217 +0x1c

goroutine 43 [select]:
runtime.gopark(0xc0003edfa8?, 0x2?, 0x0?, 0x0?, 0xc0003edf5c?)
        runtime/proc.go:398 +0xce fp=0xc0003ede00 sp=0xc0003edde0 pc=0x15e60e
runtime.selectgo(0xc0003edfa8, 0xc0003edf58, 0xc0003971e0?, 0x0, 0xc83e40?, 0x1)
        runtime/select.go:327 +0x725 fp=0xc0003edf20 sp=0xc0003ede00 pc=0x16d925
cmd/go/internal/work.(*Builder).Do.func4()
        cmd/go/internal/work/exec.go:209 +0x108 fp=0xc0003edfe0 sp=0xc0003edf20 pc=0x6139c8
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc0003edfe8 sp=0xc0003edfe0 pc=0x18e901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
        cmd/go/internal/work/exec.go:205 +0x405

goroutine 41 [select]:
runtime.gopark(0xc00045bfa8?, 0x2?, 0x6?, 0x0?, 0xc00045bf5c?)
        runtime/proc.go:398 +0xce fp=0xc00045be00 sp=0xc00045bde0 pc=0x15e60e
runtime.selectgo(0xc00045bfa8, 0xc00045bf58, 0xc000397340?, 0x0, 0xc83e40?, 0x1)
        runtime/select.go:327 +0x725 fp=0xc00045bf20 sp=0xc00045be00 pc=0x16d925
cmd/go/internal/work.(*Builder).Do.func4()
        cmd/go/internal/work/exec.go:209 +0x108 fp=0xc00045bfe0 sp=0xc00045bf20 pc=0x6139c8
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc00045bfe8 sp=0xc00045bfe0 pc=0x18e901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
        cmd/go/internal/work/exec.go:205 +0x405

goroutine 40 [select]:
runtime.gopark(0xc000533fa8?, 0x2?, 0x0?, 0x0?, 0xc000533f5c?)
        runtime/proc.go:398 +0xce fp=0xc000533e00 sp=0xc000533de0 pc=0x15e60e
runtime.selectgo(0xc000533fa8, 0xc000533f58, 0xc000594420?, 0x0, 0xc83e40?, 0x1)
        runtime/select.go:327 +0x725 fp=0xc000533f20 sp=0xc000533e00 pc=0x16d925
cmd/go/internal/work.(*Builder).Do.func4()
        cmd/go/internal/work/exec.go:209 +0x108 fp=0xc000533fe0 sp=0xc000533f20 pc=0x6139c8
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc000533fe8 sp=0xc000533fe0 pc=0x18e901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
        cmd/go/internal/work/exec.go:205 +0x405

goroutine 44 [select]:
runtime.gopark(0xc000537fa8?, 0x2?, 0xc?, 0x0?, 0xc000537f5c?)
        runtime/proc.go:398 +0xce fp=0xc000537e00 sp=0xc000537de0 pc=0x15e60e
runtime.selectgo(0xc000537fa8, 0xc000537f58, 0xc000594c60?, 0x0, 0xc83e40?, 0x1)
        runtime/select.go:327 +0x725 fp=0xc000537f20 sp=0xc000537e00 pc=0x16d925
cmd/go/internal/work.(*Builder).Do.func4()
        cmd/go/internal/work/exec.go:209 +0x108 fp=0xc000537fe0 sp=0xc000537f20 pc=0x6139c8
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc000537fe8 sp=0xc000537fe0 pc=0x18e901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
        cmd/go/internal/work/exec.go:205 +0x405

goroutine 45 [select]:
runtime.gopark(0xc000457fa8?, 0x2?, 0x0?, 0x0?, 0xc000457f5c?)
        runtime/proc.go:398 +0xce fp=0xc000457e00 sp=0xc000457de0 pc=0x15e60e
runtime.selectgo(0xc000457fa8, 0xc000457f58, 0xc0003974a0?, 0x0, 0xc83e40?, 0x1)
        runtime/select.go:327 +0x725 fp=0xc000457f20 sp=0xc000457e00 pc=0x16d925
cmd/go/internal/work.(*Builder).Do.func4()
        cmd/go/internal/work/exec.go:209 +0x108 fp=0xc000457fe0 sp=0xc000457f20 pc=0x6139c8
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc000457fe8 sp=0xc000457fe0 pc=0x18e901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
        cmd/go/internal/work/exec.go:205 +0x405

goroutine 46 [select]:
runtime.gopark(0xc000559fa8?, 0x2?, 0x0?, 0x0?, 0xc000559f5c?)
        runtime/proc.go:398 +0xce fp=0xc000559e00 sp=0xc000559de0 pc=0x15e60e
runtime.selectgo(0xc000559fa8, 0xc000559f58, 0xc000397e40?, 0x0, 0x0?, 0x1)
        runtime/select.go:327 +0x725 fp=0xc000559f20 sp=0xc000559e00 pc=0x16d925
cmd/go/internal/work.(*Builder).Do.func4()
        cmd/go/internal/work/exec.go:209 +0x108 fp=0xc000559fe0 sp=0xc000559f20 pc=0x6139c8
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc000559fe8 sp=0xc000559fe0 pc=0x18e901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
        cmd/go/internal/work/exec.go:205 +0x405

goroutine 47 [select]:
runtime.gopark(0xc0003f1fa8?, 0x2?, 0x0?, 0x0?, 0xc0003f1f5c?)
        runtime/proc.go:398 +0xce fp=0xc0003f1e00 sp=0xc0003f1de0 pc=0x15e60e
runtime.selectgo(0xc0003f1fa8, 0xc0003f1f58, 0xc000396b00?, 0x0, 0x0?, 0x1)
        runtime/select.go:327 +0x725 fp=0xc0003f1f20 sp=0xc0003f1e00 pc=0x16d925
cmd/go/internal/work.(*Builder).Do.func4()
        cmd/go/internal/work/exec.go:209 +0x108 fp=0xc0003f1fe0 sp=0xc0003f1f20 pc=0x6139c8
runtime.goexit()
        runtime/asm_amd64.s:1650 +0x1 fp=0xc0003f1fe8 sp=0xc0003f1fe0 pc=0x18e901
created by cmd/go/internal/work.(*Builder).Do in goroutine 1
        cmd/go/internal/work/exec.go:205 +0x405
rax     0x22e35
rbx     0x256e046b270
rcx     0x256e16c3e30
rdi     0x0
rsi     0x22e30
rbp     0xb8d40fdbb9
rsp     0xb8d40fdb08
r8      0x5
r9      0x1
r10     0x0
r11     0x246
r12     0x256e029b150
r13     0x256e16a1000
r14     0x256e046b260
r15     0x2b200
rip     0x7ffc2d571b90
rflags  0x10206
cs      0x33
fs      0x53
gs      0x2b

For the second part of commands, I tried several times and it seems to work fine with me.

D:\env\Go\pkg\tool\windows_amd64>compile.exe -V=full
compile version go1.21.0

D:\env\Go\pkg\tool\windows_amd64>asm.exe -V=full
asm version go1.21.0

D:\env\Go\pkg\tool\windows_amd64>link.exe -V=full
link version go1.21.0

@mauri870
Copy link
Member

FYI 0xc0000005 is the code for an access violation

Might not be related but I noticed your username is WANGZH~1.CIC, can you try on a different username?

@jay4195
Copy link
Author

jay4195 commented Aug 13, 2023

@mauri870 This laptop belongs to my company. The dot after my name is the my company abbr. I currently only found this problem under my company's laptop. If I change the -o params to other folder, it can also produce the stacktrace like that. See if there is another way to show more information? I assume that the PC value represents for the location where the go build program crashed.

@jay4195
Copy link
Author

jay4195 commented Aug 13, 2023

@mauri870 if I remove '-gcflags "all=-N -l"', I could alse get crash like this.

goroutine 40 [syscall, locked to thread]:
runtime.cgocall(0x2a00e0, 0xc00001aec8)
        runtime/cgocall.go:157 +0x3e fp=0xc00023bbe8 sp=0xc00023bbb0 pc=0x23823e
syscall.SyscallN(0xc00023bcb8?, {0xc00023bc80?, 0xc000385380?, 0x25bdfb?})
        runtime/syscall_windows.go:544 +0x107 fp=0xc00023bc60 sp=0xc00023bbe8 pc=0x29b687
syscall.Syscall6(0xc00003cf00?, 0x23823e?, 0x29e53f?, 0xc00023bd10?, 0x2382e5?, 0x2a00e0?, 0xc00001aec8?, 0xc000000000?)
        runtime/syscall_windows.go:488 +0x4a fp=0xc00023bcc0 sp=0xc00023bc60 pc=0x29b42a
fatal error: unexpected signal during runtime execution
[signal 0xc0000005 code=0x0 addr=0xe8 pc=0x28f5e5]

runtime stack:
runtime.throw({0x8d3c55?, 0xaf61afc0c0?})
        runtime/panic.go:1077 +0x65 fp=0xaf61afc080 sp=0xaf61afc050 pc=0x26b9a5
runtime.sigpanic()
        runtime/signal_windows.go:358 +0x265 fp=0xaf61afc0c8 sp=0xaf61afc080 pc=0x280225
runtime.(*unwinder).next(0xaf61afc6b0)
        runtime/traceback.go:453 +0x105 fp=0xaf61afc140 sp=0xaf61afc0c8 pc=0x28f5e5
runtime.traceback2(0xaf61afc6b0, 0x0, 0x0, 0x2f)
        runtime/traceback.go:977 +0x125 fp=0xaf61afc3a8 sp=0xaf61afc140 pc=0x290e85
runtime.traceback1.func1(0xa0?)
        runtime/traceback.go:913 +0x65 fp=0xaf61afc578 sp=0xaf61afc3a8 pc=0x290c45
runtime.traceback1(0xc000385380?, 0x71f200?, 0xffffffff001445a4?, 0xc000385380, 0x5d?)
        runtime/traceback.go:936 +0x212 fp=0xaf61afc888 sp=0xaf61afc578 pc=0x290ab2
runtime.traceback(...)
        runtime/traceback.go:813
runtime.tracebackothers.func1(0xc000385380)
        runtime/traceback.go:1244 +0xe5 fp=0xaf61afc8c8 sp=0xaf61afc888 pc=0x2923e5
runtime.forEachGRace(0xaf61afc930)
        runtime/proc.go:621 +0x49 fp=0xaf61afc8f8 sp=0xaf61afc8c8 pc=0x26f029
runtime.tracebackothers(0x8b4e47?)
        runtime/traceback.go:1230 +0xdb fp=0xaf61afc960 sp=0xaf61afc8f8 pc=0x2922db
runtime.winthrow(0xaf61afd830, 0xaf61afd340, 0xc000304d00)
        runtime/signal_windows.go:344 +0x22f fp=0xaf61afc9c8 sp=0xaf61afc960 pc=0x27ff6f
runtime.lastcontinuehandler(0x4b4?, 0x3?, 0xaf61afccc8?)
        runtime/signal_windows.go:305 +0x27 fp=0xaf61afc9f0 sp=0xaf61afc9c8 pc=0x27fd27
runtime.sigtrampgo(0xaf61afcb90, 0xaf61afca78?)
        runtime/signal_windows.go:177 +0xc8 fp=0xaf61afca50 sp=0xaf61afc9f0 pc=0x27f968
sigtramp()
        runtime/sys_windows_amd64.s:116 +0xa6 fp=0xaf61afcb50 sp=0xaf61afca50 pc=0x2a0046
runtime: g 0: unexpected return pc for sigtramp called from 0x7ffc2f327b0a
stack: frame={sp:0xaf61afca50, fp:0xaf61afcb50} stack=[0x0,0xaf61affe10)
0x000000af61afc950:  0x000000af61afc9b8  0x000000000027ff6f <runtime.winthrow+0x000000000000022f>
0x000000af61afc960:  0x00000000008b4e47  0x0000000000000000
0x000000af61afc970:  0x0000000000000002  0x0000000000000000
0x000000af61afc980:  0x00000004e74760eb  0x00007ffc2d571b90
0x000000af61afc990:  0x000001d46f58eaa1  0x0000000000000000
0x000000af61afc9a0:  0x00000000c0000005  0x000000c000304d00
0x000000af61afc9b0:  0x000000c000085380  0x000000af61afc9e0
0x000000af61afc9c0:  0x000000000027fd27 <runtime.lastcontinuehandler+0x0000000000000027>  0x000000af61afd830
0x000000af61afc9d0:  0x000000af61afd340  0x000000c000304d00
0x000000af61afc9e0:  0x000000af61afca40  0x000000000027f968 <runtime.sigtrampgo+0x00000000000000c8>
0x000000af61afc9f0:  0x00000000000004b4  0x0000000000000003
0x000000af61afca00:  0x000000af61afccc8  0x0000000061afcb28
0x000000af61afca10:  0x000000c000304d00  0x000001d427091770
0x000000af61afca20:  0x0000000000000000  0x00007ffc2f2ed87a
0x000000af61afca30:  0x0000000000060008  0x0000000000000070
0x000000af61afca40:  0x0000000000000000  0x00000000002a0046 <sigtramp+0x00000000000000a6>
0x000000af61afca50: <0x000000af61afcb90  0x000000af61afca78
0x000000af61afca60:  0x0000000000000000  0x000001d427267870
0x000000af61afca70:  0x0000000000000000  0x00000000002a0220 <runtime.lastcontinuetramp+0x0000000000000000>
0x000000af61afca80:  0x000001d427267880  0x000000af5fb67000
0x000000af61afca90:  0x000001d427267870  0x0000000000000003
0x000000af61afcaa0:  0x687479505c6e6f68  0x5046003131336e6f
0x000000af61afcab0:  0x4553574f52425f53  0x505f524553555f52
0x000000af61afcac0:  0x535f454c49464f52  0x65443d474e495254
0x000000af61afcad0:  0x3a3d00746c756166  0x6f43005c3a3a3d3a
0x000000af61afcae0:  0x676f72506e6f6d6d  0x73656c69466d6172
0x000000af61afcaf0:  0x676f72505c3a433d  0x656c6946206d6172
0x000000af61afcb00:  0x6e6f6d6d6f435c73  0x000073656c694620
0x000000af61afcb10:  0x53574f444e49575c  0x336d65747379735c
0x000000af61afcb20:  0x776f646e69575c32  0x68537265776f5073
0x000000af61afcb30:  0x0000000000000000  0x0000000000000000
0x000000af61afcb40:  0x0000000000000246  0x00007ffc2f327b0a
0x000000af61afcb50: >0x000000af00000000  0x0000000000000000
0x000000af61afcb60:  0x000000af61afcc08  0x000000af61afd1f0
0x000000af61afcb70:  0x0000000100000000  0x0000000000000067
0x000000af61afcb80:  0x0000000000000003  0x000000af5fb67000
0x000000af61afcb90:  0x000000af61afd830  0x000000af61afd340
0x000000af61afcba0:  0x000000000029e567 <runtime.asmcgocall+0x0000000000000067>  0x000000af61afd340
0x000000af61afcbb0:  0x0000000000000000  0x000000af61afcc50
0x000000af61afcbc0:  0x0000000000230000  0x0000000000000008
0x000000af61afcbd0:  0x000000af61afd830  0x000000af61afd150
0x000000af61afcbe0:  0x0000000000000000  0x00007ffc2f2cebe6 
0x000000af61afcbf0:  0x000000af61afd830  0x000000af61afd340
0x000000af61afcc00:  0x000000000029e500 <runtime.asmcgocall+0x0000000000000000>  0x0000000000d9e5f4
0x000000af61afcc10:  0x000000af61afcc50  0x0000000000000000
0x000000af61afcc20:  0x000000af61afd170  0x000000af61afd160
0x000000af61afcc30:  0x000000af61afd168  0x000000af61afd1f0
0x000000af61afcc40:  0x0000000000000000  0x000000000208005c

@mauri870
Copy link
Member

Might be related to #61411, #50144

@qmuntal
Copy link
Contributor

qmuntal commented Aug 14, 2023

Might not be related but I noticed your username is WANGZH~1.CIC, can you try on a different username?

I don't think it is related to the user name. I've created a local user named WANGZH~1.CIC and the issue does not reproduce.

@dmitshur dmitshur added this to the Go1.22 milestone Aug 14, 2023
@dmitshur
Copy link
Contributor

CC @golang/runtime.

@dmitshur dmitshur added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Aug 14, 2023
@jay4195
Copy link
Author

jay4195 commented Aug 15, 2023

@dmitshur
Today I also reproduce another build error in my company PC. It seems like a concurrency problem.

GOROOT=D:\Program Files\Go #gosetup
GOPATH=D:\env\go #gosetup
"D:\Program Files\Go\bin\go.exe" build -o C:\Users\wangzhiyuan\AppData\Local\JetBrains\GoLand2023.2\tmp\GoLand\___go_build_options.exe -gcflags "all=-N -l" options #gosetup
# options/api/sina
Exception 0xc0000005 0x8 0x1f4aa93aa60 0x1f4aa93aa60
PC=0x1f4aa93aa60

runtime.cgocall(0x680d20, 0xc000078ec8)
	runtime/cgocall.go:157 +0x3e fp=0xc00012c418 sp=0xc00012c3e0 pc=0x60851e
syscall.SyscallN(0x6120c5?, {0xc00012c4b0?, 0xc00012c528?, 0x6cb7d4?})
	runtime/syscall_windows.go:544 +0x107 fp=0xc00012c490 sp=0xc00012c418 pc=0x67c2e7
syscall.Syscall9(0x1?, 0xc0000c20f0?, 0xc00012c580?, 0x6c92e5?, 0xc00013cee2?, 0x71?, 0xc0000c20f0?, 0xffffffffffffffff?, 0x67a345?, 0x0, ...)
	runtime/syscall_windows.go:494 +0x72 fp=0xc00012c508 sp=0xc00012c490 pc=0x67c112
syscall.CreateFile(0xc00013cee2?, 0x80000000, 0x3, 0x680d20?, 0x3, 0x2000001, 0x0)
	syscall/zsyscall_windows.go:507 +0xb2 fp=0xc00012c590 sp=0xc00012c508 pc=0x6ccb12
syscall.Open({0xc00013cee2?, 0x0?}, 0x80000, 0x0)
	syscall/syscall_windows.go:412 +0x288 fp=0xc00012c610 sp=0xc00012c590 pc=0x6c9b48
os.openFileNolog({0xc00013cee2, 0x71}, 0x0, 0x0)
	os/file_windows.go:103 +0x119 fp=0xc00012c690 sp=0xc00012c610 pc=0x6fa0d9
os.OpenFile({0xc00013cee2, 0x71}, 0x0, 0x2c?)
	os/file.go:334 +0x3e fp=0xc00012c6c8 sp=0xc00012c690 pc=0x6f8f5e
os.Open(...)
	os/file.go:314
cmd/compile/internal/noder.openPackage({0xc0000a6001, 0x2c})
	cmd/compile/internal/noder/import.go:91 +0x265 fp=0xc00012c7c8 sp=0xc00012c6c8 pc=0xe24965
cmd/compile/internal/noder.readImportFile({0xc0000a6001?, 0xf025a0?}, 0xc000000180, 0xc000098160?, 0xc00008e360)
	cmd/compile/internal/noder/import.go:201 +0x2ed fp=0xc00012cac8 sp=0xc00012c7c8 pc=0xe2546d
cmd/compile/internal/noder.(*gcimports).ImportFrom(0xf054e0?, {0xc0000a6001?, 0xc0000964f0?}, {0x10e0fc0?, 0xc0000e6b60?}, 0x0?)
	cmd/compile/internal/noder/import.go:45 +0x34 fp=0xc00012cb00 sp=0xc00012cac8 pc=0xe24594
cmd/compile/internal/types2.(*Checker).importPackage(...)
	cmd/compile/internal/types2/resolver.go:146
cmd/compile/internal/types2.(*Checker).collectObjects(0xc0000c0000)
	cmd/compile/internal/types2/resolver.go:254 +0x1122 fp=0xc00012d178 sp=0xc00012cb00 pc=0xdf0782
cmd/compile/internal/types2.(*Checker).checkFiles(0xc0000c0000, {0xc00009a048, 0x3, 0x3})
	cmd/compile/internal/types2/check.go:368 +0x1f9 fp=0xc00012d208 sp=0xc00012d178 pc=0xdba519
cmd/compile/internal/types2.(*Checker).Files(...)
	cmd/compile/internal/types2/check.go:332
cmd/compile/internal/types2.(*Config).Check(0xc00009f7a0, {0xc00000a1f0?, 0x15bf5c0?}, {0xc00009a048, 0x3, 0x3}, 0xc00009f800)
	cmd/compile/internal/types2/api.go:437 +0x14f fp=0xc00012d260 sp=0xc00012d208 pc=0xda528f
cmd/compile/internal/noder.checkFiles({0x0, {0x0, 0x0}}, {0xc0003d79e0, 0x3, 0x18?})
	cmd/compile/internal/noder/irgen.go:70 +0x486 fp=0xc00012d498 sp=0xc00012d260 pc=0xe26ca6
cmd/compile/internal/noder.writePkgStub({0x0?, {0x0?, 0x0?}}, {0xc0003d79e0, 0x3, 0x3})
	cmd/compile/internal/noder/unified.go:210 +0x6a fp=0xc00012d700 sp=0xc00012d498 pc=0xe4d50a
cmd/compile/internal/noder.unified({0x0?, {0x0?, 0x0?}}, {0xc0003d79e0?, 0xec9480?, 0xc00012d8f8?})
	cmd/compile/internal/noder/unified.go:75 +0x85 fp=0xc00012d8a8 sp=0xc00012d700 pc=0xe4cb25
cmd/compile/internal/noder.LoadPackage({0xc000132140, 0x3, 0xc})
	cmd/compile/internal/noder/noder.go:77 +0x450 fp=0xc00012d9d8 sp=0xc00012d8a8 pc=0xe2b7f0
cmd/compile/internal/gc.Main(0xfb5738)
	cmd/compile/internal/gc/main.go:198 +0xc17 fp=0xc00012dee0 sp=0xc00012d9d8 pc=0xe7e377
main.main()
	cmd/compile/main.go:57 +0xf9 fp=0xc00012df40 sp=0xc00012dee0 pc=0xea6c79
runtime.main()
	runtime/proc.go:267 +0x2b2 fp=0xc00012dfe0 sp=0xc00012df40 pc=0x64a212
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc00012dfe8 sp=0xc00012dfe0 pc=0x67f561

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc00006ffa8 sp=0xc00006ff88 pc=0x64a64e
runtime.goparkunlock(...)
	runtime/proc.go:404
runtime.forcegchelper()
	runtime/proc.go:322 +0xb8 fp=0xc00006ffe0 sp=0xc00006ffa8 pc=0x64a4b8
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc00006ffe8 sp=0xc00006ffe0 pc=0x67f561
created by runtime.init.6 in goroutine 1
	runtime/proc.go:310 +0x1a

goroutine 3 [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc000071f48 sp=0xc000071f28 pc=0x64a64e
runtime.goparkunlock(...)
	runtime/proc.go:404
runtime.bgsweep(0x0?)
	runtime/mgcsweep.go:280 +0x94 fp=0xc000071fc8 sp=0xc000071f48 pc=0x62ead4
runtime.gcenable.func1()
	runtime/mgc.go:200 +0x25 fp=0xc000071fe0 sp=0xc000071fc8 pc=0x6227e5
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000071fe8 sp=0xc000071fe0 pc=0x67f561
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:200 +0x66

goroutine 4 [GC scavenge wait]:
runtime.gopark(0xc000028070?, 0x10d3180?, 0x1?, 0x0?, 0xc00006cb60?)
	runtime/proc.go:398 +0xce fp=0xc000085f70 sp=0xc000085f50 pc=0x64a64e
runtime.goparkunlock(...)
	runtime/proc.go:404
runtime.(*scavengerState).park(0x164d400)
	runtime/mgcscavenge.go:425 +0x49 fp=0xc000085fa0 sp=0xc000085f70 pc=0x62c149
runtime.bgscavenge(0x0?)
	runtime/mgcscavenge.go:653 +0x3c fp=0xc000085fc8 sp=0xc000085fa0 pc=0x62c6dc
runtime.gcenable.func2()
	runtime/mgc.go:201 +0x25 fp=0xc000085fe0 sp=0xc000085fc8 pc=0x622785
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000085fe8 sp=0xc000085fe0 pc=0x67f561
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:201 +0xa5

goroutine 5 [finalizer wait]:
runtime.gopark(0x0?, 0x100000000?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:398 +0xce fp=0xc000073e28 sp=0xc000073e08 pc=0x64a64e
runtime.runfinq()
	runtime/mfinal.go:193 +0x107 fp=0xc000073fe0 sp=0xc000073e28 pc=0x6218a7
runtime.goexit()
	runtime/asm_amd64.s:1650 +0x1 fp=0xc000073fe8 sp=0xc000073fe0 pc=0x67f561
created by runtime.createfing in goroutine 1
	runtime/mfinal.go:163 +0x3d
rax     0x1f4aa93a850
rbx     0x0
rcx     0x1f4aa93aa60
rdi     0x8a0b2ff0d0
rsi     0x8a0b2ff110
rbp     0x8a0b2feee0
rsp     0x8a0b2fedb8
r8      0x1
r9      0x8a0b2ff110
r10     0x3
r11     0x8a0b2feda0
r12     0x0
r13     0x8a0b2ff098
r14     0x0
r15     0x3
rip     0x1f4aa93aa60
rflags  0x10297
cs      0x33
fs      0x53
gs      0x2b

@jay4195
Copy link
Author

jay4195 commented Aug 16, 2023

@Nasfame C:\Users\xxx\AppData\Local is windows temp folder, so I think programs should have access to it. I changed the code to println("hello world") , I still got error.

Exception 0xc0000005 0x0 0x2332080ebee 0x7ffa1f3a1b90
PC=0x7ffa1f3a1b90

@jay4195
Copy link
Author

jay4195 commented Aug 16, 2023

@Nasfame By the way I notice that I open the VirtualizationBasedTechnology CSP of windows defender, It that releated to the problem?

@mknyszek mknyszek changed the title runtime: compile error of simple application on windows amd64 with go1.21.0 runtime: hello world build failure on windows/amd64 with go1.21.0 Aug 16, 2023
@jay4195
Copy link
Author

jay4195 commented Aug 17, 2023

@Nasfame Yes, I switch go version to 1.20.7, still got that problem.
By the way, that error occurred in my PC is associated to CreateFile, but that only happened once.
In my Laptop, mostly the case is the CreateProcess error.

Exception 0xc0000005 0x0 0x200655018f6 0x7ff8f3451b90
PC=0x7ff8f3451b90

runtime.cgocall(0x148d20, 0xc0003346c0)
	c:/go/src/runtime/cgocall.go:157 +0x4a fp=0xc0001d6678 sp=0xc0001d6640 pc=0xe4d4a
syscall.SyscallN(0xc0001d6838?, {0xc0001d6710?, 0xc000164000?, 0xc000070c80?})
	c:/go/src/runtime/syscall_windows.go:557 +0x109 fp=0xc0001d66f0 sp=0xc0001d6678 pc=0x143f29
syscall.Syscall12(0x0?, 0x0?, 0x0?, 0xc0001d67e8?, 0x12b8f2?, 0xc00002f050?, 0xc0001d6818?, 0xc0004b4410?, 0xc0001d6838?, 0x0, ...)
	c:/go/src/runtime/syscall_windows.go:513 +0xac fp=0xc0001d6780 sp=0xc0001d66f0 pc=0x143e0c
syscall.CreateProcess(0x48?, 0xc0001d68a0?, 0xed7ed?, 0x20100000000?, 0x1, 0x80400, 0x400000?, 0xc0001d68c0?, 0x101dc5?, 0xc0001d6908)
	c:/go/src/syscall/zsyscall_windows.go:545 +0x114 fp=0xc0001d6848 sp=0xc0001d6780 pc=0x15edf4
syscall.StartProcess({0xc000446000?, 0x18e50d5800000400?}, {0xc0001aa0e0, 0x2, 0x2}, 0xc0003be048?)
	c:/go/src/syscall/exec_windows.go:418 +0xc1a fp=0xc0001d6aa8 sp=0xc0001d6848 pc=0x1595ba
os.startProcess({0xc000446000, 0x28}, {0xc0001aa0e0, 0x2, 0x2}, 0xc0001d6ce8)
	c:/go/src/os/exec_posix.go:54 +0x311 fp=0xc0001d6b88 sp=0xc0001d6aa8 pc=0x1d2d91
os.StartProcess({0xc000446000, 0x28}, {0xc0001aa0e0, 0x2, 0x2}, 0xed83e?)
	c:/go/src/os/exec.go:109 +0x5a fp=0xc0001d6bd0 sp=0xc0001d6b88 pc=0x1d27da
os/exec.(*Cmd).Start(0xc0001aec60)
	c:/go/src/os/exec/exec.go:693 +0x62e fp=0xc0001d6d48 sp=0xc0001d6bd0 pc=0x20986e
os/exec.(*Cmd).Run(0xc000446000?)
	c:/go/src/os/exec/exec.go:587 +0x1e fp=0xc0001d6d68 sp=0xc0001d6d48 pc=0x208f9e
cmd/go/internal/work.(*Builder).toolID(0xc0000be4d0, {0x733bc7, 0x3})
	c:/go/src/cmd/go/internal/work/buildid.go:167 +0x351 fp=0xc0001d6e80 sp=0xc0001d6d68 pc=0x5c1431
cmd/go/internal/work.(*Builder).buildActionID(0xc0000be4d0, 0xc0001ae000)
	c:/go/src/cmd/go/internal/work/exec.go:323 +0xf94 fp=0xc0001d7248 sp=0xc0001d6e80 pc=0x5c7974
cmd/go/internal/work.(*Builder).build(0xc0000be4d0, {0x839a48?, 0xc00001c060?}, 0xc0001ae000)
	c:/go/src/cmd/go/internal/work/exec.go:467 +0x199 fp=0xc0001d7d60 sp=0xc0001d7248 pc=0x5c8b99
cmd/go/internal/work.ActorFunc.Act(0x839a48?, 0xc00001c060?, {0x839a48?, 0xc00001c060?}, 0x1284d3?)
	c:/go/src/cmd/go/internal/work/action.go:76 +0x33 fp=0xc0001d7d90 sp=0xc0001d7d60 pc=0x5b7a33
cmd/go/internal/work.(*Builder).Do.func2({0x839a48, 0xc00001c060}, 0xc0001ae000)
	c:/go/src/cmd/go/internal/work/exec.go:143 +0x7a4 fp=0xc0001d7f20 sp=0xc0001d7d90 pc=0x5c66c4
cmd/go/internal/work.(*Builder).Do.func3()
	c:/go/src/cmd/go/internal/work/exec.go:211 +0xb9 fp=0xc0001d7fe0 sp=0xc0001d7f20 pc=0x5c5d39
runtime.goexit()
	c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0001d7fe8 sp=0xc0001d7fe0 pc=0x1473a1
created by cmd/go/internal/work.(*Builder).Do
	c:/go/src/cmd/go/internal/work/exec.go:197 +0x3f5

@jay4195
Copy link
Author

jay4195 commented Aug 17, 2023

@Nasfame It was generated by GoLand2023.2

D:\env\Go\bin\go.exe build -o C:\Users\Wangzhiyuan.CICC\AppData\Local\JetBrains\GoLand2023.2\tmp\GoLand\___1go_build_hello_go.exe -gcflags "all=-N -l" D:\code\go\hello\hello.go #gosetup

I also tried your command in go 1.20.7
go build -o x.exe hello.go
in windows cmd.exe. It produced like this.

Exception 0xc0000005 0x0 0x127f5cdab30 0x7ff8f3451bf0
PC=0x7ff8f3451bf0

runtime.cgocall(0x148d20, 0xc000408ec0)
        c:/go/src/runtime/cgocall.go:157 +0x4a fp=0xc00025e790 sp=0xc00025e758 pc=0xe4d4a
syscall.SyscallN(0xc00025e950?, {0xc00025e828?, 0xc000234000?, 0xc000204c00?})
        c:/go/src/runtime/syscall_windows.go:557 +0x109 fp=0xc00025e808 sp=0xc00025e790 pc=0x143f29
syscall.Syscall12(0x0?, 0x0?, 0x0?, 0xc00025e900?, 0x12b8f2?, 0xc000107020?, 0xc00025e930?, 0xc00054a550?, 0xc00025e950?, 0xc0000901e0, ...)
        c:/go/src/runtime/syscall_windows.go:513 +0xac fp=0xc00025e898 sp=0xc00025e808 pc=0x143e0c
syscall.CreateProcess(0x48?, 0xc0001c4240?, 0x28?, 0x10100000000?, 0x1, 0x80400, 0x122471?, 0x255554aaaa?, 0x0?, 0xc00025ea20)
        c:/go/src/syscall/zsyscall_windows.go:545 +0x114 fp=0xc00025e960 sp=0xc00025e898 pc=0x15edf4
syscall.StartProcess({0xc0001c4240?, 0x25?}, {0xc0002c4140, 0x14, 0x14}, 0xc0000080f0?)
        c:/go/src/syscall/exec_windows.go:418 +0xc1a fp=0xc00025ebc0 sp=0xc00025e960 pc=0x1595ba
os.startProcess({0xc0001c4240, 0x28}, {0xc0002c4140, 0x14, 0x14}, 0xc00025ee00)
        c:/go/src/os/exec_posix.go:54 +0x311 fp=0xc00025eca0 sp=0xc00025ebc0 pc=0x1d2d91
os.StartProcess({0xc0001c4240, 0x28}, {0xc0002c4140, 0x14, 0x14}, 0x127f4aa3ca8?)
        c:/go/src/os/exec.go:109 +0x5a fp=0xc00025ece8 sp=0xc00025eca0 pc=0x1d27da
os/exec.(*Cmd).Start(0xc000538000)
        c:/go/src/os/exec/exec.go:693 +0x62e fp=0xc00025ee60 sp=0xc00025ece8 pc=0x20986e
os/exec.(*Cmd).Run(0xc000574000?)
        c:/go/src/os/exec/exec.go:587 +0x1e fp=0xc00025ee80 sp=0xc00025ee60 pc=0x208f9e
cmd/go/internal/work.(*Builder).runOut(0x0?, 0xc0001c8160, {0xc000093a70, 0x25}, {0x0, 0x0, 0x0?}, {0xc0001c2000, 0x17, 0x20})
        c:/go/src/cmd/go/internal/work/exec.go:2269 +0x63d fp=0xc00025f048 sp=0xc00025ee80 pc=0x5d87dd
cmd/go/internal/work.(*Builder).run(0xc0001744d0, 0xc0001c8160, {0xc000093a70, 0x25}, {0xc0000e5de1, 0x17}, {0x0?, 0xc00025f190?, 0x12f810?}, {0xc0001c2000, ...})
        c:/go/src/cmd/go/internal/work/exec.go:2178 +0x92 fp=0xc00025f0f0 sp=0xc00025f048 pc=0x5d7df2
cmd/go/internal/work.gcToolchain.symabis.func1(0xc0001ff700, {0xc000518160, 0x1, 0x735e39?}, {0xc00054a140, 0x48})
        c:/go/src/cmd/go/internal/work/gc.go:448 +0x3a7 fp=0xc00025f1a0 sp=0xc00025f0f0 pc=0x5eada7
cmd/go/internal/work.gcToolchain.symabis({}, 0xc00052c380?, 0x62?, {0xc000518160, 0x1, 0x1})
        c:/go/src/cmd/go/internal/work/gc.go:455 +0xd5 fp=0xc00025f210 sp=0xc00025f1a0 pc=0x5ea975
cmd/go/internal/work.(*gcToolchain).symabis(0xc00039e3c0?, 0xc0001c8160?, 0xc00061a0c0?, {0xc000518160?, 0x687920?, 0xc0001c8160?})
        <autogenerated>:1 +0x3b fp=0xc00025f248 sp=0xc00025f210 pc=0x5fc35b
cmd/go/internal/work.(*Builder).build(0xc0001744d0, {0x839a48?, 0xc00011a010?}, 0xc0001c8160)
        c:/go/src/cmd/go/internal/work/exec.go:789 +0x22e5 fp=0xc00025fd60 sp=0xc00025f248 pc=0x5cace5
cmd/go/internal/work.ActorFunc.Act(0x839a48?, 0xc00011a010?, {0x839a48?, 0xc00011a010?}, 0x1284d3?)
        c:/go/src/cmd/go/internal/work/action.go:76 +0x33 fp=0xc00025fd90 sp=0xc00025fd60 pc=0x5b7a33
cmd/go/internal/work.(*Builder).Do.func2({0x839a48, 0xc00011a010}, 0xc0001c8160)
        c:/go/src/cmd/go/internal/work/exec.go:143 +0x7a4 fp=0xc00025ff20 sp=0xc00025fd90 pc=0x5c66c4
cmd/go/internal/work.(*Builder).Do.func3()
        c:/go/src/cmd/go/internal/work/exec.go:211 +0xb9 fp=0xc00025ffe0 sp=0xc00025ff20 pc=0x5c5d39
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00025ffe8 sp=0xc00025ffe0 pc=0x1473a1
created by cmd/go/internal/work.(*Builder).Do
        c:/go/src/cmd/go/internal/work/exec.go:197 +0x3f5

goroutine 1 [semacquire]:
runtime.gopark(0xc00037e100?, 0x20?, 0xe0?, 0xe1?, 0x6d6080?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc0005efa38 sp=0xc0005efa18 pc=0x11a816
runtime.goparkunlock(...)
        c:/go/src/runtime/proc.go:387
runtime.semacquire1(0xc0003e38c8, 0x30?, 0x1, 0x0, 0xb1?)
        c:/go/src/runtime/sema.go:160 +0x21c fp=0xc0005efaa0 sp=0xc0005efa38 pc=0x129edc
sync.runtime_Semacquire(0xc000139ce0?)
        c:/go/src/runtime/sema.go:62 +0x27 fp=0xc0005efad8 sp=0xc0005efaa0 pc=0x142627
sync.(*WaitGroup).Wait(0x0?)
        c:/go/src/sync/waitgroup.go:116 +0x4b fp=0xc0005efb00 sp=0xc0005efad8 pc=0x155ceb
cmd/go/internal/work.(*Builder).Do(0xc0001744d0, {0x839a48, 0xc00011a010}, 0xc0001f71e0)
        c:/go/src/cmd/go/internal/work/exec.go:220 +0x4ca fp=0xc0005efc18 sp=0xc0005efb00 pc=0x5c5aca
cmd/go/internal/work.runBuild({0x839a48, 0xc00011a010}, 0xc00011f7a0?, {0xc000152040, 0x1, 0x4})
        c:/go/src/cmd/go/internal/work/build.go:534 +0x7f2 fp=0xc0005efd80 sp=0xc0005efc18 pc=0x5bead2
main.invoke(0xb55840, {0xc000152010, 0x4, 0x7})
        c:/go/src/cmd/go/main.go:225 +0x3d9 fp=0xc0005efe58 sp=0xc0005efd80 pc=0x6499d9
main.main()
        c:/go/src/cmd/go/main.go:179 +0x7ae fp=0xc0005eff80 sp=0xc0005efe58 pc=0x6492ee
runtime.main()
        c:/go/src/runtime/proc.go:250 +0x1f7 fp=0xc0005effe0 sp=0xc0005eff80 pc=0x11a3f7
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0005effe8 sp=0xc0005effe0 pc=0x1473a1

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc000053fb0 sp=0xc000053f90 pc=0x11a816
runtime.goparkunlock(...)
        c:/go/src/runtime/proc.go:387
runtime.forcegchelper()
        c:/go/src/runtime/proc.go:305 +0xb2 fp=0xc000053fe0 sp=0xc000053fb0 pc=0x11a632
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000053fe8 sp=0xc000053fe0 pc=0x1473a1
created by runtime.init.6
        c:/go/src/runtime/proc.go:293 +0x25

goroutine 3 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc000055f80 sp=0xc000055f60 pc=0x11a816
runtime.goparkunlock(...)
        c:/go/src/runtime/proc.go:387
runtime.bgsweep(0x0?)
        c:/go/src/runtime/mgcsweep.go:319 +0xde fp=0xc000055fc8 sp=0xc000055f80 pc=0x104a5e
runtime.gcenable.func1()
        c:/go/src/runtime/mgc.go:178 +0x26 fp=0xc000055fe0 sp=0xc000055fc8 pc=0xf9c26
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000055fe8 sp=0xc000055fe0 pc=0x1473a1
created by runtime.gcenable
        c:/go/src/runtime/mgc.go:178 +0x6b

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x9bdb467f5a4?, 0x1181018?, 0x0?, 0x0?, 0x0?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc000065f70 sp=0xc000065f50 pc=0x11a816
runtime.goparkunlock(...)
        c:/go/src/runtime/proc.go:387
runtime.(*scavengerState).park(0xb61680)
        c:/go/src/runtime/mgcscavenge.go:400 +0x53 fp=0xc000065fa0 sp=0xc000065f70 pc=0x102913
runtime.bgscavenge(0x0?)
        c:/go/src/runtime/mgcscavenge.go:633 +0x65 fp=0xc000065fc8 sp=0xc000065fa0 pc=0x102f25
runtime.gcenable.func2()
        c:/go/src/runtime/mgc.go:179 +0x26 fp=0xc000065fe0 sp=0xc000065fc8 pc=0xf9bc6
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000065fe8 sp=0xc000065fe0 pc=0x1473a1
created by runtime.gcenable
        c:/go/src/runtime/mgc.go:179 +0xaa

goroutine 18 [finalizer wait]:
runtime.gopark(0x0?, 0x79fe18?, 0x0?, 0xa0?, 0x2000000020?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc000057e28 sp=0xc000057e08 pc=0x11a816
runtime.runfinq()
        c:/go/src/runtime/mfinal.go:193 +0x107 fp=0xc000057fe0 sp=0xc000057e28 pc=0xf8c87
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000057fe8 sp=0xc000057fe0 pc=0x1473a1
created by runtime.createfing
        c:/go/src/runtime/mfinal.go:163 +0x45

goroutine 34 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc000061f50 sp=0xc000061f30 pc=0x11a816
runtime.gcBgMarkWorker()
        c:/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000061fe0 sp=0xc000061f50 pc=0xfb9d1
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000061fe8 sp=0xc000061fe0 pc=0x1473a1
created by runtime.gcBgMarkStartWorkers
        c:/go/src/runtime/mgc.go:1199 +0x25

goroutine 19 [GC worker (idle)]:
runtime.gopark(0x9bd96447fd4?, 0x0?, 0x0?, 0x0?, 0x0?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc00024bf50 sp=0xc00024bf30 pc=0x11a816
runtime.gcBgMarkWorker()
        c:/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00024bfe0 sp=0xc00024bf50 pc=0xfb9d1
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00024bfe8 sp=0xc00024bfe0 pc=0x1473a1
created by runtime.gcBgMarkStartWorkers
        c:/go/src/runtime/mgc.go:1199 +0x25

goroutine 35 [GC worker (idle)]:
runtime.gopark(0x9bdb30efacc?, 0x0?, 0x0?, 0x0?, 0x0?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc000063f50 sp=0xc000063f30 pc=0x11a816
runtime.gcBgMarkWorker()
        c:/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000063fe0 sp=0xc000063f50 pc=0xfb9d1
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000063fe8 sp=0xc000063fe0 pc=0x1473a1
created by runtime.gcBgMarkStartWorkers
        c:/go/src/runtime/mgc.go:1199 +0x25

goroutine 5 [GC worker (idle)]:
runtime.gopark(0x9bd9bb8b714?, 0x0?, 0x0?, 0x0?, 0x0?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc000067f50 sp=0xc000067f30 pc=0x11a816
runtime.gcBgMarkWorker()
        c:/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000067fe0 sp=0xc000067f50 pc=0xfb9d1
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000067fe8 sp=0xc000067fe0 pc=0x1473a1
created by runtime.gcBgMarkStartWorkers
        c:/go/src/runtime/mgc.go:1199 +0x25

goroutine 6 [GC worker (idle)]:
runtime.gopark(0x9bdb30efacc?, 0x3?, 0xfc?, 0xa8?, 0x0?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc000247f50 sp=0xc000247f30 pc=0x11a816
runtime.gcBgMarkWorker()
        c:/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000247fe0 sp=0xc000247f50 pc=0xfb9d1
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000247fe8 sp=0xc000247fe0 pc=0x1473a1
created by runtime.gcBgMarkStartWorkers
        c:/go/src/runtime/mgc.go:1199 +0x25

goroutine 7 [GC worker (idle)]:
runtime.gopark(0x9bd9bb8b714?, 0x3?, 0x0?, 0x0?, 0x0?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc000249f50 sp=0xc000249f30 pc=0x11a816
runtime.gcBgMarkWorker()
        c:/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000249fe0 sp=0xc000249f50 pc=0xfb9d1
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000249fe8 sp=0xc000249fe0 pc=0x1473a1
created by runtime.gcBgMarkStartWorkers
        c:/go/src/runtime/mgc.go:1199 +0x25

goroutine 8 [GC worker (idle)]:
runtime.gopark(0x9bd9ca3821c?, 0x0?, 0x0?, 0x0?, 0x0?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc00006ff50 sp=0xc00006ff30 pc=0x11a816
runtime.gcBgMarkWorker()
        c:/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00006ffe0 sp=0xc00006ff50 pc=0xfb9d1
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00006ffe8 sp=0xc00006ffe0 pc=0x1473a1
created by runtime.gcBgMarkStartWorkers
        c:/go/src/runtime/mgc.go:1199 +0x25

goroutine 9 [GC worker (idle)]:
runtime.gopark(0x9bd9bb8b714?, 0x1?, 0xb8?, 0xdb?, 0x0?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc000071f50 sp=0xc000071f30 pc=0x11a816
runtime.gcBgMarkWorker()
        c:/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000071fe0 sp=0xc000071f50 pc=0xfb9d1
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000071fe8 sp=0xc000071fe0 pc=0x1473a1
created by runtime.gcBgMarkStartWorkers
        c:/go/src/runtime/mgc.go:1199 +0x25

goroutine 36 [select]:
runtime.gopark(0xc00006dfa8?, 0x2?, 0x0?, 0x0?, 0xc00006df5c?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc00006dde0 sp=0xc00006ddc0 pc=0x11a816
runtime.selectgo(0xc00006dfa8, 0xc00006df58, 0x0?, 0x0, 0x0?, 0x1)
        c:/go/src/runtime/select.go:327 +0x7be fp=0xc00006df20 sp=0xc00006dde0 pc=0x128dde
cmd/go/internal/work.(*Builder).Do.func3()
        c:/go/src/cmd/go/internal/work/exec.go:201 +0x119 fp=0xc00006dfe0 sp=0xc00006df20 pc=0x5c5d99
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00006dfe8 sp=0xc00006dfe0 pc=0x1473a1
created by cmd/go/internal/work.(*Builder).Do
        c:/go/src/cmd/go/internal/work/exec.go:197 +0x3f5

goroutine 37 [syscall, locked to thread]:
runtime.cgocall(0x148d20, 0xc0004802c0)
        c:/go/src/runtime/cgocall.go:157 +0x4a fp=0xc0004b6b30 sp=0xc0004b6af8 pc=0xe4d4a
syscall.SyscallN(0x7ff8f22806e0?, {0xc0004b6bc8?, 0x3?, 0x0?})
        c:/go/src/runtime/syscall_windows.go:557 +0x109 fp=0xc0004b6ba8 sp=0xc0004b6b30 pc=0x143f29
syscall.Syscall(0x14?, 0x127cd49c378?, 0x0?, 0xc0004b6c48?, 0x10000000f710b?)
        c:/go/src/runtime/syscall_windows.go:495 +0x3b fp=0xc0004b6bf0 sp=0xc0004b6ba8 pc=0x143c3b
syscall.WaitForSingleObject(0x101dc5?, 0xffffffff)
        c:/go/src/syscall/zsyscall_windows.go:1145 +0x65 fp=0xc0004b6c40 sp=0xc0004b6bf0 pc=0x161d45
os.(*Process).wait(0xc000594630)
        c:/go/src/os/exec_windows.go:18 +0x65 fp=0xc0004b6ce0 sp=0xc0004b6c40 pc=0x1d3125
os.(*Process).Wait(...)
        c:/go/src/os/exec.go:132
os/exec.(*Cmd).Wait(0xc0005a2160)
        c:/go/src/os/exec/exec.go:890 +0x45 fp=0xc0004b6d48 sp=0xc0004b6ce0 pc=0x20a785
os/exec.(*Cmd).Run(0xc0005d6480?)
        c:/go/src/os/exec/exec.go:590 +0x39 fp=0xc0004b6d68 sp=0xc0004b6d48 pc=0x208fb9
cmd/go/internal/work.(*Builder).runOut(0x8?, 0xc0001f7ce0, {0xc00011f7d0, 0x10}, {0x0, 0x0, 0x6a1f00?}, {0xc00005c200, 0xd, 0x10})
        c:/go/src/cmd/go/internal/work/exec.go:2269 +0x63d fp=0xc0004b6f30 sp=0xc0004b6d68 pc=0x5d87dd
cmd/go/internal/work.gcToolchain.gc({}, 0x12f810?, 0xc0001f7ce0, {0xc0005b6190, 0x48}, {0xc0002ca340, 0x10, 0x40}, {0x0, 0x0, ...}, ...)
        c:/go/src/cmd/go/internal/work/gc.go:220 +0x1905 fp=0xc0004b71b8 sp=0xc0004b6f30 pc=0x5e86c5
cmd/go/internal/work.(*gcToolchain).gc(0x1?, 0x0?, 0x0?, {0xc0005b6190?, 0x0?}, {0xc0002ca340?, 0x0?, 0x0?}, {0x0, 0x0, ...}, ...)
        <autogenerated>:1 +0xc8 fp=0xc0004b7248 sp=0xc0004b71b8 pc=0x5fbee8
cmd/go/internal/work.(*Builder).build(0xc0001744d0, {0x839a48?, 0xc00011a010?}, 0xc0001f7ce0)
        c:/go/src/cmd/go/internal/work/exec.go:848 +0x2d5f fp=0xc0004b7d60 sp=0xc0004b7248 pc=0x5cb75f
cmd/go/internal/work.ActorFunc.Act(0x839a48?, 0xc00011a010?, {0x839a48?, 0xc00011a010?}, 0x1284d3?)
        c:/go/src/cmd/go/internal/work/action.go:76 +0x33 fp=0xc0004b7d90 sp=0xc0004b7d60 pc=0x5b7a33
cmd/go/internal/work.(*Builder).Do.func2({0x839a48, 0xc00011a010}, 0xc0001f7ce0)
        c:/go/src/cmd/go/internal/work/exec.go:143 +0x7a4 fp=0xc0004b7f20 sp=0xc0004b7d90 pc=0x5c66c4
cmd/go/internal/work.(*Builder).Do.func3()
        c:/go/src/cmd/go/internal/work/exec.go:211 +0xb9 fp=0xc0004b7fe0 sp=0xc0004b7f20 pc=0x5c5d39
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0004b7fe8 sp=0xc0004b7fe0 pc=0x1473a1
created by cmd/go/internal/work.(*Builder).Do
        c:/go/src/cmd/go/internal/work/exec.go:197 +0x3f5

goroutine 39 [syscall, locked to thread]:
runtime.cgocall(0x148d20, 0xc000480ac0)
        c:/go/src/runtime/cgocall.go:157 +0x4a fp=0xc000222678 sp=0xc000222640 pc=0xe4d4a
syscall.SyscallN(0xc000222838?, {0xc000222710?, 0xc0002ae000?, 0xc0002a8c00?})
        c:/go/src/runtime/syscall_windows.go:557 +0x109 fp=0xc0002226f0 sp=0xc000222678 pc=0x143f29
syscall.Syscall12(0x0?, 0x0?, 0x0?, 0xc0002227e8?, 0x12b8f2?, 0xc000107020?, 0xc000222818?, 0xc0004a0640?, 0xc000222838?, 0xc0004a0550, ...)
        c:/go/src/runtime/syscall_windows.go:513 +0xac fp=0xc000222780 sp=0xc0002226f0 pc=0x143e0c
syscall.CreateProcess(0x48?, 0xc000594000?, 0x2c?, 0x10100000000?, 0x1, 0x80400, 0x122471?, 0x255554aaaa?, 0x0?, 0xc000222908)
        c:/go/src/syscall/zsyscall_windows.go:545 +0x114 fp=0xc000222848 sp=0xc000222780 pc=0x15edf4
syscall.StartProcess({0xc000594000?, 0x10?}, {0xc000274000, 0x18, 0x18}, 0xc0003ce090?)
        c:/go/src/syscall/exec_windows.go:418 +0xc1a fp=0xc000222aa8 sp=0xc000222848 pc=0x1595ba
os.startProcess({0xc000594000, 0x2c}, {0xc000274000, 0x18, 0x18}, 0xc000222ce8)
        c:/go/src/os/exec_posix.go:54 +0x311 fp=0xc000222b88 sp=0xc000222aa8 pc=0x1d2d91
os.StartProcess({0xc000594000, 0x2c}, {0xc000274000, 0x18, 0x18}, 0x127f55d0698?)
        c:/go/src/os/exec.go:109 +0x5a fp=0xc000222bd0 sp=0xc000222b88 pc=0x1d27da
os/exec.(*Cmd).Start(0xc0001c89a0)
        c:/go/src/os/exec/exec.go:693 +0x62e fp=0xc000222d48 sp=0xc000222bd0 pc=0x20986e
os/exec.(*Cmd).Run(0xc00029c000?)
        c:/go/src/os/exec/exec.go:587 +0x1e fp=0xc000222d68 sp=0xc000222d48 pc=0x208f9e
cmd/go/internal/work.(*Builder).runOut(0xa?, 0xc0001f7b80, {0xc00011f7d0, 0x10}, {0x0, 0x0, 0x0?}, {0xc00022c100, 0x10, 0x10})
        c:/go/src/cmd/go/internal/work/exec.go:2269 +0x63d fp=0xc000222f30 sp=0xc000222d68 pc=0x5d87dd
cmd/go/internal/work.gcToolchain.gc({}, 0x12f810?, 0xc0001f7b80, {0xc0004a0000, 0x48}, {0xc000116000, 0x10, 0x40}, {0x0, 0x0, ...}, ...)
        c:/go/src/cmd/go/internal/work/gc.go:220 +0x1905 fp=0xc0002231b8 sp=0xc000222f30 pc=0x5e86c5
cmd/go/internal/work.(*gcToolchain).gc(0xc000325701?, 0xc000325860?, 0xc000325980?, {0xc0004a0000?, 0xc000325bc0?}, {0xc000116000?, 0xc000325e60?, 0xc000325f80?}, {0x0, 0x0, ...}, ...)
        <autogenerated>:1 +0xc8 fp=0xc000223248 sp=0xc0002231b8 pc=0x5fbee8
cmd/go/internal/work.(*Builder).build(0xc0001744d0, {0x839a48?, 0xc00011a010?}, 0xc0001f7b80)
        c:/go/src/cmd/go/internal/work/exec.go:848 +0x2d5f fp=0xc000223d60 sp=0xc000223248 pc=0x5cb75f
cmd/go/internal/work.ActorFunc.Act(0x839a48?, 0xc00011a010?, {0x839a48?, 0xc00011a010?}, 0x1284d3?)
        c:/go/src/cmd/go/internal/work/action.go:76 +0x33 fp=0xc000223d90 sp=0xc000223d60 pc=0x5b7a33
cmd/go/internal/work.(*Builder).Do.func2({0x839a48, 0xc00011a010}, 0xc0001f7b80)
        c:/go/src/cmd/go/internal/work/exec.go:143 +0x7a4 fp=0xc000223f20 sp=0xc000223d90 pc=0x5c66c4
cmd/go/internal/work.(*Builder).Do.func3()
        c:/go/src/cmd/go/internal/work/exec.go:211 +0xb9 fp=0xc000223fe0 sp=0xc000223f20 pc=0x5c5d39
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000223fe8 sp=0xc000223fe0 pc=0x1473a1
created by cmd/go/internal/work.(*Builder).Do
        c:/go/src/cmd/go/internal/work/exec.go:197 +0x3f5

goroutine 40 [syscall, locked to thread]:
runtime.cgocall(0x148d20, 0xb63040)
        c:/go/src/runtime/cgocall.go:157 +0x4a fp=0xc000262678 sp=0xc000262640 pc=0xe4d4a
syscall.SyscallN(0xc000262838?, {0xc000262710?, 0xc0003c0000?, 0xc0003b2c00?})
        c:/go/src/runtime/syscall_windows.go:557 +0x109 fp=0xc0002626f0 sp=0xc000262678 pc=0x143f29
syscall.Syscall12(0x0?, 0x0?, 0x0?, 0xc0002627e8?, 0x12b8f2?, 0xc000107020?, 0xc000262818?, 0xc000120730?, 0xc000262838?, 0xc0001206e0, ...)
        c:/go/src/runtime/syscall_windows.go:513 +0xac fp=0xc000262780 sp=0xc0002626f0 pc=0x143e0c
syscall.CreateProcess(0x48?, 0xc00025a150?, 0x2c?, 0x10100000000?, 0x1, 0x80400, 0x11c3b0?, 0x255554aaaa?, 0x0?, 0xc000262908)
        c:/go/src/syscall/zsyscall_windows.go:545 +0x114 fp=0xc000262848 sp=0xc000262780 pc=0x15edf4
syscall.StartProcess({0xc00025a150?, 0x10?}, {0xc00026c160, 0x16, 0x16}, 0xc000118300?)
        c:/go/src/syscall/exec_windows.go:418 +0xc1a fp=0xc000262aa8 sp=0xc000262848 pc=0x1595ba
os.startProcess({0xb62d80, 0x7a0280}, {0xc000262be0, 0x143c3b, 0x7ff8f22806e0}, 0xc000262bc8)
        c:/go/src/os/exec_posix.go:54 +0x311 fp=0xc000262b88 sp=0xc000262aa8 pc=0x1d2d91
runtime: g 40: unexpected return pc for os.StartProcess called from 0x4d4
stack: frame={sp:0xc000262b88, fp:0xc000262bd0} stack=[0xc000260000,0xc000264000)
0x000000c000262a88:  0x0000000000000558  0x000000c000262ac8
0x000000c000262a98:  0x0000000000121b85 <runtime.reentersyscall+0x0000000000000065>  0x000000c000084340
0x000000c000262aa8:  0x0000000300000002  0x000000c000084340
0x000000c000262ab8:  0x0000000000000000  0x00000000006a0b80
0x000000c000262ac8:  0x000000c000262ae8  0x000000000014195d <runtime.entersyscall+0x000000000000001d>
0x000000c000262ad8:  0x00000000000e4d4a <runtime.cgocall+0x000000000000004a>  0x000000c000262af8
0x000000c000262ae8:  0x000000000014701b <runtime.asmcgocall+0x000000000000003b>  0x00000000000e4da9 <runtime.cgocall+0x00000000000000a9>
0x000000c000262af8:  0x0000000000148d20 <runtime.asmstdcall+0x0000000000000000>  0x0000000000b63040
0x000000c000262b08:  0x0000000000000000  0x000000c000262b60
0x000000c000262b18:  0x0000000000b62d80  0x000000c000262b98
0x000000c000262b28:  0x0000000000143f29 <syscall.SyscallN+0x0000000000000109>  0x0000000000148d20 <runtime.asmstdcall+0x0000000000000000>
0x000000c000262b38:  0x0000000000b63040  0x0000000000000000
0x000000c000262b48:  0x0100000000000018  0x0000000000000000
0x000000c000262b58:  0x0000000000000000  0x0000000000000000
0x000000c000262b68:  0x00000000000004d4  0x00000000ffffffff
0x000000c000262b78:  0x0000000000000000  0x0000000000000000
0x000000c000262b88: <0x0000000000b62d80  0x00000000007a0280
0x000000c000262b98:  0x000000c000262be0  0x0000000000143c3b <syscall.Syscall+0x000000000000003b>
0x000000c000262ba8:  0x00007ff8f22806e0  0x000000c000262bc8
0x000000c000262bb8:  0x0000000000000003  0x0000000000000000
0x000000c000262bc8: !0x00000000000004d4 >0x00000000ffffffff
0x000000c000262bd8:  0x0000000000000000  0x000000c000262c30
0x000000c000262be8:  0x0000000000161d45 <syscall.WaitForSingleObject+0x0000000000000065>  0x0000000000000016
0x000000c000262bf8:  0x00000127f55f8700  0x0000000000000000
0x000000c000262c08:  0x000000c000262c48  0x00010000000f710b
0x000000c000262c18:  0x0000000000000003  0x00000000000004d4
0x000000c000262c28:  0x000000c000107500  0x000000c000262cd0
0x000000c000262c38:  0x00000000001d3125 <os.(*Process).wait+0x0000000000000065>  0x0000000000101dc5 <runtime.(*gcControllerState).trigger+0x0000000000000025>
0x000000c000262c48:  0x00000000ffffffff  0x000000c0003fe2a0
0x000000c000262c58:  0x00000127f55f8700  0x000000c0003fe240
0x000000c000262c68:  0x000000c0000bc1a0  0x000000c0001182e8
0x000000c000262c78:  0x00000000000004d4  0x0000000000000000
0x000000c000262c88:  0x0000000000bb7840  0x000000c0001182e8
0x000000c000262c98:  0x0000000000000000  0x0000000000000000
0x000000c000262ca8:  0x0000000000000000  0x0000000000000900
0x000000c000262cb8:  0x000000000020a040 <os/exec.(*Cmd).Start.func1+0x0000000000000000>  0x0000000000000000
0x000000c000262cc8:  0x0000000000000000
os.StartProcess({0xffffffff, 0x0}, {0xc000262c30, 0x161d45, 0x16}, 0x127f55f8700?)
        c:/go/src/os/exec.go:109 +0x5a fp=0xc000262bd0 sp=0xc000262b88 pc=0x1d27da
created by cmd/go/internal/work.(*Builder).Do
        c:/go/src/cmd/go/internal/work/exec.go:197 +0x3f5

goroutine 41 [sleep]:
runtime.gopark(0x9bdc52e0cc0?, 0xc00005b000?, 0x58?, 0xe2?, 0xc0004b2c18?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc0004b2be8 sp=0xc0004b2bc8 pc=0x11a816
time.Sleep(0x4c4b40)
        c:/go/src/runtime/time.go:195 +0x13a fp=0xc0004b2c28 sp=0xc0004b2be8 pc=0x1440fa
os.(*Process).wait.func1()
        c:/go/src/os/exec_windows.go:43 +0x27 fp=0xc0004b2c40 sp=0xc0004b2c28 pc=0x1dcdc7
runtime: g 41: unexpected return pc for os.(*Process).wait called from 0x42
stack: frame={sp:0xc0004b2c40, fp:0xc0004b2ce0} stack=[0xc0004b0000,0xc0004b4000)
0x000000c0004b2b40:  0x00000000007a0280  0x000000c0004b2bc0
0x000000c0004b2b50:  0xb2f686fab9bc5156  0x00000000001c8aec <internal/poll.(*FD).Pread.func3+0x000000000000002c>
0x000000c0004b2b60:  0x0000000000000003  0x0000000000000000
0x000000c0004b2b70:  0x0000000000000004  0x0000000000000003
0x000000c0004b2b80:  0x000000c000480000  0x0000000000000000
0x000000c0004b2b90:  0x0000000000000002  0x000000c0004b2c50
0x000000c0004b2ba0:  0x0000000000000000  0xffffffffffffffff
0x000000c0004b2bb0:  0x000000c000480000  0x00000000007a0280
0x000000c0004b2bc0:  0x0000000000000534  0x000000c0001066c0
0x000000c0004b2bd0:  0x000000c0004b2be8  0x000000000015b1b9 <syscall.Close+0x0000000000000019>
0x000000c0004b2be0:  0x000000c0001073b0  0x000000c0004b2c00
0x000000c0004b2bf0:  0x000000000015b986 <syscall.UtimesNano.func1+0x0000000000000026>  0x0000000000000000
0x000000c0004b2c00:  0x000000c0004b2c78  0x000000000015b897 <syscall.UtimesNano+0x0000000000000197>
0x000000c0004b2c10:  0x000000c000102de0  0x0000000200000100
0x000000c0004b2c20:  0x00000000007341d5  0x0200000000000003
0x000000c0004b2c30:  0x0000000000000000  0x0000000000000534
0x000000c0004b2c40: <0x01d9d0e145cc797a  0x01d9d0e145cc797a
0x000000c0004b2c50:  0x000000000015b960 <syscall.UtimesNano.func1+0x0000000000000000>  0x0000000000000534
0x000000c0004b2c60:  0x0000000000000000  0x0000000000000000
0x000000c0004b2c70:  0x000000c0004b2c50  0x000000c0004b2d18
0x000000c0004b2c80:  0x00000000001d6877 <os.Chtimes+0x0000000000000197>  0x000000c000102de0
0x000000c0004b2c90:  0x000000c0004b2cd8  0x000000c0004b2cb8
0x000000c0004b2ca0:  0x00000000001c7bc7 <internal/poll.(*FD).Close+0x0000000000000087>  0x0000000000000000
0x000000c0004b2cb0:  0x0000000000000000  0x0000000064ddd442
0x000000c0004b2cc0:  0x0000000008455fa8  0x0000000064ddd442
0x000000c0004b2cd0:  0x0000000008455fa8 !0x00000000006a0b80
0x000000c0004b2ce0: >0x000000c000102de0  0xc12f92f088455fa8
0x000000c0004b2cf0:  0x00000000370f049d  0x0000000000b61600
0x000000c0004b2d00:  0xc12f92f088455fa8  0x00000000370f049d
0x000000c0004b2d10:  0x0000000000b61600  0x000000c0004b2f30
0x000000c0004b2d20:  0x00000000004d2a7e <cmd/go/internal/cache.(*Cache).putIndexEntry+0x000000000000049e>  0x000000c000102de0
0x000000c0004b2d30:  0x0000000000000056  0x00000000000000af
0x000000c0004b2d40:  0xf1c109b79008e058  0x0000000000000000
0x000000c0004b2d50:  0x000000c0004b2d98  0x0000000000122471 <runtime.exitsyscallfast+0x0000000000000051>
0x000000c0004b2d60:  0x0000000000b61600  0x000000c000102d80
0x000000c0004b2d70:  0x000000c000084820  0x0000000000000001
0x000000c0004b2d80:  0x000000c0004b2db8  0x0000000000121b85 <runtime.reentersyscall+0x0000000000000065>
0x000000c0004b2d90:  0x000000c000084820  0x000000c0004b2dd8
0x000000c0004b2da0:  0x0000000000141ac5 <runtime.exitsyscall+0x0000000000000145>  0x000000c000084820
0x000000c0004b2db0:  0x0000000200000003  0x000000c000084820
0x000000c0004b2dc0:  0x000000c000036500  0x00000000000e4d4a <runtime.cgocall+0x000000000000004a>
0x000000c0004b2dd0:  0x000000c0004b2de8  0x000000c0004b2e10
os.(*Process).wait(0xc000102de0)
        c:/go/src/os/exec_windows.go:45 +0x38c fp=0xc0004b2ce0 sp=0xc0004b2c40 pc=0x1d344c
created by cmd/go/internal/work.(*Builder).Do
        c:/go/src/cmd/go/internal/work/exec.go:197 +0x3f5

goroutine 42 [syscall, locked to thread]:
runtime.cgocall(0x148d20, 0xc0000802c0)
        c:/go/src/runtime/cgocall.go:157 +0x4a fp=0xc0003ac678 sp=0xc0003ac640 pc=0xe4d4a
syscall.SyscallN(0xc0003ac838?, {0xc0003ac710?, 0xc0002b1000?, 0xc0002aa400?})
        c:/go/src/runtime/syscall_windows.go:557 +0x109 fp=0xc0003ac6f0 sp=0xc0003ac678 pc=0x143f29
syscall.Syscall12(0x0?, 0x0?, 0x0?, 0xc0003ac7e8?, 0x12b8f2?, 0xc000107020?, 0xc0003ac818?, 0xc0004a10e0?, 0xc0003ac838?, 0xc0004a1090, ...)
        c:/go/src/runtime/syscall_windows.go:513 +0xac fp=0xc0003ac780 sp=0xc0003ac6f0 pc=0x143e0c
syscall.CreateProcess(0x48?, 0xc000594840?, 0x2c?, 0x10100000000?, 0x1, 0x80400, 0x3?, 0x255554aaaa?, 0x50?, 0xc0003ac908)
        c:/go/src/syscall/zsyscall_windows.go:545 +0x114 fp=0xc0003ac848 sp=0xc0003ac780 pc=0x15edf4
syscall.StartProcess({0xc000594840?, 0x10?}, {0xc000316000, 0x14, 0x14}, 0xc0003ce2a0?)
        c:/go/src/syscall/exec_windows.go:418 +0xc1a fp=0xc0003acaa8 sp=0xc0003ac848 pc=0x1595ba
os.startProcess({0xc000594840, 0x2c}, {0xc000316000, 0x14, 0x14}, 0xc0003acce8)
        c:/go/src/os/exec_posix.go:54 +0x311 fp=0xc0003acb88 sp=0xc0003acaa8 pc=0x1d2d91
os.StartProcess({0xc000594840, 0x2c}, {0xc000316000, 0x14, 0x14}, 0xc00054c660?)
        c:/go/src/os/exec.go:109 +0x5a fp=0xc0003acbd0 sp=0xc0003acb88 pc=0x1d27da
os/exec.(*Cmd).Start(0xc0001c8dc0)
        c:/go/src/os/exec/exec.go:693 +0x62e fp=0xc0003acd48 sp=0xc0003acbd0 pc=0x20986e
os/exec.(*Cmd).Run(0xc00029cd80?)
        c:/go/src/os/exec/exec.go:587 +0x1e fp=0xc0003acd68 sp=0xc0003acd48 pc=0x208f9e
cmd/go/internal/work.(*Builder).runOut(0x7?, 0xc0001c82c0, {0xc00011f7d0, 0x10}, {0x0, 0x0, 0x6a1f00?}, {0xc00022c500, 0xd, 0x10})
        c:/go/src/cmd/go/internal/work/exec.go:2269 +0x63d fp=0xc0003acf30 sp=0xc0003acd68 pc=0x5d87dd
cmd/go/internal/work.gcToolchain.gc({}, 0x12f810?, 0xc0001c82c0, {0xc0004a0b40, 0x48}, {0xc000338a00, 0x75, 0x80}, {0x0, 0x0, ...}, ...)
        c:/go/src/cmd/go/internal/work/gc.go:220 +0x1905 fp=0xc0003ad1b8 sp=0xc0003acf30 pc=0x5e86c5
cmd/go/internal/work.(*gcToolchain).gc(0x1?, 0x0?, 0x0?, {0xc0004a0b40?, 0x0?}, {0xc000338a00?, 0x0?, 0x0?}, {0x0, 0x0, ...}, ...)
        <autogenerated>:1 +0xc8 fp=0xc0003ad248 sp=0xc0003ad1b8 pc=0x5fbee8
cmd/go/internal/work.(*Builder).build(0xc0001744d0, {0x839a48?, 0xc00011a010?}, 0xc0001c82c0)
        c:/go/src/cmd/go/internal/work/exec.go:848 +0x2d5f fp=0xc0003add60 sp=0xc0003ad248 pc=0x5cb75f
cmd/go/internal/work.ActorFunc.Act(0x839a48?, 0xc00011a010?, {0x839a48?, 0xc00011a010?}, 0x1284d3?)
        c:/go/src/cmd/go/internal/work/action.go:76 +0x33 fp=0xc0003add90 sp=0xc0003add60 pc=0x5b7a33
cmd/go/internal/work.(*Builder).Do.func2({0x839a48, 0xc00011a010}, 0xc0001c82c0)
        c:/go/src/cmd/go/internal/work/exec.go:143 +0x7a4 fp=0xc0003adf20 sp=0xc0003add90 pc=0x5c66c4
cmd/go/internal/work.(*Builder).Do.func3()
        c:/go/src/cmd/go/internal/work/exec.go:211 +0xb9 fp=0xc0003adfe0 sp=0xc0003adf20 pc=0x5c5d39
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0003adfe8 sp=0xc0003adfe0 pc=0x1473a1
created by cmd/go/internal/work.(*Builder).Do
        c:/go/src/cmd/go/internal/work/exec.go:197 +0x3f5

goroutine 43 [select]:
runtime.gopark(0xc000227fa8?, 0x2?, 0x6?, 0x0?, 0xc000227f5c?)
        c:/go/src/runtime/proc.go:381 +0xd6 fp=0xc000227de0 sp=0xc000227dc0 pc=0x11a816
runtime.selectgo(0xc000227fa8, 0xc000227f58, 0xc0001f7760?, 0x0, 0x0?, 0x1)
        c:/go/src/runtime/select.go:327 +0x7be fp=0xc000227f20 sp=0xc000227de0 pc=0x128dde
cmd/go/internal/work.(*Builder).Do.func3()
        c:/go/src/cmd/go/internal/work/exec.go:201 +0x119 fp=0xc000227fe0 sp=0xc000227f20 pc=0x5c5d99
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000227fe8 sp=0xc000227fe0 pc=0x1473a1
created by cmd/go/internal/work.(*Builder).Do
        c:/go/src/cmd/go/internal/work/exec.go:197 +0x3f5

goroutine 21 [syscall, locked to thread]:
runtime.cgocall(0x148d20, 0xc0004802c0)
        c:/go/src/runtime/cgocall.go:157 +0x4a fp=0xc000215b78 sp=0xc000215b40 pc=0xe4d4a
syscall.SyscallN(0x0?, {0xc000215c10?, 0x6d?, 0x0?})
        c:/go/src/runtime/syscall_windows.go:557 +0x109 fp=0xc000215bf0 sp=0xc000215b78 pc=0x143f29
syscall.Syscall6(0x0?, 0xc000215ca0?, 0x122471?, 0x4f8?, 0xc000568000?, 0xc000051d40?, 0xc000215d54?, 0xc000215cc0?)
        c:/go/src/runtime/syscall_windows.go:501 +0x50 fp=0xc000215c50 sp=0xc000215bf0 pc=0x143cb0
syscall.readFile(0x127f55cdf38?, {0xc000200e00?, 0x200, 0xc000480000?}, 0xc000200e00?, 0x800000?)
        c:/go/src/syscall/zsyscall_windows.go:1024 +0x94 fp=0xc000215cc8 sp=0xc000215c50 pc=0x161194
syscall.ReadFile(...)
        c:/go/src/syscall/syscall_windows.go:404
syscall.Read(0xc0000d9180?, {0xc000200e00?, 0x0?, 0x200?})
        c:/go/src/syscall/syscall_windows.go:383 +0x33 fp=0xc000215d20 sp=0xc000215cc8 pc=0x15ae33
internal/poll.(*FD).Read(0xc0000d9180, {0xc000200e00, 0x200, 0x200})
        c:/go/src/internal/poll/fd_windows.go:422 +0x1c5 fp=0xc000215dc8 sp=0xc000215d20 pc=0x1c7e05
os.(*File).read(...)
        c:/go/src/os/file_posix.go:31
os.(*File).Read(0xc0005440f8, {0xc000200e00?, 0xc000215e68?, 0xc000215e68?})
        c:/go/src/os/file.go:118 +0x5e fp=0xc000215e20 sp=0xc000215dc8 pc=0x1d425e
bytes.(*Buffer).ReadFrom(0xc000490420, {0x835580, 0xc0005440f8})
        c:/go/src/bytes/buffer.go:202 +0x98 fp=0xc000215e78 sp=0xc000215e20 pc=0x1fd1b8
io.copyBuffer({0x834520, 0xc000490420}, {0x835580, 0xc0005440f8}, {0x0, 0x0, 0x0})
        c:/go/src/io/io.go:413 +0x14b fp=0xc000215ef8 sp=0xc000215e78 pc=0x1be4cb
io.Copy(...)
        c:/go/src/io/io.go:386
os/exec.(*Cmd).writerDescriptor.func1()
        c:/go/src/os/exec/exec.go:560 +0x3a fp=0xc000215f58 sp=0xc000215ef8 pc=0x208f3a
os/exec.(*Cmd).Start.func2(0x0?)
        c:/go/src/os/exec/exec.go:717 +0x32 fp=0xc000215fc8 sp=0xc000215f58 pc=0x209f72
os/exec.(*Cmd).Start.func3()
        c:/go/src/os/exec/exec.go:729 +0x2a fp=0xc000215fe0 sp=0xc000215fc8 pc=0x209f0a
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000215fe8 sp=0xc000215fe0 pc=0x1473a1
created by os/exec.(*Cmd).Start
        c:/go/src/os/exec/exec.go:716 +0xab3
rax     0xb3f
rbx     0x127f4ff98e0
rcx     0x127f5cdab30
rdi     0x1
rsi     0xb30
rbp     0x2b36fe179
rsp     0x2b36fe0c8
r8      0xf
r9      0x1
r10     0x0
r11     0x0
r12     0x127f49a4a70
r13     0x127f5cda000
r14     0x127f4ff98b0
r15     0x1aa00
rip     0x7ff8f3451bf0
rflags  0x10203
cs      0x33
fs      0x53
gs      0x2b

@jay4195
Copy link
Author

jay4195 commented Aug 17, 2023

@Nasfame This time I got stuck and the stack trace like this.
stack.txt

@jay4195
Copy link
Author

jay4195 commented Aug 17, 2023

@Nasfame Yes, I can run go tool compile hello.go with no import in file.

@jay4195
Copy link
Author

jay4195 commented Aug 24, 2023

@Nasfame I call IT support to remove the Symantec Endpoint Protection from my laptop, the issue disappeared. I reckoned that golang has conflict with the Symantec Endpoint Protection.

@seankhliao
Copy link
Member

closing as I don't think there's anything the go project can reasonably do.

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in Go Compiler / Runtime Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Windows
Projects
None yet
Development

No branches or pull requests

9 participants