Skip to content

x/sys/windows: GetCurrentProcessToken() not working on Windows 7 SP1 #56946

@kmahyyg

Description

@kmahyyg

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

$ go version
go version go1.19.3 windows/amd64

Does this issue reproduce with the latest release?

Yes, I'm currently running latest release.

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

go env Output
$ go env
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOARCH=amd64
set GOVERSION=go1.19.3
set GCCGO=gccgo
set GOAMD64=v1
set GOOS=windows

What did you do?

Under Windows 10 Build 19044, CGO disabled, compile a program, code here: https://go.dev/play/p/LjfMdT6mTHZ

What did you expect to see?

Run on Windows 10 (which I compiled the binary): working as intended
Run on Windows 7 SP1 (Build 7601): working as intended

What did you see instead?

Run on Windows 10 (which I compiled the binary): working as intended
Run on Windows 7 SP1 (Build 7601, Version 6.1.7601): Error message: The handle is invalid.

I confirmed that I've closed all the antivirus which might affect the program running, to reproduce the bug, use "-fakeToken=true" as cmdline param.

20221126-214231-Jump Desktop-000727

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Windowscompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions