-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[sanitizer][windows] report symbols in clang_rt. or \compiler-rt\lib\ as internal. #84971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sanitizer][windows] report symbols in clang_rt. or \compiler-rt\lib\ as internal. #84971
Conversation
This is the windows equivalent to the existing filters.
@llvm/pr-subscribers-platform-windows @llvm/pr-subscribers-compiler-rt-sanitizer Author: Charlie Barto (barcharcraz) ChangesThis is the windows equivalent to the existing filters. Work from #81677 that can be applied separately (and is actually not critical for that PR) Full diff: https://github.com/llvm/llvm-project/pull/84971.diff 1 Files Affected:
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp
index f6b157c07c6557..ffbaf1468ec8ff 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp
@@ -39,8 +39,12 @@ static bool FrameIsInternal(const SymbolizedStack *frame) {
internal_strstr(file, "/include/c++/") ||
internal_strstr(file, "/include/g++")))
return true;
+ if (file && internal_strstr(file, "\\compiler-rt\\lib\\"))
+ return true;
if (module && (internal_strstr(module, "libclang_rt.")))
return true;
+ if (module && (internal_strstr(module, "clang_rt.")))
+ return true;
return false;
}
|
if (module && (internal_strstr(module, "libclang_rt."))) | ||
return true; | ||
if (module && (internal_strstr(module, "clang_rt."))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is libclang_rt.
redundant then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean not if you happened to build the library with that name....
It might show up for cygwin or mingw builds. I don't see a reason to do platform specific preprocessing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new if (module && (internal_strstr(module, "clang_rt.")))
will match existing libclang
It breaks this bot https://lab.llvm.org/buildbot/#/builders/127/builds/63297 |
Ping |
thanks, looking now. |
fixed: #85137 |
This is the windows equivalent to the existing filters.
Work from #81677 that can be applied separately (and is actually not critical for that PR)