numam-dpdk/devtools
Zhihong Peng 6e0290250d build: enable AddressSanitizer
AddressSanitizer [1] a.k.a. ASan is a widely-used debugging tool to
detect memory access errors.
It helps to detect issues like use-after-free, various kinds of buffer
overruns in C/C++ programs, and other similar errors, as well as
printing out detailed debug information whenever an error is detected.

ASan is integrated with gcc and clang and can be enabled via a meson
option: -Db_sanitize=address
See the documentation for details (especially regarding clang).

Enabling ASan has an impact on performance since additional checks are
added to generated binaries.

Enabling ASan with Windows is currently not supported in DPDK.

1: https://github.com/google/sanitizers/wiki/AddressSanitizer

Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
Signed-off-by: Zhihong Peng <zhihongx.peng@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
2021-10-29 15:25:34 +02:00
..
cocci devtools: add cocci script to rename mbuf offload flags 2021-10-24 13:37:02 +02:00
build-dict.sh devtools: add checkpatch spelling dictionary builder 2020-07-31 01:09:26 +02:00
build-tags.sh lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
check-abi-version.sh devtools: handle internal version in symbols check 2020-05-19 19:12:18 +02:00
check-abi.sh devtools: skip removed DLB driver in ABI check 2021-04-13 11:25:56 +02:00
check-doc-vs-code.sh devtools: check flow API doc tables 2021-05-18 19:06:56 +02:00
check-dup-includes.sh devtools: support FreeBSD 2019-07-31 00:22:33 +02:00
check-forbidden-tokens.awk devtools: fix directory filter in forbidden token check 2020-11-13 09:35:04 +01:00
check-git-log.sh devtools: fix letter case check in commit title 2021-10-22 22:40:59 +02:00
check-maintainers.sh devtools: fix file listing in maintainers check 2021-06-23 11:18:54 +02:00
check-meson.py devtools: add script to check indentation of Meson lists 2021-05-04 15:01:47 +02:00
check-spdx-tag.sh devtools: ignore JSON files for SPDX check 2021-05-19 11:01:19 +02:00
check-symbol-change.sh devtools: ignore internal ABI check 2020-04-25 17:01:01 +02:00
check-symbol-maps.sh build: check symbol maps in developer mode 2021-05-19 12:51:41 +02:00
checkpatches.sh devtools: recommend new logtype helpers 2021-07-01 21:54:22 +02:00
cocci.sh fix Mellanox copyright and SPDX tag 2020-02-13 18:47:28 +01:00
gen-abi.sh devtools: adjust verbosity of ABI check 2021-01-13 00:04:33 +01:00
get-maintainer.sh devtools: support FreeBSD 2019-07-31 00:22:33 +02:00
git-log-fixes.sh build: remove makefiles 2020-09-08 00:09:50 +02:00
libabigail.abignore version: 21.11-rc0 2021-08-17 08:37:52 +02:00
load-devel-config devtools: add SPDX license tag to config loader 2020-02-22 15:17:03 +01:00
parse-flow-support.sh net/bnxt: support tunnel offload 2021-09-21 06:26:00 +02:00
test-meson-builds.sh build: use platform for generic and native builds 2021-07-09 14:50:54 +02:00
test-null.sh eal: replace blacklist/whitelist options 2020-11-16 00:11:22 +01:00
update_version_map_abi.py build: remove Windows export symbol list 2021-04-08 17:57:33 +02:00
update-abi.sh build: replace use of old build macros 2020-10-19 22:15:44 +02:00
update-patches.py devtools: add script to ease backport of renamed files 2021-04-21 14:17:29 +02:00
words-case.txt build: enable AddressSanitizer 2021-10-29 15:25:34 +02:00