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

x/sys/windows: Windows Service does not stop #24775

Open
azretkenzhaliev opened this issue Apr 9, 2018 · 2 comments
Open

x/sys/windows: Windows Service does not stop #24775

azretkenzhaliev opened this issue Apr 9, 2018 · 2 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Windows
Milestone

Comments

@azretkenzhaliev
Copy link

Please answer these questions before submitting your issue. Thanks!

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

go version go1.10.1 windows/amd64

Does this issue reproduce with the latest release?

Yes

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

set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\azret\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\azret\go
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\azret\AppData\Local\Temp\go-build856806762=/tmp/go-build -gno-record-gcc-switches

What did you do?

https://github.com/golang/sys/blob/master/windows/svc/example/service.go in Line 42 I fixed a bug - the service is not stopping but just exits from the loop.

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

What did you expect to see?

I expected the Windows Service to stop.

What did you see instead?

It did not stop and even did not stop when I tried to force stop it from Service Management Tool.

@gopherbot gopherbot added this to the Unreleased milestone Apr 9, 2018
@tklauser tklauser added OS-Windows NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Apr 9, 2018
@tklauser tklauser changed the title x/sys: Windows Service does not stop x/sys/windows: Windows Service does not stop Apr 9, 2018
@tklauser
Copy link
Member

tklauser commented Apr 9, 2018

/cc @alexbrainman

@alexbrainman
Copy link
Member

@azretkenzhaliev I have no problem starting or stopping golang.org/x/sys/windows/svc/example service program. What Windows version do you use? What are the steps for me to try to reproduce the problem? What exactly do you do? What exactly do you do?

Thank you.

Alex

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jul 7, 2022
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. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Windows
Projects
Status: Triage Backlog
Development

No branches or pull requests

4 participants