Constant-time tests on macOS #1151

issue sipa opened this issue on November 14, 2022
  1. sipa commented at 10:43 PM on November 14, 2022: contributor
  2. maflcko commented at 11:40 AM on November 29, 2022: contributor

    Is this fixed now?

  3. real-or-random commented at 12:56 PM on November 29, 2022: contributor

    from #1152:

    It drops valgrind and the ctime tests on macOS, as valgrind simply isn't supported anymore there. We may recover some of that functionality by adding MSan (https://github.com/bitcoin-core/secp256k1/pull/1155) for memory-checking there, and adding ctime-using-mtime (TODO).

    I think we should leave it open until this has been fixed.

    • Enable MSan for MacOS
    • Make the constant-time tests work on MSan
  4. real-or-random renamed this:
    Cirrus CI sunsetting x86-based macOS support
    Constant-time tests with MSan / for MacOS
    on Dec 5, 2022
  5. real-or-random added the label assurance on Jan 5, 2023
  6. real-or-random commented at 1:51 PM on January 11, 2023: contributor

    Oh, the valgrind fork now works on Ventura https://github.com/LouisBrunner/valgrind-macos/issues/54#issuecomment-1377334552 (except for memory leak tracking, which is still WIP but that shouldn't be required for our purposes.) So we should probably revert https://github.com/bitcoin-core/secp256k1/pull/1152/commits/c0ae48c9950a908b637bff27791fabbe2833c4a5 partly.

  7. hebasto commented at 10:18 AM on June 5, 2023: member
    • Enable MSan for MacOS

    https://clang.llvm.org/docs/MemorySanitizer.html#supported-platforms:

    MemorySanitizer is supported on the following OS:

    • Linux
    • NetBSD
    • FreeBSD
  8. real-or-random commented at 11:09 AM on June 11, 2023: contributor

    Oh indeed, MSan doesn't work on macOS...

    • Make the constant-time tests work on MSan

    And this has been solved by #1169.

    This means that there's nothing to do for us here except to wait for https://github.com/LouisBrunner/valgrind-macos/issues/56. This will make it possible to run Valgrind on macOS again.

    Leaving this open to track this.

  9. real-or-random renamed this:
    Constant-time tests with MSan / for MacOS
    Constant-time tests on macOS
    on Jun 11, 2023
  10. real-or-random added the label ci on Aug 28, 2023
  11. real-or-random referenced this in commit 65c79fe2d0 on Aug 29, 2023
  12. real-or-random closed this on Aug 29, 2023


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-19 06:52 UTC