[compiler-rt] r245758 - [LSan] Support __sanitizer_set_death_callback in standalone LSan.

Alexey Samsonov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 16:00:30 PDT 2015


Author: samsonov
Date: Fri Aug 21 18:00:30 2015
New Revision: 245758

URL: http://llvm.org/viewvc/llvm-project?rev=245758&view=rev
Log:
[LSan] Support __sanitizer_set_death_callback in standalone LSan.

Modified:
    compiler-rt/trunk/lib/lsan/lsan_common.cc
    compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/sanitizer_set_death_callback_test.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=245758&r1=245757&r2=245758&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lsan_common.cc (original)
+++ compiler-rt/trunk/lib/lsan/lsan_common.cc Fri Aug 21 18:00:30 2015
@@ -447,7 +447,7 @@ void DoLeakCheck() {
   if (common_flags()->exitcode) {
     if (common_flags()->coverage)
       __sanitizer_cov_dump();
-    internal__exit(common_flags()->exitcode);
+    Die();
   }
 }
 

Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/sanitizer_set_death_callback_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/sanitizer_set_death_callback_test.cc?rev=245758&r1=245757&r2=245758&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/sanitizer_set_death_callback_test.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/sanitizer_set_death_callback_test.cc Fri Aug 21 18:00:30 2015
@@ -1,6 +1,5 @@
 // RUN: %clangxx -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s
 // Check __sanitizer_set_death_callback. Not all sanitizers implement it yet.
-// XFAIL: lsan
 // XFAIL: tsan
 
 #include <sanitizer/common_interface_defs.h>




More information about the llvm-commits mailing list