-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Run worker tests with Address Sanitizer (only Linux) #1416
Conversation
### Details - Also run worker tests with Address Sanitizer (only Linux). ### TODO - CI fails because indeed we have problems, see comments below.
TODO 1 (FIXED)(Fixed in ad3817c) When running (in Linux Docker)
|
TODO 2When running (in Linux Docker)
|
TODO 3Should we also enable NOTE: If I only run
|
TODO1We must add asan options to dependencies too. By adding the following lines to meson.build we are doing so. We need to apply this only when running asan, so we may need a new meson option (meson_options.txt) ie: diff --git a/worker/meson.build b/worker/meson.build
index 6c94280d9..75489b6cc 100644
--- a/worker/meson.build
+++ b/worker/meson.build
@@ -13,6 +13,9 @@ cpp_args = [
host_machine.endian() == 'little' ? '-DMS_LITTLE_ENDIAN' : '-DMS_BIG_ENDIAN',
]
+add_global_arguments('-fsanitize=address', language: 'cpp')
+add_global_link_arguments('-fsanitize=address', language: 'cpp')
+ By adding that patch the TODO1 error does not appear. A new one is present though, but anyway |
Isn't this better? In -@task(pre=[setup, flatc])
+@task(pre=[call(setup, meson_args=MESON_ARGS + ' -Db_sanitize=address'), flatc])
def test_asan_address(ctx):
"""
Run worker test with Address Sanitizer with '-fsanitize=address' |
We will fix ASAN issues in a separate tickets. This PR has disabled those CI tasks until they are fixed. So let's continue fixing ASAN things in here: #1417 |
Details
test-asan
intotest-asan-address
,test-asan-undefined
andtest-asan-thread
.--use-colour=yes
(no longer supported looks like) when runningmediasoup-worker-test-asan
executable.Bonus Tracks
liburing.wrap
to 2.5-1.catch2.wrap
to 3.6.0-1.Related PRs this PR replaces