[PATCH] D18690: [LSAN] Fix test swapcontext.cc on MIPS

Sagar Thakur via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 01:18:14 PDT 2016


sagar added a comment.

Hi Peter,

I am unable to reproduce this failure on ARMv7 Processor.
Here is the output I got for all optimization levels (O0, O1, O2, O3):

  root at debian-armhf:~# arm-linux-gnueabihf-clang/bin/clang -g -O3 -fsanitize=address null_deref.cc 
  root at debian-armhf:~# ./a.out 
  ASAN:DEADLYSIGNAL
  =================================================================
  ==856==ERROR: AddressSanitizer: SEGV on unknown address 0x00000028 (pc 0x000c8fa8 bp 0x7ed69bc0 sp 0x7ed69bc0 T0)
  ==856==The signal is caused by a READ memory access.
  ==856==Hint: address points to the zero page.
      #0 0xc8fa7 in NullDeref(int*) /root/null_deref.cc:15:10
      #1 0xc8f7b in main /root/null_deref.cc:21:3
      #2 0x76d8b631 in __libc_start_main (/lib/arm-linux-gnueabihf/libc.so.6+0x17631)
  AddressSanitizer can not provide additional info.
  SUMMARY: AddressSanitizer: SEGV /root/null_deref.cc:15:10 in NullDeref(int*)
  ==856==ABORTING

The build bot failure is:

> error: expected string not found in input // CHECK: {{ #0 0x.* in .*NullDeref.*null_deref.cc:}}[[@LINE-3]]



Repository:
  rL LLVM

http://reviews.llvm.org/D18690





More information about the llvm-commits mailing list