-
Notifications
You must be signed in to change notification settings - Fork 530
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
Go 1.3 and 1.4 test with race raise an exceptions #68
Comments
Doesn't it normally work without the race option without glibc? I can imagine race might use non-standard features of libc that are not in On Wed, Sep 9, 2015 at 2:54 AM, Michael Nikitochkin <
Jeff Lindsay |
It looks like at the very least Have you checked out the How do I use the musl-gcc wrapper? section at http://www.musl-libc.org/faq.html? It explains a little bit about the issue. Is there a way to recompile the Golang runtime/race detector against musl maybe? I don't know enough about Golang and how it uses a toolchain, c++, and gcc to really dig into this. |
@progrium @andyshinn Thanks for clarification. I will try to use Go 1.5.1, so it should not depends on libc. Do you have build for this version? |
Go 1.5 is in |
Ok. Found golang/go#12122. For go15 the race still use libc :( |
some logs from me:
|
Thanks for linking up the Golang issue for others to find. Indeed, it looks like this won't work until Golang fixes up the race detector to support other libc or is rewritten in pure Golang. |
From the alpine dockerfile, I can see that you compile go from the source. Could you take it in account? |
See golang/go#14481 -- Go upstream does not support the race detector on Alpine Linux yet. |
Tested in Alpine 3.2(go 1.4) and 3.1(go 1.3)
When tried to run tests with
-race
. I got next exception:Tried to use https://github.com/andyshinn/alpine-pkg-glibc also.
But it works without
-race
option:go test -v ./...
Created simple example to reproduce issue: https://gist.github.com/miry/fece267c7faba904c360
The text was updated successfully, but these errors were encountered: