New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: running test with -race flag panics for 1.10beta #23050
Comments
Is there a way that we can recreate the problem ourselves? Does it make any difference if you set the environment variable |
Ah yes, setting Yes, you can easily reproduce it with the code I pasted above. Just save it to a file and run it with Here are the steps to install libzmq-
Then do a |
In general it's not a good idea to use the returned value from the failed function. In addition testing.Error is equivalent to testing.Log followed by testing.Fail; it continues the execution of test function; s/t.Error/t.Fatal/g fixes the bugs in your code. Next time please take a look at https://github.com/golang/go/wiki/Questions and ask your question at more appropriate forums. |
Yes, the panic fixes. But the error is still there.
It seems clear to me that the issue is related to setting GOCACHE with the |
Please file a new issue that focuses on the root cause of |
Done - #23057. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.10beta1
Does this issue reproduce with the latest release?
It passes when I run with tip.
What operating system and processor architecture are you using (
go env
)?What did you do?
I took the 1.10 beta release out for a spin. Found that my unit tests are failing when I run with the
-race
flag.Here is a sample code -
What did you expect to see?
The test to pass with both
go test
andgo test -race
commands.What did you see instead?
Failure in
go test -race
It works fine with 1.9.2 and with the tip. So, maybe this issue can be closed. However, just wanted to bring this to notice in case there is something that I have missed.
The error mentions a zmq version mismatch -
zmq4 was installed with ZeroMQ version 4.2.1, but the application links with version 4.2.2
.So, just to be sure, I uninstalled and reinstalled my zmq library. And then uninstalled and reinstalled the zmq package. But still results are the same.
The text was updated successfully, but these errors were encountered: