ci: Add workaround for ASLR bug in sanitizers #1507

pull real-or-random wants to merge 2 commits into bitcoin-core:master from real-or-random:202403-clang-sanitizer-segfault-2 changing 2 files +6 −1
  1. real-or-random commented at 4:20 PM on March 19, 2024: contributor

    Fixes #1506.

    This also adds the sanitizer env variables to our debug output as suggested in the same issue.

  2. real-or-random added the label assurance on Mar 19, 2024
  3. real-or-random added the label ci on Mar 19, 2024
  4. real-or-random force-pushed on Mar 19, 2024
  5. in .github/actions/run-in-docker-action/action.yml:40 in 05271c4373 outdated
      35 | @@ -36,6 +36,9 @@ runs:
      36 |          load: true
      37 |          cache-from: type=gha
      38 |  
      39 | +    - # Workaround for https://github.com/google/sanitizers/issues/1614 .
      40 | +      run: sysctl -w vm.mmap_rnd_bits=28
    


    sipa commented at 4:56 PM on March 19, 2024:
    The template is not valid. /home/runner/work/secp256k1/secp256k1/./.github/actions/run-in-docker-action/action.yml (Line: 40, Col: 7): Required property is missing: shell
    

    real-or-random commented at 4:57 PM on March 19, 2024:

    should be fixed by force-push

  6. real-or-random force-pushed on Mar 19, 2024
  7. sipa commented at 7:03 PM on March 19, 2024: contributor

    The shell problem is resolved now, but the underlying issue seems unchanged.

  8. maflcko commented at 8:10 PM on March 19, 2024: contributor

    Yes, it is because of sysctl: permission denied on key "vm.mmap_rnd_bits", ignoring

    See https://github.com/bitcoin-core/secp256k1/actions/runs/8347067930/job/22845907812?pr=1507#step:3:587

  9. ci: Add workaround for ASLR bug in sanitizers
    Fixes #1506.
    84a93de4d2
  10. ci: Add sanitizer env variables to debug output a5e8ab2484
  11. real-or-random force-pushed on Mar 19, 2024
  12. real-or-random commented at 10:54 PM on March 19, 2024: contributor

    Ugh, yeah, sudo should help...

  13. jonasnick approved
  14. jonasnick commented at 9:00 AM on March 20, 2024: contributor

    ACK a5e8ab248447864873eae9b00f94175594477d66

  15. sipa commented at 12:22 PM on March 20, 2024: contributor

    utACK a5e8ab248447864873eae9b00f94175594477d66

  16. real-or-random merged this on Mar 20, 2024
  17. real-or-random closed this on Mar 20, 2024

  18. achow101 referenced this in commit b525369f8e on Mar 25, 2024
  19. achow101 referenced this in commit 2189d2f841 on Apr 1, 2024
  20. fanquake referenced this in commit 5354807b00 on Apr 4, 2024
  21. fanquake referenced this in commit 53eec53dca on Apr 4, 2024
  22. hebasto referenced this in commit b6de625950 on May 11, 2024
  23. vmta referenced this in commit 2ef958bb88 on May 20, 2024
  24. janus referenced this in commit 939262869a on Jun 6, 2024
  25. div72 referenced this in commit af627d47c3 on Apr 12, 2025
  26. oskarszoon referenced this in commit 0d5c9260f4 on Jul 1, 2025
  27. real-or-random referenced this in commit 7e460db4ca on Jan 29, 2026
  28. github-actions[bot] referenced this in commit 758d4e90b4 on Mar 1, 2026
  29. github-actions[bot] referenced this in commit 68a2178f22 on Mar 1, 2026
  30. github-actions[bot] referenced this in commit a8bc1a0b2b on Mar 1, 2026
  31. 0x000000000019d6689c085ae165831e934ff76 referenced this in commit 3b9450150d on Mar 2, 2026
  32. csjones referenced this in commit a4d92824ae on Mar 2, 2026

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