golang / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
9.3k stars 611 forks source link

Segmentation fault errors when running mockgen #159

Closed SongyanHou closed 6 years ago

SongyanHou commented 6 years ago

go version

songyanh-C02R52QLG8WM:multipass songyanh$ go version
go version go1.10 darwin/amd64

go env

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/songyanhou/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/songyanhou/gocode"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.10/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.10/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/dm/mw7hjyv17pv87b8pdxj7qr940000gn/T/go-build023560559=/tmp/go-build -gno-record-gcc-switches -fno-common"

Error messages:

# command-line-arguments
/usr/local/Cellar/go/1.10/libexec/pkg/tool/darwin_amd64/link: /usr/local/Cellar/go/1.10/libexec/pkg/tool/darwin_amd64/link: running dsymutil failed: signal: segmentation fault
balshetzer commented 6 years ago

It looks like the go linker tool segfaulted. I suspect that this is not related to gomock. If you do think this is related to gomock, please re-open and include an input and command line for mockgen that reproduces the error. Thanks!