test, ci: Use the documented way to test with ThreadSanitizer #19038

issue hebasto opened this issue on May 21, 2020
  1. hebasto commented at 2:06 PM on May 21, 2020: member

    According to the ThreadSanitizer docs:

    C++11 threading is supported with llvm libc++.

    To use the ThreadSanitizer in the documented way we should build from depends with clang++ -stdlib=libc++ (see #18820).

    Related to #19024.

  2. MarcoFalke commented at 2:25 PM on May 21, 2020: member

    Might also be useful to fix up the docs doc/developer-notes.md

  3. MarcoFalke commented at 3:06 PM on May 21, 2020: member

    So I guess there are two things to note:

    • llvm-10 is required
    • llvm libc++ is required
  4. MarcoFalke cross-referenced this on May 21, 2020 from issue ci: tsan with -stdlib=libc++-10 by MarcoFalke
  5. hebasto commented at 5:58 AM on May 22, 2020: member

    Also the --disable-wallet configure option could be mentioned:

  6. fanquake referenced this in commit 575589a62e on Jun 3, 2020
  7. sidhujag referenced this in commit 07d81bbfb9 on Jun 3, 2020
  8. hebasto cross-referenced this on Jul 5, 2020 from issue doc: Mention libc++ for ThreadSanitizer by hebasto
  9. MarcoFalke commented at 2:43 PM on July 5, 2020: member

    So the gnu tsan seems to cover a subset of the tsan in the llvm libc++? While it is probably recommended to use llvm 10 libc++, it shouldn't be a requirement to just run with tsan. (It is only a requirement if you want to get the most sensitivity out of the tsan)

  10. jasonbcox referenced this in commit 93237957b8 on Sep 24, 2020
  11. fanquake added the label Tests on Aug 11, 2022
  12. fanquake commented at 2:59 PM on August 11, 2022: member

    What is left to be done here?

  13. MarcoFalke closed this on Aug 11, 2022

  14. bitcoin locked this on Aug 11, 2023

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-05-20 06:54 UTC