[all-commits] [llvm/llvm-project] 3827ef: [Asan][Windows] Fix asan stack traces on Windows.

Amy Huang via All-commits all-commits at lists.llvm.org
Fri Oct 23 13:14:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3827effe3ab541a3357c417c676939826fc5b4ac
      https://github.com/llvm/llvm-project/commit/3827effe3ab541a3357c417c676939826fc5b4ac
  Author: Amy Huang <akhuang at google.com>
  Date:   2020-10-23 (Fri, 23 Oct 2020)

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

  Log Message:
  -----------
  [Asan][Windows] Fix asan stack traces on Windows.

While implementing inline stack traces on Windows I noticed that the stack
traces in many asan tests included an inlined frame that shouldn't be there.

Currently we get the PC and then do a stack unwind and use the PC to
find the beginning of the stack trace.
In the failing tests the first thing in the stack trace is inside an inline
call site that shouldn't be in the stack trace, so replace it with the PC.

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




More information about the All-commits mailing list