Skip to content

Cannot run go programs built with 1.21.5 on Windows Server anymore #64602

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
againstream opened this issue Dec 7, 2023 · 3 comments
Closed

Comments

@againstream
Copy link

Go version

1.21.5

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

Windows Server 2008 R2

What did you do?

I built the simplest program possible (just a Println in the main func) with the new 1.21.5 release of go and tried to run the binary on different Windows Server 2008 machines.
I then installed go 1.21.4 and built the program with that version and see no errors.

What did you expect to see?

I expected to see the print on the terminal

What did you see instead?

for x64 build:

Exception 0xc0000005 0x8 0x0 0x0
PC=0x0

runtime.asmstdcall()
        C:/Program Files/Go/src/runtime/sys_windows_amd64.s:65 +0x75 fp=0x22fca0 sp=0x22fc80 pc=0x45e495
rax     0x0
rbx     0x530da0
rcx     0x583860
rdi     0x7fffffde000
rsi     0x22fea0
rbp     0x22fde0
rsp     0x22fc78
r8      0x0
r9      0x22fee0
r10     0x5556d8
r11     0x21
r12     0x22fec0
r13     0x1
r14     0x530740
r15     0x0
rip     0x0
rflags  0x10293
cs      0x33
fs      0x53
gs      0x2b

for x86 build:

Exception 0xc0000005 0x8 0x0 0x0
PC=0x0

runtime.asmstdcall()
        C:/Program Files/Go/src/runtime/sys_windows_386.s:35 +0x25 fp=0x18fe68 s
p=0x18fe64 pc=0x464065
eax     0x8
ebx     0x596e0c
ecx     0x0
edx     0x18fe90
edi     0x18fe6c
esi     0x18fec4
ebp     0x18fe6c
esp     0x18fe60
eip     0x0
eflags  0x10202
cs      0x23
fs      0x53
gs      0x2b
@againstream againstream changed the title Cannot run go program built with 1.21.5 on Windows Server anymore Cannot run go programs built with 1.21.5 on Windows Server anymore Dec 7, 2023
@gophun
Copy link

gophun commented Dec 7, 2023

Go 1.20 was the last release supporting Windows 2008: https://go.dev/doc/go1.20#windows

The fact that your program built with 1.21.4 was running without problems may have been luck.

@seankhliao
Copy link
Member

Closing as an unsupported platform.

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
@againstream
Copy link
Author

Go 1.20 was the last release supporting Windows 2008: https://go.dev/doc/go1.20#windows
The fact that your program built with 1.21.4 was running without problems may have been luck.

thank you, I totally missed this

AZ-X added a commit to AZ-X/pique that referenced this issue Dec 18, 2023
AZ-X added a commit to AZ-X/pique that referenced this issue Dec 18, 2023
AZ-X added a commit to AZ-X/pique that referenced this issue Dec 19, 2023
@golang golang locked and limited conversation to collaborators Dec 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants