Skip to content

ci: use LLVM 22 in sanitizer tasks#34660

Merged
hebasto merged 1 commit intobitcoin:masterfrom
fanquake:clang_22_sanitizer
Feb 24, 2026
Merged

ci: use LLVM 22 in sanitizer tasks#34660
hebasto merged 1 commit intobitcoin:masterfrom
fanquake:clang_22_sanitizer

Conversation

@fanquake
Copy link
Member

Clang/LLVM 22 is out, and upstream apt issues seem to be resolved. Use it in the sanitizer related tasks in CI. Not changing tidy here (needs more changes).

@DrahtBot DrahtBot added the Tests label Feb 24, 2026
@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 24, 2026

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK maflcko, hebasto

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

@maflcko
Copy link
Member

maflcko commented Feb 24, 2026

lgtm ACK a28eedb

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a28eedb.

@hebasto hebasto merged commit 5db78c8 into bitcoin:master Feb 24, 2026
26 checks passed
@fanquake fanquake deleted the clang_22_sanitizer branch February 24, 2026 13:13
ryanofsky added a commit to ryanofsky/libmultiprocess that referenced this pull request Mar 1, 2026
This workaround is needed to fix "parameter pack may not be accessed at an out
of bounds index" compile errors in
bitcoin/bitcoin#29409 due in sanitizer jobs due to
bitcoin/bitcoin#34660 which updates sanitizers to use
LLVM 22 instead of LLVM 21:

https://github.com/bitcoin/bitcoin/actions/runs/22501264518/job/65188721708?pr=29409
https://github.com/bitcoin/bitcoin/actions/runs/22501264518/job/65188721733?pr=29409

```c++
/cxx_build/include/c++/v1/__fwd/tuple.h:40:52: error: a parameter pack may not be accessed at an out of bounds index
   40 |   using type _LIBCPP_NODEBUG = __type_pack_element<_Ip, _Tp...>;
      |                                                    ^
/cxx_build/include/c++/v1/__utility/try_key_extraction.h:82:67: note: in instantiation of template class 'std::tuple_element<0, std::tuple<>>' requested here
   82 |                             is_same<__remove_const_ref_t<typename tuple_element<0, _Tuple1>::type>, _KeyT>::value,
      |                                                                   ^
```

The upstream LLVM bug is llvm/llvm-project#167709 and
fix is llvm/llvm-project#183614
ryanofsky added a commit to bitcoin-core/libmultiprocess that referenced this pull request Mar 9, 2026
f61af48 type-map: Work around LLVM 22 "out of bounds index" error (Ryan Ofsky)

Pull request description:

  This workaround is needed to fix "parameter pack may not be accessed at an out of bounds index" compile errors in
  bitcoin/bitcoin#29409 due in sanitizer jobs due to bitcoin/bitcoin#34660 which updates sanitizers to use LLVM 22 instead of LLVM 21:

  https://github.com/bitcoin/bitcoin/actions/runs/22501264518/job/65188721708?pr=29409 https://github.com/bitcoin/bitcoin/actions/runs/22501264518/job/65188721733?pr=29409

  ```c++
  /cxx_build/include/c++/v1/__fwd/tuple.h:40:52: error: a parameter pack may not be accessed at an out of bounds index
     40 |   using type _LIBCPP_NODEBUG = __type_pack_element<_Ip, _Tp...>;
        |                                                    ^
  /cxx_build/include/c++/v1/__utility/try_key_extraction.h:82:67: note: in instantiation of template class 'std::tuple_element<0, std::tuple<>>' requested here
     82 |                             is_same<__remove_const_ref_t<typename tuple_element<0, _Tuple1>::type>, _KeyT>::value,
        |                                                                   ^
  ```

  The upstream LLVM bug is llvm/llvm-project#167709 and fix is llvm/llvm-project#183614

ACKs for top commit:
  hebasto:
    ACK f61af48, I have reviewed the code and it looks OK.

Tree-SHA512: 19eec5cd304f6e585626fe39a85a82ef2b9b2f5ab1ca8b81c0836d76d3846eb9d4893c0766248251d9e685d49d4a5e84141377dad13888fa8268d78f5c9f7be5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants