Please take a look.
Diff Detail
Event Timeline
test/tsan/print_stack_trace.cc | ||
---|---|---|
4 ↗ | (On Diff #97669) | Self-nit: no need to recompile with the same options. |
lib/sanitizer_common/sanitizer_stacktrace.h | ||
---|---|---|
33 ↗ | (On Diff #97669) | It looks like I got confused and removing this SANITIZER_CAN_SLOW_UNWIND stuff is wrong. Though maybe I can implement it as well? |
lib/tsan/rtl/tsan_rtl_report.cc | ||
---|---|---|
698 | Good catch! My previous patchset used this function twice, but now there is not need to have that. Removed. | |
700 | Looks like this code does not use STL intentionally. If I add it, the following error happens, for example: In file included from <...>/llvm/src/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc:29: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:628: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:603: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:158:40: error: redefinition of 'operator new' inline _LIBCPP_INLINE_VISIBILITY void* operator new (std::size_t, void* __p) _NOEXCEPT {return __p;} ^ |
why??