- Notifications
You must be signed in to change notification settings - Fork1.1k
AddressSanitizerRunningSpecBenchmarks
Alexander Potapenko edited this pageNov 30, 2015 ·4 revisions
SPEC 2006 may be obtained fromhttp://www.spec.org/cpu2006(it is not free, but most compiler experts already have access to it).Make sure to use the latest version 1.2
You will also need to install SPEC on your system. The following worked for me on Ubuntu 10.04:
cd your-spec-dir./install.shThere are several bugs in SPEC 2006 detectable byAddressSanitizer:AddressSanitizerFoundBugs#Spec_CPU_2006You will need to patch the spec code in order to run the benchmarks w/o errors:https://github.com/google/sanitizers/blob/master/address-sanitizer/spec/spec2006-asan.patch
Take a look athttps://github.com/google/sanitizers/blob/master/address-sanitizer/spec/run_spec_clang_asan.sh
cd your-spec-dir# First parameter: any uniq id# Second parameter: test|train|ref (sizeof of input data)# Following parameters: list of benchmarks (use all_c for all C tests, all_cpp for all C++ tests)./run_spec_clang_asan.sh z test bzip2