You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I've used the newly created image to replace the golang:1.5.3 image and I've ran the above command again.
The outcome was that the binary now compiles again however there's a new error at runtime:
# runtime/race
race_linux_amd64.syso: In function `__sanitizer::InternalAlloc(unsigned long, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<0ul, 140737488355328ull, 0ul, __sanitizer::SizeClassMap<17ul, 64ul, 14ul>, 20ul, __sanitizer::TwoLevelByteMap<32768ull, 4096ull, __sanitizer::NoOpMapUnmapCallback>, __sanitizer::NoOpMapUnmapCallback> >*)':
gotsan.cc:(.text+0x1681): undefined reference to `__libc_malloc'
race_linux_amd64.syso: In function `__sanitizer::ReExec()':
gotsan.cc:(.text+0xd937): undefined reference to `__libc_stack_end'
race_linux_amd64.syso: In function `__sanitizer::InternalFree(void*, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<0ul, 140737488355328ull, 0ul, __sanitizer::SizeClassMap<17ul, 64ul, 14ul>, 20ul, __sanitizer::TwoLevelByteMap<32768ull, 4096ull, __sanitizer::NoOpMapUnmapCallback>, __sanitizer::NoOpMapUnmapCallback> >*)':
gotsan.cc:(.text+0x5ec8): undefined reference to `__libc_free'
collect2: error: ld returned 1 exit status
I believe that the last error is caused by the ThreadSanitizer race detector which is shipped with Go but that's a separate issue imho.
As such, I'm not sure what's the best way to continue. Ideally I'd like to compile the binary and run the tests against the same libraries and using golang:1.5.3 for running the tests and golang:1.5.3-alpine to build the binary doesn't seem as the way to move forward.
Thank you.
The text was updated successfully, but these errors were encountered:
From the alpine dockerfile, you compile go from the source.
For supporting race, the link below gives us how to do. Could you take it in account: https://getgb.io/faq/#missing-race-support
Hi,
I'm doing something like this:
But the race detector will crash with this error:
This doesn't happen with the
golang:1.5.3
image.I've tried the go 1.6 rc2 image and the same outcome.
With these results, I've decided to upgrade the Go image with the missing gcc stuff and so I've created this:
Then I've used the newly created image to replace the
golang:1.5.3
image and I've ran the above command again.The outcome was that the binary now compiles again however there's a new error at runtime:
I believe that the last error is caused by the ThreadSanitizer race detector which is shipped with Go but that's a separate issue imho.
As such, I'm not sure what's the best way to continue. Ideally I'd like to compile the binary and run the tests against the same libraries and using
golang:1.5.3
for running the tests andgolang:1.5.3-alpine
to build the binary doesn't seem as the way to move forward.Thank you.
The text was updated successfully, but these errors were encountered: