This is an archive of the discontinued LLVM Phabricator instance.

[TSan] Make more TSan interceptors symbolizer-aware.
ClosedPublic

Authored by alekseyshl on Dec 5 2017, 7:12 PM.

Details

Summary

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).

Event Timeline

alekseyshl created this revision.Dec 5 2017, 7:12 PM
dvyukov accepted this revision.Dec 5 2017, 10:42 PM
This revision is now accepted and ready to land.Dec 5 2017, 10:42 PM
This revision was automatically updated to reflect the committed changes.