summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/MemorySSA.cpp
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2016-07-15 17:16:37 +0000
committerEtienne Bergeron <etienneb@google.com>2016-07-15 17:16:37 +0000
commit3d89db445d1f013a3abb250a1239199a23aae905 (patch)
treee9c91306530d60a7080615541970cb9a9f5e6a88 /llvm/lib/Transforms/Utils/MemorySSA.cpp
parent2025173494a8ca3ee713896c7efed8152eb76287 (diff)
downloadbcm5719-llvm-3d89db445d1f013a3abb250a1239199a23aae905.tar.gz
bcm5719-llvm-3d89db445d1f013a3abb250a1239199a23aae905.zip
TestCase null_deref was failing in Win64:
c:\lipo\work\asan\b_llvm>c:\lipo\work\asan\b_llvm\projects\compiler-rt\test\asan\X86_64WindowsConfig\TestCases\Output\null_deref.cc.tmp ================================================================= ==5488==ERROR: AddressSanitizer: access-violation on unknown address 0x000000000028 (pc 0x7ff701f91067 bp 0x000c8cf8fbf0 sp 0x000c8cf8fbb0 T0) ==5488==The signal is caused by a READ memory access. ==5488==Hint: address points to the zero page. #0 0x7ff701f91066 in NullDeref(int *) C:\lipo\work\asan\llvm\projects\compiler-rt\test\asan\TestCases\null_deref.cc:15:10 #1 0x8a0388830a67 (<unknown module>) The reason was symbols was not initilized. In fact, it was first inited with a call to stack.Print(), which calls WinSymbolizerTool::SymbolizePC, then InitializeDbgHelpIfNeeded(). Since the StackWalk was performed before the stack.Print(), stack frames where not gathered correctly. There should be a better place to initialize symbols. For now, this patch makes the test happy. Patch by Wei Wang Differential Revision: https://reviews.llvm.org/D22410 llvm-svn: 275580
Diffstat (limited to 'llvm/lib/Transforms/Utils/MemorySSA.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud