[compiler-rt] r244940 - Add more error logging to win/asan
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 13 13:10:55 PDT 2015
Author: rnk
Date: Thu Aug 13 15:10:54 2015
New Revision: 244940
URL: http://llvm.org/viewvc/llvm-project?rev=244940&view=rev
Log:
Add more error logging to win/asan
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_win.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_win.cc?rev=244940&r1=244939&r2=244940&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_win.cc Thu Aug 13 15:10:54 2015
@@ -175,13 +175,19 @@ bool SymbolizerProcess::StartSymbolizerS
attrs.bInheritHandle = TRUE;
attrs.lpSecurityDescriptor = nullptr;
if (!::CreatePipe(stdin_read.receive(), stdin_write.receive(), &attrs, 0) ||
- !::CreatePipe(stdout_read.receive(), stdout_write.receive(), &attrs, 0))
+ !::CreatePipe(stdout_read.receive(), stdout_write.receive(), &attrs, 0)) {
+ VReport(2, "WARNING: %s CreatePipe failed (error code: %d)\n",
+ SanitizerToolName, path_, GetLastError());
return false;
+ }
// Don't inherit the writing end of stdin or the reading end of stdout.
if (!SetHandleInformation(stdin_write.get(), HANDLE_FLAG_INHERIT, 0) ||
- !SetHandleInformation(stdout_read.get(), HANDLE_FLAG_INHERIT, 0))
+ !SetHandleInformation(stdout_read.get(), HANDLE_FLAG_INHERIT, 0)) {
+ VReport(2, "WARNING: %s SetHandleInformation failed (error code: %d)\n",
+ SanitizerToolName, path_, GetLastError());
return false;
+ }
// Compute the command line. Wrap double quotes around everything.
const char *argv[kArgVMax];
More information about the llvm-commits
mailing list