Enable -fsanitize flags in Travis #12691

issue eklitzke opened this issue on March 15, 2018
  1. eklitzke commented at 2:10 AM on March 15, 2018: contributor

    This idea is from discussion in #12686 . GCC 4.8 supports two -fsanitize flags, -fsanitize=address and -fsanitize=thread (and newer versions support even more of these flags). It would be a good idea to enable these options in Travis. @sipa points out that the build still isn't completely clean when using these flags, so to add this we'd either have to fix all of the existing errors or some up with a whilelisting mechanism to grandfather the old violations.

  2. fanquake added the label Tests on Mar 15, 2018
  3. eklitzke commented at 5:31 PM on March 22, 2018: contributor

    I'm trying to add a configure option for this in #12692 .

    I tested the Bitcoin test suite with various sanitizer configurations, and the Bitcoin test suite passes cleanly with the thread and undefined sanitizers, but there are serious issues with the address sanitizer that need to be resolved. The address sanitizer injects a segfault when errors occur, so enabling this in Travis is an all-or-nothing kind of thing.

  4. MarcoFalke commented at 8:22 PM on April 11, 2018: member

    Since some of the sanitizers are exclusive, we could enable one of the sanitisers for each of the travis jobs that run the functional test suite?

  5. MarcoFalke added the label good first issue on Jul 14, 2018
  6. MarcoFalke commented at 3:24 PM on August 24, 2018: member

    The thread sanitizer fails again after #13247. It could make sense to fix that issue and then set --with-sanitizers=thread for the x86_64 Linux, No wallet travis job, which runs the unit tests, but not the functional tests.

    Same for the undefined sanitizer.

  7. laanwj referenced this in commit 0ae15bd05f on Aug 27, 2018
  8. Empact commented at 3:40 PM on March 7, 2019: member

    Addressed in #14794 and #14829

    Could close?

  9. MarcoFalke closed this on Mar 7, 2019

  10. Munkybooty referenced this in commit 0c2de3a954 on Jun 30, 2021
  11. Munkybooty referenced this in commit d973e50968 on Jun 30, 2021
  12. Munkybooty referenced this in commit 8fe64f740e on Jul 1, 2021
  13. Munkybooty referenced this in commit 49e86df289 on Jul 2, 2021
  14. Munkybooty referenced this in commit 3e72c81f70 on Jul 2, 2021
  15. Munkybooty referenced this in commit 19fc1dcf01 on Jul 4, 2021
  16. UdjinM6 referenced this in commit 3de8dd48e8 on Jul 7, 2021
  17. Munkybooty referenced this in commit 216eb6fb69 on Jul 7, 2021
  18. UdjinM6 referenced this in commit 5bef8db181 on Jul 7, 2021
  19. Munkybooty referenced this in commit a24a351158 on Jul 7, 2021
  20. Munkybooty referenced this in commit 7327a0b2ec on Jul 8, 2021
  21. DrahtBot locked this on Dec 16, 2021

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-14 18:15 UTC

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