@@ -233,7 +233,8 @@ commands:
233
233
working_directory : ~/build
234
234
command : |
235
235
set +e
236
- export ASAN_OPTIONS=detect_invalid_pointer_pairs=1 # TODO: value 2 causes failures in standard library.
236
+ # TODO: Value 2 causes failures in standard library, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97415.
237
+ export ASAN_OPTIONS=detect_invalid_pointer_pairs=1
237
238
expected=" PASSED <<parameters.expected_passed>>, FAILED <<parameters.expected_failed>>, SKIPPED <<parameters.expected_skipped>>."
238
239
result=$(bin/fizzy-spectests <<#parameters.skip_validation>>--skip-validation<</parameters.skip_validation>> json | tail -1)
239
240
echo $result
@@ -371,16 +372,14 @@ jobs:
371
372
sanitizers-clang :
372
373
executor : linux-clang-latest
373
374
environment :
374
- # TODO: Enable detect_stack_use_after_return=1 when https://bugs.llvm.org/show_bug.cgi?id=47626 is fixed.
375
- ASAN_OPTIONS : detect_invalid_pointer_pairs=2
375
+ ASAN_OPTIONS : detect_stack_use_after_return=1:check_initialization_order=1
376
376
UBSAN_OPTIONS : halt_on_error=1
377
377
steps :
378
378
- install_testfloat
379
379
- checkout
380
380
- build :
381
381
build_type : RelWithDebInfo
382
- # TODO: pointer-compare produces failure in std::string operator+.
383
- cmake_options : -DENABLE_ASSERTIONS=ON -DSANITIZE=address,pointer-subtract,undefined,nullability,implicit-unsigned-integer-truncation,implicit-signed-integer-truncation
382
+ cmake_options : -DENABLE_ASSERTIONS=ON -DSANITIZE=address,undefined,nullability,implicit-unsigned-integer-truncation,implicit-signed-integer-truncation
384
383
- test
385
384
- benchmark :
386
385
min_time : " 0.01"
@@ -389,8 +388,8 @@ jobs:
389
388
sanitizers-gcc :
390
389
executor : linux-gcc-latest
391
390
environment :
392
- # TODO: Enable detect_stack_use_after_return=1 when https://bugs.llvm .org/show_bug.cgi?id=47626 is fixed.
393
- ASAN_OPTIONS : detect_invalid_pointer_pairs=2
391
+ # TODO: Enable detect_stack_use_after_return=1 when https://gcc.gnu .org/bugzilla/ show_bug.cgi?id=97414 is fixed.
392
+ ASAN_OPTIONS : detect_invalid_pointer_pairs=2:check_initialization_order=1
394
393
UBSAN_OPTIONS : halt_on_error=1
395
394
steps :
396
395
- checkout
@@ -409,15 +408,13 @@ jobs:
409
408
sanitizers-macos :
410
409
executor : macos
411
410
environment :
412
- # TODO: Enable detect_stack_use_after_return=1 when https://bugs.llvm.org/show_bug.cgi?id=47626 is fixed.
413
- ASAN_OPTIONS : detect_invalid_pointer_pairs=2
411
+ ASAN_OPTIONS : detect_stack_use_after_return=1:check_initialization_order=1
414
412
UBSAN_OPTIONS : halt_on_error=1
415
413
steps :
416
414
- install_macos_deps
417
415
- checkout
418
416
- build :
419
417
build_type : RelWithDebInfo
420
- # TODO: Enable pointer-compare and pointer-subtract only for libfizzy.
421
418
cmake_options : -DENABLE_ASSERTIONS=ON -DSANITIZE=address,undefined,nullability,implicit-unsigned-integer-truncation,implicit-signed-integer-truncation
422
419
- test
423
420
- benchmark :
@@ -481,8 +478,7 @@ jobs:
481
478
fuzzing :
482
479
executor : linux-clang-latest
483
480
environment :
484
- # TODO: Enable detect_stack_use_after_return=1 when https://bugs.llvm.org/show_bug.cgi?id=47626 is fixed.
485
- ASAN_OPTIONS : detect_invalid_pointer_pairs=2
481
+ ASAN_OPTIONS : detect_stack_use_after_return=1:check_initialization_order=1
486
482
UBSAN_OPTIONS : halt_on_error=1
487
483
steps :
488
484
- checkout
@@ -595,10 +591,10 @@ jobs:
595
591
rustup toolchain install nightly-x86_64-unknown-linux-gnu
596
592
- run :
597
593
name : Build (debug mode)
598
- command : RUSTFLAGS="-Z sanitizer=address" ASAN_OPTIONS=detect_leaks=1 cargo +nightly build --target x86_64-unknown-linux-gnu
594
+ command : RUSTFLAGS="-Z sanitizer=address" cargo +nightly build --target x86_64-unknown-linux-gnu
599
595
- run :
600
596
name : Test (debug mode)
601
- command : RUSTFLAGS="-Z sanitizer=address -C opt-level=0" ASAN_OPTIONS=detect_leaks=1 cargo +nightly test --target x86_64-unknown-linux-gnu
597
+ command : RUSTFLAGS="-Z sanitizer=address -C opt-level=0" cargo +nightly test --target x86_64-unknown-linux-gnu
602
598
603
599
workflows :
604
600
version : 2
0 commit comments