-
Notifications
You must be signed in to change notification settings - Fork 78
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
Thread Sanitizer crashes when running REPLCE_NEAR
#22
Comments
stub-cpp is not optimized for Sanitizer. |
@coolxv I use Thread Sanitizer for unit tests. I think that putting |
Sanitizer is the compiler that has done special processing and inserted some special statements. |
@jiridanek Unit tests do not need to be compiled with the sanitizer option. |
I'm on my machine and use attribute((no_sanitize("thread"))) on Stub::set is correct. gcc version 10.2.0 (Ubuntu 10.2.0-5ubuntu1~20.04) |
I am using
void Stub::set
to install my stub. The program crashes when compiled in GCC with Thread Sanitizer.My guess is that the address is not instrumented correctly by TSan and that therefore it is correct to resolve this by disabling TSan instrumentation for
Stub::set
. The Address Sanitizer tool is not complaining, given the exactly same code.The text was updated successfully, but these errors were encountered: