You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
Yes: 1.9.1
What operating system and processor architecture are you using (go env)?
Windows Server 2012, version 6.2, Build 9200
This is a guest OS under VMware virtualization, vSockets (dgram & stream) installed (checked via https://play.golang.org/p/5HEevQM2cL)
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=D:\proj\_nda_\_nda_
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
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
What did you do?
the main function starts an one goroutine for logging (implemented via channels) and then does db.Ping() on the postgresql's connection. Then the other code runs.
What did you expect to see?
Something like that:
before pinging Connecting to db ...
After Connected
Also I saw suggestions from #22149 . I updated Go, but it did not help.
The code runs well, but sometimes it crashes whenever it wants.
Running under admin rights does not help too.
The text was updated successfully, but these errors were encountered:
ianlancetaylor
changed the title
fatal error: all goroutines are asleep - deadlock!
runtime: fatal error: all goroutines are asleep - deadlock!
Oct 24, 2017
@ianlancetaylor I will prepare an example.
I understand your point. I checked code a lot of times. It can run successfully 20 times in a row, it can fail 10 times in a row, it can run successfully for a one week. The installation is deployed on a private network and all the devop tasks are controlled.
What version of Go are you using (
go version
)?go version go1.9.2rc2 windows/amd64
Does this issue reproduce with the latest release?
Yes:
1.9.1
What operating system and processor architecture are you using (
go env
)?Windows Server 2012, version 6.2, Build 9200
This is a guest OS under VMware virtualization, vSockets (dgram & stream) installed (checked via https://play.golang.org/p/5HEevQM2cL)
What did you do?
the main function starts an one goroutine for logging (implemented via channels) and then does
db.Ping()
on the postgresql's connection. Then the other code runs.What did you expect to see?
Something like that:
before pinging
Connecting to db ...
After
Connected
What did you see instead?
Also I saw suggestions from #22149 . I updated Go, but it did not help.
The code runs well, but sometimes it crashes whenever it wants.
Running under admin rights does not help too.
The text was updated successfully, but these errors were encountered: