cmd/vet: new(sync.Once) copies lock value: sync.Once contains sync.Mutex #14994
Labels
Milestone
Comments
This was referenced Mar 28, 2016
Should be fixed by the CL https://golang.org/cl/21222 |
CL https://golang.org/cl/21222 mentions this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
go version
)?go version devel +ad391c9 Sat Mar 26 12:12:04 2016 +0000 linux/amd64
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/travis/gopath"
GORACE=""
GOROOT="/home/travis/.gimme/versions/go"
GOTOOLDIR="/home/travis/.gimme/versions/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build398857422=/tmp/go-build"
CXX="g++"
CGO_ENABLED="0"
Ran CI tests on Go tip. Tests now fail on code that hasn't changed recently and still passes on Go 1.6. For example: https://travis-ci.org/mholt/caddy/builds/118687079
No errors
Relevant lines of code are:
Is new() really a function call that is copying a lock value?
The text was updated successfully, but these errors were encountered: