Skip to content

Commit 3e8ea8c

Browse files
committed
ci: enable sanitizer
1 parent 3cf5963 commit 3e8ea8c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/sanitizer_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ jobs:
5050
- name: Run Tests
5151
working-directory: build
5252
env:
53-
ASAN_OPTIONS: log_path=out.log:detect_leaks=1:symbolize=1:strict_string_checks=1:halt_on_error=0:detect_container_overflow=0
53+
ASAN_OPTIONS: log_path=out.log:detect_leaks=1:symbolize=1:strict_string_checks=1:halt_on_error=1:detect_container_overflow=0
5454
LSAN_OPTIONS: suppressions=${{ github.workspace }}/.github/lsan-suppressions.txt
55-
UBSAN_OPTIONS: log_path=out.log:halt_on_error=0:print_stacktrace=1:suppressions=${{ github.workspace }}/.github/ubsan-suppressions.txt
55+
UBSAN_OPTIONS: log_path=out.log:halt_on_error=1:print_stacktrace=1:suppressions=${{ github.workspace }}/.github/ubsan-suppressions.txt
5656
run: |
5757
ctest --output-on-failure
5858
- name: Save the test output

cmake_modules/IcebergThirdpartyToolchain.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,16 @@ function(resolve_arrow_dependency)
9292
set(ZLIB_SOURCE
9393
"SYSTEM"
9494
CACHE STRING "" FORCE)
95+
if(ICEBERG_ENABLE_ASAN)
96+
set(ARROW_USE_ASAN
97+
ON
98+
CACHE BOOL "" FORCE)
99+
endif()
100+
if(ICEBERG_ENABLE_UBSAN)
101+
set(ARROW_USE_UBSAN
102+
ON
103+
CACHE BOOL "" FORCE)
104+
endif()
95105

96106
fetchcontent_declare(VendoredArrow
97107
${FC_DECLARE_COMMON_OPTIONS}

0 commit comments

Comments
 (0)