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: windows 10 amd64 1.22.0 goroutine output "exit status 0x40010004" #69014

Closed
caisi35 opened this issue Aug 22, 2024 · 2 comments
Closed
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.

Comments

@caisi35
Copy link

caisi35 commented Aug 22, 2024

Go version

go 1.22.0

Output of go env in your module/workspace:

set GO111MODULE=
set GOARCH=amd64
set GOBIN=      
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=*.corp.example.com
set GONOSUMDB=*.corp.example.com
set GOOS=windows
set GOPRIVATE=*.corp.example.com
set GOPROXY=https://goproxy.io,direct
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOVCS=
set GOVERSION=go1.22.0
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOWORK=
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

What did you do?

package main

import (
	"fmt"
	"time"
)

func main() {

	done := make(chan error, 1)
	go func() {
		time.Sleep(time.Second * 6)
		done <- fmt.Errorf("go err")
	}()
	select {
	case err := <-done:
		fmt.Println("error", err)
	case <-time.After(5 * time.Second):
		fmt.Println("timeout")
	}
	fmt.Println("end")
}

go run main.go

What did you see happen?

output:
exit status 0x40010004

What did you expect to see?

output:
timeout
end

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Aug 22, 2024
@seankhliao
Copy link
Member

I think it's something in your environment killing the processes, not something the Go project can help with.

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.
Projects
None yet
Development

No branches or pull requests

4 participants