Skip to content

[ci] Enable ASAN special build that does not halt #19636

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/root-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ jobs:
- image: ubuntu22
overrides: ["imt=Off", "CMAKE_BUILD_TYPE=Debug"]
- image: ubuntu2404
overrides: ["CMAKE_BUILD_TYPE=Debug"]
is_special: true
property: ASAN
overrides: ["CMAKE_BUILD_TYPE=Debug", "asan=ON"]
- image: ubuntu2504
overrides: ["CMAKE_CXX_STANDARD=23"]
- image: ubuntu2510
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/RootBuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ option(minimal "Enable only required options by default" OFF)
option(rootbench "Build rootbench if rootbench exists in root or if it is a sibling directory." OFF)
option(roottest "Build roottest if roottest exists in root or if it is a sibling directory." OFF)
option(testing "Enable testing with CTest" OFF)
option(asan "Build ROOT with address sanitizer instrumentation" OFF)
option(asan "Build ROOT with address sanitizer instrumentation (only GCC or Clang)" OFF)

set(gcctoolchain "" CACHE PATH "Set path to GCC toolchain used to build llvm/clang")

Expand Down
3 changes: 2 additions & 1 deletion core/sanitizer/SanitizerSetup.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const char* __asan_default_options() {
":detect_container_overflow=1"
":alloc_dealloc_mismatch=0"
DETECT_LEAKS
":verify_asan_link_order=0";
":verify_asan_link_order=0"
":halt_on_error=0";
}

/// Default options when leak sanitizer starts up in ROOT exectuables.
Expand Down
Loading