Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-809

Add options to enable Sanitizers to CMake build

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • None
    • None

    Description

      The usage is to first enable sanitizers during compilation

      cmake .. -DUSE_SANITIZERS=ON -DProton_DIR=... -DCMAKE_BUILD_TYPE=Release
      

      or

      cmake .. -DUSE_TSAN=ON -DProton_DIR=... -DCMAKE_BUILD_TYPE=Release
      

      (TSan is incompatible with the other sanitizers.)

      Then, either run unit tests with the usual ctest -VV, or run qdrouterd.

      Sanitizers can be given parameters in environment variable. For example, TSAN_OPTIONS="color=always" ctest -VV to see colored error messages in ctest output. Other options are described on the Sanitizers website, e.g. https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags

      For best results, also compile Proton with sanitizers.

      Attachments

        Issue Links

          Activity

            People

              tross Ted Ross
              jdanek Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: