ci: remove --with-asm=no (secp256k1) from MSAN jobs #29742

pull fanquake wants to merge 2 commits into bitcoin:master from fanquake:secp256k1_msan_fixups changing 3 files +3 −3
  1. fanquake commented at 6:47 PM on March 26, 2024: member

    Bumps LLVM to 18.1.3:

    Drops --with-asm=no (only being passed to secp256k1) from the MSAN CI. New MSAN annotations were pulled in as part of #29803.

  2. DrahtBot commented at 6:47 PM on March 26, 2024: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage

    For detailed information about the code coverage, see the test coverage report.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK hebasto, maflcko
    Concept ACK theuni, real-or-random

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #29790 ([DO NOT MERGE] cmake: Migrate CI scripts to CMake-based build system -- WIP by hebasto)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  3. theuni commented at 7:39 PM on March 26, 2024: member

    Nice. Obvious concept ACK. Can discuss the secp subtree bump separately.

    Why is the llvm 18.1.2 bump bundled here, though?

  4. fanquake commented at 7:48 PM on March 26, 2024: member

    Why is the llvm 18.1.2 bump bundled here, though?

    Mostly just because I was going to include another MSAN patch, to fix the instrumentation on libuwind (https://github.com/llvm/llvm-project/issues/84348) but haven't quite got that working yet.

    Note that depending on timings, if https://github.com/llvm/llvm-project/pull/86201 goes into the next 18.x release, I'll want to bump/pull that in too, because it'll remove the need for a workaround when running the CI locally on newer kernels (same issue as this one https://github.com/bitcoin-core/secp256k1/issues/1506). Happy to split up the changes in any case, just had a MSAN bundle to test here.

  5. DrahtBot added the label CI failed on Mar 26, 2024
  6. DrahtBot commented at 11:56 PM on March 26, 2024: contributor

    <!--85328a0da195eb286784d51f73fa0af9-->

    🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the documentation.

    Possibly this is due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch.

    Leave a comment here, if you need help tracking down a confusing failure.

    <sub>Debug: https://github.com/bitcoin/bitcoin/runs/23120272058</sub>

  7. maflcko commented at 8:45 AM on March 27, 2024: member

    Working ok locally.

    Seems to be failing in CI. I guess due to build-architecture differences, or is there a bug in the CI system?

  8. fanquake commented at 10:14 AM on March 27, 2024: member

    Seems to be failing in CI. I guess due to build-architecture differences, or is there a bug in the CI system?

    I think so: aarch64 native_msan: pass native_fuzz_with_msan: pass

    x86_64 native_msan: fail: (reported here: https://github.com/bitcoin-core/secp256k1/issues/1511). pass: with the secp256k1 tests disabled. native_fuzz_with_msan: pass

  9. fanquake force-pushed on Mar 27, 2024
  10. theuni commented at 6:23 PM on April 3, 2024: member

    Ready for bump now that https://github.com/bitcoin-core/secp256k1/pull/1512 is merged.

  11. fanquake force-pushed on Apr 4, 2024
  12. fanquake commented at 8:57 AM on April 4, 2024: member

    Ready for bump now that https://github.com/bitcoin-core/secp256k1/pull/1512 is merged.

    Converted to a proper subtree bump. Rewrote the PR description.

  13. real-or-random commented at 9:23 AM on April 4, 2024: contributor

    Concept ACK on removing --with-asm=no

  14. in ci/test/00_setup_env_native_fuzz_with_msan.sh:20 in 13a5975db7 outdated
      16 | @@ -17,7 +17,7 @@ export PACKAGES="ninja-build"
      17 |  # BDB generates false-positives and will be removed in future
      18 |  export DEP_OPTS="DEBUG=1 NO_BDB=1 NO_QT=1 CC=clang CXX=clang++ CFLAGS='${MSAN_FLAGS}' CXXFLAGS='${MSAN_AND_LIBCXX_FLAGS}'"
      19 |  export GOAL="install"
      20 | -export BITCOIN_CONFIG="--enable-fuzz --with-sanitizers=fuzzer,memory --disable-hardening --with-asm=no CFLAGS='${MSAN_FLAGS}' CPPFLAGS='-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE' CXXFLAGS='${MSAN_AND_LIBCXX_FLAGS}'"
      21 | +export BITCOIN_CONFIG="--enable-fuzz --with-sanitizers=fuzzer,memory --disable-hardening CFLAGS='${MSAN_FLAGS}' CPPFLAGS='-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE' CXXFLAGS='${MSAN_AND_LIBCXX_FLAGS}'"
    


    maflcko commented at 12:05 PM on April 5, 2024:
    export BITCOIN_CONFIG="--enable-fuzz --with-sanitizers=fuzzer,memory --disable-hardening CPPFLAGS='-DBOOST_MULTI_INDEX_ENABLE_SAFE_MODE'
    

    nit: While touching, can remove the duplicate CFLAGS and CXXFLAGS. Same below.


    fanquake commented at 4:03 PM on April 5, 2024:

    Will be done via #29800.

  15. DrahtBot added the label Needs rebase on Apr 5, 2024
  16. fanquake referenced this in commit b5d21182e5 on Apr 6, 2024
  17. ci: use LLVM 18.1.3 in MSAN jobs c7efee591a
  18. ci: remove --with-asm usage (secp256k1) 61641e2466
  19. fanquake referenced this in commit 24f4bff7f2 on Apr 6, 2024
  20. fanquake force-pushed on Apr 6, 2024
  21. fanquake renamed this:
    [WIP] ci: test secp256k1 MSAN asm annotations
    ci: remove --with-asm=no (secp256k1) from MSAN jobs
    on Apr 6, 2024
  22. fanquake marked this as ready for review on Apr 6, 2024
  23. fanquake commented at 8:46 AM on April 6, 2024: member
  24. DrahtBot removed the label Needs rebase on Apr 6, 2024
  25. DrahtBot removed the label CI failed on Apr 6, 2024
  26. DrahtBot added the label Tests on Apr 6, 2024
  27. hebasto approved
  28. hebasto commented at 11:36 AM on April 6, 2024: member

    ACK 61641e2466768e128fef995e9fcb24cad90e527d.

  29. DrahtBot requested review from real-or-random on Apr 6, 2024
  30. DrahtBot requested review from theuni on Apr 6, 2024
  31. fanquake commented at 3:07 PM on April 6, 2024: member

    Have run this successfully on all 4 MSAN jobs locally.

  32. maflcko commented at 9:01 AM on April 7, 2024: member

    lgtm ACK 61641e2466768e128fef995e9fcb24cad90e527d

  33. fanquake merged this on Apr 7, 2024
  34. fanquake closed this on Apr 7, 2024

  35. fanquake deleted the branch on Apr 7, 2024
  36. jonathanmetzman referenced this in commit e8affd76a8 on Apr 8, 2024
  37. Pttn referenced this in commit 9fa7d117ba on Apr 13, 2024
  38. bitcoin locked this on Apr 7, 2025

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-26 06:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me