[PATCH] A workaround for getting process memory map taking too long for sanitizers on FreeBSD

Viktor Kutuzov vkutuzov at accesssoftek.com
Fri Aug 8 02:00:33 PDT 2014


Here's the patch for FreeBSD 9.2:

{F126775}

Once the kernel is patched, new kernel state named 'kern.proc_vmmap_skip_resident_count' should be available. That state must be set to 1 before running Asan tests:

  sysctl kern.proc_vmmap_skip_resident_count=1

Note that the patch is committed to stable/9 as r269090 so there is no need to apply the patch to subsequent releases.

Also, a more sophisticated version of the patch (not applicable to v9 sources) is committed to HEAD as r268466. That patch differs from the stable/9 patch so that it makes the Asan tests passing in reasonable/usual amount of time regardless of the value of the kern.proc_vmmap_skip_resident_count state.

http://reviews.llvm.org/D3732






More information about the llvm-commits mailing list