[PATCH] D18003: [tsan] Disable randomized address space on linux when necessary.

Yabin Cui via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 14:21:35 PST 2016

yabinc added a comment.

not android specific, I have updated in SUMMARY.
Done checking real heap space.

Comment at: lib/tsan/rtl/tsan_platform_linux.cc:312
@@ +311,3 @@
+      if (GetHeapEnd() < HeapMemEnd()) {
+        Report("WARNING: Program is run with randomized virtual address space,"
+               " and uses heap space out of that assumed by ThreadSanitizer."
This is correct. I want to set ADDR_NO_RANDOMIZE instead of removing it. even it works with kernel 3.19, but doesn't work with latest kernel. And https://lkml.org/lkml/2015/12/21/340 has been cherry picked back to android kernels < 3.19. I mainly use N5X android device to test, which uses kernel 3.10.


More information about the llvm-commits mailing list