[PATCH] D48551: [HWASan] Initalize shadow earler.
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 25 10:32:00 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT335502: [HWASan] Initalize shadow earler. (authored by alekseyshl, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D48551?vs=152711&id=152724#toc
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D48551
Files:
lib/hwasan/hwasan.cc
Index: lib/hwasan/hwasan.cc
===================================================================
--- lib/hwasan/hwasan.cc
+++ lib/hwasan/hwasan.cc
@@ -177,10 +177,6 @@
__sanitizer_set_report_path(common_flags()->log_path);
- InitializeInterceptors();
- InstallDeadlySignalHandlers(HwasanOnDeadlySignal);
- InstallAtExitHandler(); // Needs __cxa_atexit interceptor.
-
DisableCoreDumperIfNecessary();
if (!InitShadow()) {
Printf("FATAL: HWAddressSanitizer cannot mmap the shadow memory.\n");
@@ -194,6 +190,10 @@
Die();
}
+ InitializeInterceptors();
+ InstallDeadlySignalHandlers(HwasanOnDeadlySignal);
+ InstallAtExitHandler(); // Needs __cxa_atexit interceptor.
+
Symbolizer::GetOrInit()->AddHooks(EnterSymbolizer, ExitSymbolizer);
InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48551.152724.patch
Type: text/x-patch
Size: 849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180625/787e37cb/attachment.bin>
More information about the llvm-commits
mailing list