-
Notifications
You must be signed in to change notification settings - Fork 17.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/link/internal/ld: TestRuntimeTypeAttrInternal flaky on Windows #34774
Comments
Is this a flaky, or repeated? Judging from it's infrequency occurrence, it looks a flaky?? I can't see any new reason for this test to fail. |
Yes, it appears to be a flake, but it's happened enough times that it seems unlikely to be a hardware issue (cosmic ray or thermal jitter). It's not obvious to me whether it's a bug in the test, a bug |
Looking at testRuntimeTypeAttr source, I notice that you open file f := gobuild(t, dir, prog, flags) and then execute the file ... exec.Command(f.path).CombinedOutput() I am surprised that Windows allows you to execute opened file. Perhaps unrelated, but I also noticed that file f is never closed. Why? Alex |
Hello, I can reproduce this issue every time on windows 11. Go is 1.20.6 Folder structurecmd/main.go Bug example main.go:
CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher Working example main.go:
Thanks. |
@neurlang, thanks, that's a good lead but I think we need more details to be able to reproduce. Specifically:
|
What version on Windows 11 are you using? Windows 11 Pro, 22H2 , build 22621.2134 Please post the output of go env so that we can check architecture details (amd64 vs. arm64, architecture settings, GOFLAGS, etc.) all flags are default, cpu is amd64 GOROOT=C:\Users\me\sdk\go1.20.6 #gosetup If you have a C toolchain installed, what version is it? (Please post the output of gcc --version or similar, and ideally a link to the toolchain provider's download page.) no gcc |
that project didnt use gcc, its empty program. Here is go env $ ./go.exe env |
And what was the exact command you used to build the Go program? (If you built it using an IDE, please reproduce the failure on the command line so that we can be sure of what flags are passed to the |
now tested, can only reproduce it in the goland IDE. On the console, I haven't been able to reproduce it. |
Maybe there is some way the IDE can tell you what commands and/or environment it is invoking? |
Can replicate this from the command line with |
Seen on the
windows-amd64-2016
builder in https://storage.googleapis.com/go-build-log/4a655811/windows-amd64-2016_5d978c1a.log:CC @cherrymui @jeremyfaller
The text was updated successfully, but these errors were encountered: