Address sanitizer catches a wide range of failures
like buffer overruns, etc. So makes sense to run it
during the debug test run.
However, it is a bit picky to the compiler -
currently it only works well only on GCC 8+,
so this patch accounts for that by moving
the job to 20.04 executor which has gcc-9 by default.
Thanks to Benoit for the help getting it working.
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: If086907d1f20e99503aa0e811fd2ae95c168d731
sha1sum $0
# run with ASAN on
-# export VPP_EXTRA_CMAKE_ARGS='-DVPP_ENABLE_SANITIZE_ADDR=ON'
+export VPP_EXTRA_CMAKE_ARGS='-DVPP_ENABLE_SANITIZE_ADDR=ON'
# clang is not working with ASAN right now - see change 27268
-# apparently gcc neither...
-# export CC=gcc
+# also, it does not work with gcc-7, we need gcc-8 at least
+# on ubuntu 20.04 executor the gcc is gcc9
make UNATTENDED=yes install-dep
make UNATTENDED=yes install-ext-deps
repo-stream-part: 'stable.2009'
branch-head-refspec: ''
os:
- - ubuntu1804:
- repo-os-part: 'ubuntu.bionic.main'
+ - ubuntu2004:
+ repo-os-part: 'ubuntu.focal.main'
executor-arch: 'x86_64'
# [end] VPP-DEBUG-X86_64 PROJECT