[all-commits] [llvm/llvm-project] fc545c: tsan: handle bugs in symbolizer more gracefully

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Thu Aug 5 07:53:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc545c52cdfe1593967598ac9c3645095d5405c6
      https://github.com/llvm/llvm-project/commit/fc545c52cdfe1593967598ac9c3645095d5405c6
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-08-05 (Thu, 05 Aug 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp

  Log Message:
  -----------
  tsan: handle bugs in symbolizer more gracefully

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.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D107564




More information about the All-commits mailing list