[all-commits] [llvm/llvm-project] 7bf43f: [ASan] Ensure Symbolize Flag setting on Windows th...

MacGyver Codilla via All-commits all-commits at lists.llvm.org
Sat Aug 9 16:24:34 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7bf43fec3aa1c7bb64749efefe0f5fd1e377c1fd
      https://github.com/llvm/llvm-project/commit/7bf43fec3aa1c7bb64749efefe0f5fd1e377c1fd
  Author: MacGyver Codilla <77024043+39otsu at users.noreply.github.com>
  Date:   2025-08-09 (Sat, 09 Aug 2025)

  Changed paths:
    M compiler-rt/lib/asan/asan_flags.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h
    M compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp
    A compiler-rt/test/asan/TestCases/Windows/symbolize.cpp

  Log Message:
  -----------
  [ASan] Ensure Symbolize Flag setting on Windows through __asan_default_options() is maintained throughout runtime (#132811)

As a consequence of the ASAN DLL's initialization process on Windows,
some flags defined by the user through overriding the
__asan_default_options() method will not be honored. More information
here: [#117925](https://github.com/llvm/llvm-project/issues/117925)

This PR aims to alleviate this for the symbolize flag in relation to
this user's concern
[here.](https://developercommunity.visualstudio.com/t/Overloading-of-__asan_default_options-/10688871)

1. Declared `Symbolizer::ClearTools()`.
2. Defined `Symbolizer::ClearTools()`. Upon invocation of the weak
function callback of `__asan_default_options()`, `Symbolizer::tools_`
will be cleared if the user specifies `symbolize=0`.
3. Added tests.

---------

Co-authored-by: MacGyver Codilla <mcodilla at microsoft.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list