[PATCH] D40877: [TSan] Make more TSan interceptors symbolizer-aware.

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 19:12:24 PST 2017


alekseyshl created this revision.
Herald added a subscriber: kubamracek.

Switching the rest of intercepted allocs to InternalAlloc (well, except
__libc_memalign) when current thread is 'in_symbolizer'. Symbolizer
might (and does) use allocation functions other than malloc/calloc/realloc.

posix_memalign is the one actually used, others switched just in case
(since the failure is obscure and not obvious to diagnose).


https://reviews.llvm.org/D40877

Files:
  lib/tsan/rtl/tsan_interceptors.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40877.125667.patch
Type: text/x-patch
Size: 3852 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171206/76aca129/attachment.bin>


More information about the llvm-commits mailing list