[all-commits] [llvm/llvm-project] 8df3e1: Add option to symbolize inline frames for Internal...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Tue Jun 23 19:57:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8df3e1fd86fce6fd39954021bd7501842216dbe8
      https://github.com/llvm/llvm-project/commit/8df3e1fd86fce6fd39954021bd7501842216dbe8
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2020-06-23 (Tue, 23 Jun 2020)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cpp
    M compiler-rt/lib/sanitizer_common/symbolizer/sanitizer_symbolize.cpp

  Log Message:
  -----------
  Add option to symbolize inline frames for InternalSymbolizer

Summary:
Currently, there is no way to let the `InternalSymbolizer` implemented
functions know if inline frames should be symbolized. This patch updates
the function `__sanitizer_symbolize_code` to include a parameter for
this ASAN option and toggle between LLVM symbolization functions when
appropriate.

Fixes the following two failing tests when internal symbolization is
enabled:
```
SanitizerCommon-*-x86_64-Linux :: print-stack-trace.cpp
SanitizerCommon-*-x86_64-Linux :: symbolize_pc_inline.cpp
```

Reviewers: vitalybuka, kcc, filcab

Reviewed By: vitalybuka

Subscribers: #sanitizers

Tags: #sanitizers

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




More information about the All-commits mailing list