This test fails with libc++ when built with MemorySanitizer. This
is because we link to an uninstrumented version of the library
so msan detects a nested error when calling std::cout << "...".
This can be easily avoided by using good old printf.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks, LGTM. So, am I understanding correctly that there are msan interceptors for printf, but not iostream?
Comment Actions
I'm not sure that there are interceptors for printf. I think the problem was that instrumented and inlined code from headers got mixed with uninstrumented code from the shared library.
Comment Actions
Oh, whereas none of the printf logic is inline, so either all of it is instrumented or not instrumented. Sure, makes sense.