diff options
author | Kostya Serebryany <kcc@google.com> | 2014-05-01 16:20:23 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-05-01 16:20:23 +0000 |
commit | 08399dbaa7c98df730e3b93bd20f73a39ae339bf (patch) | |
tree | 75fcfdf9ce589216dfd2dd147f6faa6ad28f2fbe /lib/sanitizer_common/sanitizer_posix.cc | |
parent | e0a10bc52f21ad4a65bf883800aa66a0404980d4 (diff) |
[asan] disable GetKernelStartAddress as it misbehaves in schroot
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_posix.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_posix.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_posix.cc b/lib/sanitizer_common/sanitizer_posix.cc index 736701d3a..1882b140c 100644 --- a/lib/sanitizer_common/sanitizer_posix.cc +++ b/lib/sanitizer_common/sanitizer_posix.cc @@ -36,7 +36,9 @@ uptr GetMmapGranularity() { #if SANITIZER_WORDSIZE == 32 // Take care of unusable kernel area in top gigabyte static uptr GetKernelStartAddress() { -#if SANITIZER_LINUX +#if 0 // SANITIZER_LINUX + // FIXME: this code is too naive. We have a situation where the machine is a + // true x8_64, but under schroot uname returns i686. // 64-bit Linux provides 32-bit apps with full address space struct utsname uname_info; return 0 == uname(&uname_info) && !internal_strstr(uname_info.machine, "64") |