golang竞赛探测器正在崩溃/未运行。错误输出是:
$ go test -race
# testmain
runtime.RaceErrors: relocation target __tsan_report_count not defined
runtime.RaceErrors: undefined: "__tsan_report_count"
FAIL raft/vendor/raft/connectionManager [build failed]
go是从Ubuntu存储库新安装的1.8。 从apt。
重新安装了比赛运行时go env:
GOARCH="amd64"
GOBIN="~/Source/Go--Dev/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="~/Source/Go--Dev"
GORACE=""
GOROOT="/usr/lib/go-1.8"
GOTOOLDIR="/usr/lib/go-1.8/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build905991578=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
提前谢谢!