[llvm-commits] [compiler-rt] r168308 - /compiler-rt/trunk/lib/asan/asan_report.cc

Alexey Samsonov samsonov at google.com
Mon Nov 19 03:22:22 PST 2012


Author: samsonov
Date: Mon Nov 19 05:22:22 2012
New Revision: 168308

URL: http://llvm.org/viewvc/llvm-project?rev=168308&view=rev
Log:
[ASan] use raw Exit() to kill the program in case ASan finds an error while reporting the error in the same thread

Modified:
    compiler-rt/trunk/lib/asan/asan_report.cc

Modified: compiler-rt/trunk/lib/asan/asan_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_report.cc?rev=168308&r1=168307&r2=168308&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_report.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_report.cc Mon Nov 19 05:22:22 2012
@@ -289,7 +289,9 @@
         // an error report will finish doing it.
         SleepForSeconds(Max(100, flags()->sleep_before_dying + 1));
       }
-      Die();
+      // If we're still not dead for some reason, use raw Exit() instead of
+      // Die() to bypass any additional checks.
+      Exit(flags()->exitcode);
     }
     __asan_on_error();
     reporting_thread_tid = asanThreadRegistry().GetCurrentTidOrInvalid();





More information about the llvm-commits mailing list