Skip to content

os/exec: TestStdinCloseRace fails #18286

@alexbrainman

Description

@alexbrainman

Please answer these questions before submitting your issue. Thanks!

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

go version devel +cbcc1db Sun Dec 11 21:59:59 2016 +0000 windows/amd64

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

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

What did you do?

go test -short os/exec

What did you expect to see?

test pass

What did you see instead?

--- FAIL: TestStdinCloseRace (0.02s)
exec_test.go:271: Wait: succeeded unexpectedly
FAIL
exit status 1
FAIL os/exec 2.645s

This only happens occasionally. But easy enough to reproduce. I do not understand why Wait should not succeed, so suggestions on how to debug this are welcome. Thank you.

Alex

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions