[compiler-rt] r301335 - [lsan] When necessary, define LSan suppression for pthread_exit.

Alex Shlyapnikov via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 10:24:27 PDT 2017


Author: alekseyshl
Date: Tue Apr 25 12:24:27 2017
New Revision: 301335

URL: http://llvm.org/viewvc/llvm-project?rev=301335&view=rev
Log:
[lsan] When necessary, define LSan suppression for pthread_exit.

Summary:
Generalize already defined LSan suppression for the leak on
pthread_exit, some envs do not have the entire call stack symbolized,
so we have to be less specific.

Reviewers: eugenis

Subscribers: llvm-commits

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

Modified:
    compiler-rt/trunk/lib/lsan/lsan_common.cc

Modified: compiler-rt/trunk/lib/lsan/lsan_common.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lsan_common.cc?rev=301335&r1=301334&r2=301335&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lsan_common.cc (original)
+++ compiler-rt/trunk/lib/lsan/lsan_common.cc Tue Apr 25 12:24:27 2017
@@ -70,9 +70,9 @@ static const char kSuppressionLeak[] = "
 static const char *kSuppressionTypes[] = { kSuppressionLeak };
 static const char kStdSuppressions[] =
 #if SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT
-  // The actual string allocation happens here (for more details refer to the
-  // SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT definition).
-  "leak:*_dl_map_object_deps*\n"
+  // For more details refer to the SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT
+  // definition.
+  "leak:*pthread_exit*\n"
 #endif  // SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT
   // TLS leak in some glibc versions, described in
   // https://sourceware.org/bugzilla/show_bug.cgi?id=12650.




More information about the llvm-commits mailing list