diff options
| author | Wu Yingcong <yingcong.wu@intel.com> | 2024-02-27 12:52:04 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-27 12:52:04 -0800 |
| commit | 3250330997cf214293a20a1d532b617d72bafb09 (patch) | |
| tree | b4246835d0989fa8f3d739b003a27c08c3348c2c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | b0bae445176d30a3fa577d30c21f36dad61003b8 (diff) | |
[asan] Disable instrumentation for available_externally global with COFF (#81109)
For COFF, available_externally global will be instrumented because of
the lack of filtering, and will trigger the Verifier pass assertion and
crash the compilation. This patch will filter out the
available_externally global for COFF.
For non-COFF, `!G->hasExactDefinition()` in line 1954 will filter out
the available_externally globals.
There is a related bug reported in
https://bugs.llvm.org/show_bug.cgi?id=47950 /
https://github.com/llvm/llvm-project/issues/47294. I tried the
reproducer posted on the page and this will fix the problem.
Reproducer:
```
#include <locale>
void grouping_impl() {
std::use_facet<std::numpunct<char>>(std::locale());
}
// clang -fsanitize=address -D_DLL -std=c++14 -c format.cc
```
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
