-
Notifications
You must be signed in to change notification settings - Fork 264
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
[FR] support TSan #1171
Comments
Reported upstream as well: google/sanitizers#1183 |
TSan isn't supported on Android AFAIK. Leaving this open bug converting to a FR. |
please, please prioritize this. It's hard to understand threaded code without TSan. Code out there is becoming more threaded, in more bug-prone ways (C++11 weakly ordered atomics...). We need TSan! |
It sounds like we may not have anyone free to look at this for a while, but I'm going to triage it to r23 for now so we keep thinking about it. |
Duplicate of #1041 Sorry for not noticing that sooner :) |
This is a xfail because we haven't updated the toolchain with the new tsan libraries, but this test should work correctly once we've updated. Bug: android/ndk#1171 Change-Id: I669713b942e1ff4ca66ac958ffe0c03424e775a4
Description
Source:
Build it with TSAN on r19c:
The following crash is observed:
Running under gdb the following symbolicated backtrace is observed:
NOTE: This reproduces on r18b too but that has a race condition in std::future so for the purposes of the experiment you backport the header fix for the race condition (https://reviews.llvm.org/D51170) since the test doesn't use
std::future<void>
.On r20b the program crashes with a segfaul:
Backtrace:
Can't test on r21 due to linker bug #1170.
Environment Details
Not all of these will be relevant to every bug, but please provide as much
information as you can.
r18b
Pkg.Desc = Android NDK
Pkg.Revision = 18.1.5063045
r19c
Pkg.Desc = Android NDK
Pkg.Revision = 19.2.5345600
r20b
Pkg.Desc = Android NDK
Pkg.Revision = 20.1.5948944
The text was updated successfully, but these errors were encountered: