Hi All, I'm guessing the answer to this one is "use glibc", but I can't find any existing commentary on this in within the go ecosystem and thought it was worth a quick shot in case there is a fix. I'm aware that tsan and glibc are fairly well intermingled, so probably requires a lot of work possibly on both musl and go's part.
Just in case there is a quick fix though, here's a minimal reproduce using docker. I'd be interested in seeing this one work some day. Regards, - Peter Dockerfile gist link <https://gist.github.com/7b8c73a84b4c5bef5ce107fe009eb8d8.git> $ docker build -t race-build-failure https://gist.github.com/7b8c73a84b4c5bef5ce107fe009eb8d8.git Sending build context to Docker daemon 2.048 kB Step 1 : FROM golang:1.7rc1-alpine <snip> Step 5 : RUN go install -v -race . ---> Running in ac6e3198f37a runtime/internal/sys runtime/internal/atomic runtime runtime/cgo runtime/race # 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+0x16c1): undefined reference to `__libc_malloc' race_linux_amd64.syso: In function `__sanitizer::GetArgv()': gotsan.cc:(.text+0x41c3): undefined reference to `__libc_stack_end' race_linux_amd64.syso: In function `__sanitizer::ReExec()': gotsan.cc:(.text+0xe517): 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+0x6f28): undefined reference to `__libc_free' collect2: error: ld returned 1 exit status The command '/bin/sh -c go install -v -race .' returned a non-zero code: 2 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.