-
Notifications
You must be signed in to change notification settings - Fork 58
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
Msan instrumented lrte #15
Comments
I might miss something, but isn't msan instrumented libstdc++ part of clang build coming with LRTE(or any prebuilt clang compiler)? |
Maybe https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo confused me. I tried their gtest example and it's failing but i think that may be a gtest msan bug. |
Upon further investigation, I still think LRTE is not using an MSAN instrumented libstdc++. For instance, one gets the MSAN error below when running bazel run --config=msan -- :bank-client. According to protocolbuffers/protobuf#1099, this error is not an MSAN bug in protobuf but is rather due to a non-instrumented libstdc++ INFO: Running command line: bazel-bin/examples/rpc/bank-client --alsologtostderr SUMMARY: MemorySanitizer: use-of-uninitialized-value /home/dragos/.cache/bazel/_bazel_dragos/995c3226c255d07b9777857aa6c179dd/trunk-ro/external/protobuf/src/google/protobuf/descriptor_database.cc:238:24 in google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<std::pair<void const*, int> >::ValidateSymbolName(std::string const&) |
Or maybe LRTE has the instrumented version but the :msan config does not tell Bazel to use it. |
Noticed some more odd behaviour when building with LRTE. I would expect it to use libstdc++ from under /usr/lrte but ldd says differently. Am I missing something? bazel build --crosstool_top //tools/lrte:toolchain :hello ldd ../bazel-bin/examples/hello |
Ah, I should have used the ldd from LRTE. |
I think this can be closed. The clang that comes with LRTE does not have a MSAN instrumented libstdc++ as far as I can tell. I have a script to create the instrumented version in my fork of LRTE: https://github.com/dionescu/lrte |
Thanks for the update. Really appreciate your investigation and script. |
Not an issue, but a feature request.
Given the recent changes that moved asan/msan/tsan to using LRTE, I think it would be really nice if the LRTE release would provide msan instrumented libc++ / libstdc++.
The text was updated successfully, but these errors were encountered: