Commit cc2a4920 authored by Sebastian Brzezinka's avatar Sebastian Brzezinka Committed by Tomasz Zawadzki
Browse files

test/common: add asan_option use_sigaltstack=0

Currently when SPDK is built with `--enable-asan`, flag is not passed
to DPDK mainly due to AsanCheckFailed that is seemingly a false
positive. Forcing ASan to use single stack fix this issue, but it's
not well documented (at all) and conversation attached below, has
different and contradiction solutions proposed.

This patch is only relevant if `-Db_sanitize=address` is
enabled for DPDK.

Mentioned conversation on ASan github and GCC bugzilla
```
https://github.com/google/sanitizers/issues/1171
https://gcc.gnu.org/bugzilla//show_bug.cgi?id=101476


```

Update comment regarding librados issue.

Signed-off-by: default avatarSebastian Brzezinka <sebastian.brzezinka@intel.com>
Change-Id: Ic6a5743b56972ff1f9f9c0fefed34084180bb65b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19709


Reviewed-by: default avatarBen Walker <ben@nvidia.com>
Reviewed-by: default avatarJim Harris <jim.harris@gmail.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
parent 59f922d0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -175,9 +175,9 @@ export PYTHONPATH=$PYTHONPATH:$rootdir/python
# created with root ownership and can cause problems when cleaning the repository.
export PYTHONDONTWRITEBYTECODE=1

# Export flag to skip the known bug that exists in librados
# Bug is reported on ceph bug tracker with number 24078
export ASAN_OPTIONS=new_delete_type_mismatch=0:disable_coredump=0:exitcode=134
# Export new_delete_type_mismatch to skip the known bug that exists in librados
# https://tracker.ceph.com/issues/24078
export ASAN_OPTIONS=new_delete_type_mismatch=0:disable_coredump=0:exitcode=134:use_sigaltstack=0
export UBSAN_OPTIONS='halt_on_error=1:print_stacktrace=1:abort_on_error=1:disable_coredump=0:exitcode=134'

# Export LeakSanitizer option to use suppression file in order to prevent false positives