From: Alex Shlyapnikov Date: Tue, 25 Apr 2017 17:24:27 +0000 (+0000) Subject: [lsan] When necessary, define LSan suppression for pthread_exit. X-Git-Tag: llvmorg-5.0.0-rc1~6717 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ca80051b9f1dc6b74edef1b7d860f586c2f383a;p=platform%2Fupstream%2Fllvm.git [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 llvm-svn: 301335 --- diff --git a/compiler-rt/lib/lsan/lsan_common.cc b/compiler-rt/lib/lsan/lsan_common.cc index 5a4cb45..1f4734c 100644 --- a/compiler-rt/lib/lsan/lsan_common.cc +++ b/compiler-rt/lib/lsan/lsan_common.cc @@ -70,9 +70,9 @@ static const char kSuppressionLeak[] = "leak"; 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.