From b0b3c0d80ab8c7c986a13d901c661bb7f4da1090 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 1 Mar 2024 17:30:12 +0000 Subject: [PATCH] Disable MBEDTLS_SELF_TEST in the TSan config Enabling this causes TSan warnings, as some self-tests use unprotected globals (see X_count variables in ecp.c). This isn't an issue, as these globals are only read in self tests, which do not use threads. Signed-off-by: Ryan Everett --- tests/scripts/all.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index fcb465e0e..2b7ed0074 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -2198,6 +2198,8 @@ component_test_tsan () { scripts/config.py full scripts/config.py set MBEDTLS_THREADING_C scripts/config.py set MBEDTLS_THREADING_PTHREAD + # Self-tests do not currently use multiple threads. + scripts/config.py unset MBEDTLS_SELF_TEST CC=clang cmake -D CMAKE_BUILD_TYPE:String=TSan . make