This is an archive of the discontinued LLVM Phabricator instance.

tsan: handle bugs in symbolizer more gracefully
ClosedPublic

Authored by dvyukov on Aug 5 2021, 6:23 AM.

Details

Summary

For symbolizer we only process SIGSEGV signals synchronously
(which means bug in symbolizer or in tsan).
But we still want to reset in_symbolizer to fail gracefully.
Symbolizer and user code use different memory allocators,
so if we don't reset in_symbolizer we can get memory allocated
with one being feed with another, which can cause more crashes.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Aug 5 2021, 6:23 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2021, 6:23 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Aug 5 2021, 6:56 AM
This revision is now accepted and ready to land.Aug 5 2021, 6:56 AM
This revision was automatically updated to reflect the committed changes.