Index: tools/bugpoint/bugpoint.cpp =================================================================== --- tools/bugpoint/bugpoint.cpp +++ tools/bugpoint/bugpoint.cpp @@ -169,6 +169,11 @@ MemoryLimit = 800; else MemoryLimit = 400; +#if LLVM_ADDRESS_SANITIZER_BUILD || LLVM_MEMORY_SANITIZER_BUILD + // Starting from kernel 4.9 memory allocated with mmap is counted against + // RLIMIT_DATA. Sanitizers need to allocate tens of terabytes for shadow. + MemoryLimit = 0; +#endif } BugDriver D(argv[0], FindBugs, TimeoutValue, MemoryLimit, UseValgrind,