Skip to content

Commit

Permalink
ci: clang 17 in linux-clang-address-sanitizer (#2170)
Browse files Browse the repository at this point in the history
* bump clang_version_latest to 17

* try clang 18

* try clang 18 in linux-clang-address-sanitizer

* try fix compilation with linux-clang-address-sanitizer

* try sanitizer hack

* re-disable alloc_dealloc_mismatch

* try clang 16

* try clang 17
  • Loading branch information
yperbasis authored Jul 18, 2024
1 parent 0720aa3 commit 63cfdfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ jobs:
steps:
- checkout_with_submodules
- run:
name: "TSAN hack"
name: "Sanitizer hack"
# https://stackoverflow.com/questions/77850769/fatal-threadsanitizer-unexpected-memory-mapping-when-running-on-linux-kernels
command: sudo sysctl vm.mmap_rnd_bits=30
- build_using_conan:
Expand Down Expand Up @@ -277,14 +277,17 @@ jobs:
ASAN_OPTIONS: alloc_dealloc_mismatch=0 # https://github.com/llvm/llvm-project/issues/59432
UBSAN_OPTIONS: print_stacktrace=1
machine:
image: ubuntu-2204:2023.04.2
image: ubuntu-2404:2024.05.1
resource_class: 2xlarge
steps:
- checkout_with_submodules
- run:
name: "Sanitizer hack" # https://github.com/google/sanitizers/issues/856
command: sudo sysctl vm.mmap_rnd_bits=30
- build_using_conan:
build_type: Debug
compiler_id: clang
compiler_version: 15
compiler_version: 17
- test

linux-clang-coverage:
Expand Down Expand Up @@ -415,7 +418,7 @@ parameters:
default: 15
clang_version_latest:
type: integer
default: 16
default: 18
gcc_version_min:
type: integer
default: 11
Expand Down
2 changes: 1 addition & 1 deletion silkworm/infra/concurrency/idle_strategy_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ TEST_CASE("unparse wait mode", "[silkworm][infra][concurrency][idle_strategy]")
WaitMode::yielding,
WaitMode::busy_spin,
};
std::vector<absl::string_view> expected_texts{
std::vector<std::string> expected_texts{
"backoff", "blocking", "sleeping", "yielding", "busy_spin"};
for (std::size_t i{0}; i < input_wait_modes.size(); i++) {
const auto text{AbslUnparseFlag(input_wait_modes[i])};
Expand Down

0 comments on commit 63cfdfd

Please sign in to comment.