Skip to content

Commit 53db3e2

Browse files
committed
[#957] Use same sanitizers env variables from iceoryx
Signed-off-by: Ziad Mostafa <[email protected]>
1 parent 6aba344 commit 53db3e2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build-test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,21 +741,24 @@ jobs:
741741
742742
- name: Run C language binding tests with sanitizers
743743
env:
744-
ASAN_OPTIONS: "detect_leaks=1:check_initialization_order=1:strict_init_order=1"
744+
ASAN_OPTIONS: "detect_leaks=1:detect_stack_use_after_return=1:detect_stack_use_after_scope=1:check_initialization_order=true:strict_init_order=true:new_delete_type_mismatch=0:intercept_tls_get_addr=0"
745+
LSAN_OPTIONS: "verbosity=1:log_threads=1"
745746
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
746747
TSAN_OPTIONS: "halt_on_error=1:history_size=7"
747748
run: target/ff/cc/build/tests/iceoryx2-c-tests
748749

749750
- name: Run C++ language binding tests with sanitizers
750751
env:
751-
ASAN_OPTIONS: "detect_leaks=1:check_initialization_order=1:strict_init_order=1"
752+
ASAN_OPTIONS: "detect_leaks=1:detect_stack_use_after_return=1:detect_stack_use_after_scope=1:check_initialization_order=true:strict_init_order=true:new_delete_type_mismatch=0:intercept_tls_get_addr=0"
753+
LSAN_OPTIONS: "verbosity=1:log_threads=1"
752754
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
753755
TSAN_OPTIONS: "halt_on_error=1:history_size=7"
754756
run: target/ff/cc/build/tests/iceoryx2-cxx-tests
755757

756758
- name: Run C examples with sanitizers
757759
env:
758-
ASAN_OPTIONS: "detect_leaks=1:check_initialization_order=1:strict_init_order=1"
760+
ASAN_OPTIONS: "detect_leaks=1:detect_stack_use_after_return=1:detect_stack_use_after_scope=1:check_initialization_order=true:strict_init_order=true:new_delete_type_mismatch=0:intercept_tls_get_addr=0"
761+
LSAN_OPTIONS: "verbosity=1:log_threads=1"
759762
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
760763
TSAN_OPTIONS: "halt_on_error=1:history_size=7"
761764
run: |
@@ -767,7 +770,8 @@ jobs:
767770
768771
- name: Run C++ examples with sanitizers
769772
env:
770-
ASAN_OPTIONS: "detect_leaks=1:check_initialization_order=1:strict_init_order=1"
773+
ASAN_OPTIONS: "detect_leaks=1:detect_stack_use_after_return=1:detect_stack_use_after_scope=1:check_initialization_order=true:strict_init_order=true:new_delete_type_mismatch=0:intercept_tls_get_addr=0"
774+
LSAN_OPTIONS: "verbosity=1:log_threads=1"
771775
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
772776
TSAN_OPTIONS: "halt_on_error=1:history_size=7"
773777
run: |

0 commit comments

Comments
 (0)