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: Applications will not launch in Windows 7 #64622

Closed
mmixon808 opened this issue Dec 8, 2023 · 6 comments
Closed

runtime: Applications will not launch in Windows 7 #64622

mmixon808 opened this issue Dec 8, 2023 · 6 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.

Comments

@mmixon808
Copy link

Go version

1.21.5

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

Windows 7 amd64

What did you do?

I realize that Windows 7 is no longer an officially supported OS. But I thought I would bring this up just in case there was something else at play, or if something could be done to restore the functioning of Go applications for Windows 7. Previously we have had no issues running under Go 1.21.4. But under Go 1.21.5, even a simple Hello World application is unable to launch. Again, I acknowledge that Win7 isn't supported currently, but if anyone did want to look further into this, it would be greatly appreciated, since these applications did work under 1.21.4.

For example:

package main

import "log"

func main() {
	log.Printf("Hello World!")
}

What did you expect to see?

Hello World printed to the console.

What did you see instead?

The application fails to start and the following is printed out.

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

runtime.asmstdcall()
/usr/local/go/src/runtime/sys_windows_amd64.s:65 +0x75 fp=0x22fca0 sp=0x
22fc80 pc=0x468c95
rax 0x0
rbx 0x8f52c0
rcx 0x9493a0
rdi 0x7fffffde000
rsi 0x22fea0
rbp 0x22fde0
rsp 0x22fc78
r8 0x0
r9 0x22fee0
r10 0x91ae58
r11 0x21
r12 0x22fec0
r13 0x1
r14 0x8f4a20
r15 0x0
rip 0x0
rflags 0x10293
cs 0x33
fs 0x53
gs 0x2b

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Dec 8, 2023
@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 8, 2023
@dmitshur
Copy link
Contributor

dmitshur commented Dec 8, 2023

(Adding a bit more detail that I started writing.)

As you're already aware, Go 1.21 requires Windows 10 or newer. The fix for #64413 which landed in Go 1.21.5 uses APIs that aren't available in Windows 7, so this is expected. It's possible to still use Go 1.20.12 which supports Windows 7.

@mmixon808
Copy link
Author

Got it. Thanks for adding a bit more color there. I had looked at that particular commit and had a suspicion that might be the cause. But I wasn't totally sure, so I thought I would at least mention it, just on the off chance that something else had inadvertently caused this behavior.

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
@NERO-Tsui
Copy link

Bad news for our 7 users..

@Darthagnon
Copy link

Darthagnon commented Jun 12, 2024

See also Betula RSS/link server; Betula v1.2.0 is built with Go v1.19, the next release v1.3.0 bumps it to Go v1.22

@Darthagnon
Copy link

@golang golang locked as resolved and limited conversation to collaborators Jun 16, 2024
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.
Projects
None yet
Development

No branches or pull requests

6 participants