File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -383,31 +383,41 @@ jobs:
383
383
CXX : clang++-19
384
384
- name : Run tests (MPI)
385
385
run : |
386
- export ASAN_RUN=1
387
386
source scripts/run_mpi.sh "--oversubscribe"
388
387
env :
389
388
PROC_COUNT : 2
390
389
OMP_NUM_THREADS : 2
390
+ ASAN_RUN : 1
391
+ ASAN_OPTIONS : abort_on_error=1
392
+ UBSAN_OPTIONS : halt_on_error=1
391
393
- name : Run tests (threads, num_threads=1)
392
394
run : source scripts/run_threads.sh
393
395
env :
394
396
OMP_NUM_THREADS : 1
395
397
ASAN_RUN : 1
398
+ ASAN_OPTIONS : abort_on_error=1
399
+ UBSAN_OPTIONS : halt_on_error=1
396
400
- name : Run tests (threads, num_threads=2)
397
401
run : source scripts/run_threads.sh
398
402
env :
399
403
OMP_NUM_THREADS : 2
400
404
ASAN_RUN : 1
405
+ ASAN_OPTIONS : abort_on_error=1
406
+ UBSAN_OPTIONS : halt_on_error=1
401
407
- name : Run tests (threads, num_threads=3)
402
408
run : source scripts/run_threads.sh
403
409
env :
404
410
OMP_NUM_THREADS : 3
405
411
ASAN_RUN : 1
412
+ ASAN_OPTIONS : abort_on_error=1
413
+ UBSAN_OPTIONS : halt_on_error=1
406
414
- name : Run tests (threads, num_threads=4)
407
415
run : source scripts/run_threads.sh
408
416
env :
409
417
OMP_NUM_THREADS : 4
410
418
ASAN_RUN : 1
419
+ ASAN_OPTIONS : abort_on_error=1
420
+ UBSAN_OPTIONS : halt_on_error=1
411
421
ubuntu-clang-sanitizer-build-extended :
412
422
needs :
413
423
- ubuntu-clang-sanitizer-build
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
6
6
message (STATUS "Enabled address sanitizer" )
7
7
endif ()
8
8
if (ENABLE_UB_SANITIZER )
9
- add_compile_options (-fsanitize=undefined )
10
- add_link_options (-fsanitize=undefined )
9
+ add_compile_options (-fsanitize=undefined -fno-sanitize=signed-integer-overflow )
10
+ add_link_options (-fsanitize=undefined -fno-sanitize=signed-integer-overflow )
11
11
message (STATUS "Enabled UB sanitizer" )
12
12
endif ()
13
13
else ()
You can’t perform that action at this time.
0 commit comments