Content-Transfer-Encoding: binary From: ondrej@isc.org To: bind9-public@isc.org MIME-Version: 1.0 X-Mailer: MIME-tools 5.508 (Entity 5.508) Content-Type: text/plain; charset="utf-8" Subject: Add Address Sanitizer (ASAN) and Undefined Behaviour Sanitizer builds in the CI Content-Disposition: inline X-RT-Interface: Web Date: Thu, 30 Nov 2017 12:28:04 +0000 Message-ID: X-RT-Original-Encoding: utf-8 Content-Length: 756 Clang comes with ASAN and UBSAN[2] Sanitizers and we should have a CI testing scenario that compiles BIND 9 with both and runs the full test suite. The minimum would be to install fairly recent Clang[3] or GCC[4] into the CI VM and run something like this: CC=clang CXX=clang CFLAGS="-O2 -g -fsanitize=address -fsanitize=undefined" ./configure make check 1. https://clang.llvm.org/docs/AddressSanitizer.html 2. https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html 3. at least LLVM 3.3 for UBSAN and LLVM 3.1 for ASAN 4. at least 4.9 for UBSAN and 4.8 for ASAN I believe that this should be done before the 9.12 final release (and I am sorry I haven't thought about this sooner).