[all-commits] [llvm/llvm-project] 8f5310: [sanitizer] Backup errno calling symbolizer

Vitaly Buka via All-commits all-commits at lists.llvm.org
Tue Aug 15 13:43:15 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f531007d8ff55143cc5f180c53b4b7c0265fac3
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h

  Log Message:
  [sanitizer] Backup errno calling symbolizer

ScopedThread::Impl::HandleEvent checks that errno is unchanged.
As is it's reproducible only with internal symbolizer, but I see
no disadvantages in doing that for all symbolizers.

Reviewed By: kstoimenov

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

More information about the All-commits mailing list