Skip to content

”go build -race ./...“ Causing the program to not run correctly #63720

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

Closed
buguang01 opened this issue Oct 25, 2023 · 7 comments
Closed

”go build -race ./...“ Causing the program to not run correctly #63720

buguang01 opened this issue Oct 25, 2023 · 7 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge OS-Windows RaceDetector WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@buguang01
Copy link

buguang01 commented Oct 25, 2023

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

$ go version 1.21.3

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
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\xiachongshang\AppData\Local\go-build
set GOENV=C:\Users\xiachongshang\AppData\Roaming\go\env  
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=E:\gopath\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=E:\gopath
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.21.3
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set GOWORK=E:\goworks\gobige-demo\go.work
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 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\xiachongshang\AppData\Local\Temp\go-build912284024=/tmp/go-build -gno-record-gcc-switches

What did you do?

package main

import "fmt"

func main() {
fmt.Println("abc")
}

directory structure
-gatetest
-- Lobby
---main.go
--go.mod

cmd:
go build -race ./...
.\Lobby.exe

What did you expect to see?

See output:
abc

What did you see instead?

nothing in the world.

@bcmills bcmills added OS-Windows compiler/runtime Issues related to the Go compiler and/or runtime. RaceDetector labels Oct 25, 2023
@seankhliao
Copy link
Member

did you not get a executable or not get any output from the executable (and did it exit)?

@dr2chase
Copy link
Contributor

Could not reproduce on Darwin.
Could not reproduce on a teetering stack of virtualization with windows-amd64 Go and gcc perched on top.
I think we need more information.

@dr2chase dr2chase added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Oct 26, 2023
@buguang01
Copy link
Author

buguang01 commented Oct 27, 2023

Could not reproduce on Darwin. Could not reproduce on a teetering stack of virtualization with windows-amd64 Go and gcc perched on top. I think we need more information.

code:
gatewtest.zip
cmd:
微信截图_20231027145542
systeminfo:
cpu

@buguang01
Copy link
Author

@dr2chase

@buguang01
Copy link
Author

@seankhliao seankhliao added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Dec 8, 2023
@buguang01
Copy link
Author

@seankhliao What information is missing?

@seankhliao seankhliao added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Jan 28, 2024
@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

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 OS-Windows RaceDetector WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants