[PATCH] D14813: [tsan] Recognize frames coming from "libclang_rt.tsan_*" module as internal

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 04:06:33 PST 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL253559: [tsan] Recognize frames coming from "libclang_rt.tsan_*" module as internal (authored by kuba.brecka).

Changed prior to commit:
  http://reviews.llvm.org/D14813?vs=40617&id=40628#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D14813

Files:
  compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc

Index: compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
===================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
@@ -267,10 +267,15 @@
   if (frame == 0)
     return false;
   const char *file = frame->info.file;
-  return file != 0 &&
-         (internal_strstr(file, "tsan_interceptors.cc") ||
-          internal_strstr(file, "sanitizer_common_interceptors.inc") ||
-          internal_strstr(file, "tsan_interface_"));
+  const char *module = frame->info.module;
+  if (file != 0 &&
+      (internal_strstr(file, "tsan_interceptors.cc") ||
+       internal_strstr(file, "sanitizer_common_interceptors.inc") ||
+       internal_strstr(file, "tsan_interface_")))
+    return true;
+  if (module != 0 && (internal_strstr(module, "libclang_rt.tsan_")))
+    return true;
+  return false;
 }
 
 static SymbolizedStack *SkipTsanInternalFrames(SymbolizedStack *frames) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14813.40628.patch
Type: text/x-patch
Size: 976 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151119/3ae69e4a/attachment.bin>


More information about the llvm-commits mailing list