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

[BUG] TSAN linkage is broken in r21 #1170

Closed
vlovich opened this issue Jan 17, 2020 · 1 comment
Closed

[BUG] TSAN linkage is broken in r21 #1170

vlovich opened this issue Jan 17, 2020 · 1 comment
Labels

Comments

@vlovich
Copy link

vlovich commented Jan 17, 2020

Description

A basic test program fails to link against TSAN on r21 with:

/toolchain/llvm-project/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc:428: error: undefined reference to '__tsan::__interception::real_setjmp'
/toolchain/llvm-project/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc:428: error: undefined reference to '__tsan::__interception::real_setjmp'

This has been fixed in upstream rL365806 but r21 has been branched from r365631 before this fix was landed.

Test case:

#include <future>

int main() {
  while (true) {
    auto f = std::async([] { return 123; });
    if (!f.valid()) {
      return 1;
    }
    if (f.get() != 123) {
      return 1;
    }
    if (f.valid()) {
      return 1;
    }
  }
}

Environment Details

Pkg.Desc = Android NDK
Pkg.Revision = 21.0.6113669

Build system: Standalone toolchain
Host OS: Windows & Mac

@vlovich vlovich added the bug label Jan 17, 2020
@vlovich vlovich changed the title [BUG] TSAN linkage is broken in r21b [BUG] TSAN linkage is broken in r21 Jan 17, 2020
@DanAlbert
Copy link
Member

Same answer as in #1171 for now. Closing as dup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants