Skip to content
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

Race Condition Detection disabled when run in Docker (until Go 1.15) #138

Closed
ThomasObenaus opened this issue May 21, 2020 · 0 comments · Fixed by #151
Closed

Race Condition Detection disabled when run in Docker (until Go 1.15) #138

ThomasObenaus opened this issue May 21, 2020 · 0 comments · Fixed by #151
Labels
bug Something isn't working

Comments

@ThomasObenaus
Copy link
Owner

With current alpine (golang:1.13.1-alpine) test -race does not work since it is not supported.

--> Run the unit-tests
# runtime/race
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: race_linux_amd64.syso: in function `__sanitizer::GetArgv()':
gotsan.cc:(.text+0x4183): undefined reference to `__libc_stack_end'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: race_linux_amd64.syso: in function `__sanitizer::ReExec()':
gotsan.cc:(.text+0x9797): undefined reference to `__libc_stack_end'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: race_linux_amd64.syso: in function `__sanitizer::InternalAlloc(unsigned long, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<__sanitizer::AP32> >*, unsigned long)':
gotsan.cc:(.text+0xaac1): undefined reference to `__libc_malloc'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: race_linux_amd64.syso: in function `__sanitizer::InternalRealloc(void*, unsigned long, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<__sanitizer::AP32> >*)':
gotsan.cc:(.text+0xca20): undefined reference to `__libc_realloc'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: race_linux_amd64.syso: in function `__sanitizer::InternalFree(void*, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<__sanitizer::AP32> >*)':
gotsan.cc:(.text+0x66e8): undefined reference to `__libc_free'
collect2: error: ld returned 1 exit status

As mentioned here golang/go#14481 (comment) with go 1.15. + the according alpine image the issue will be resolved.
Hence then it can be renabled.

@ThomasObenaus ThomasObenaus added the bug Something isn't working label May 21, 2020
ThomasObenaus added a commit that referenced this issue May 21, 2020
ThomasObenaus added a commit that referenced this issue Sep 24, 2020
@ThomasObenaus ThomasObenaus linked a pull request Sep 24, 2020 that will close this issue
ThomasObenaus added a commit that referenced this issue Sep 24, 2020
ThomasObenaus added a commit that referenced this issue Sep 25, 2020
[#138] .Update upgrade build image and run image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant