Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-5904 Enable ThreadSanitizer for Impala
  3. IMPALA-9567

Compile thirdparty toolchain libs with TSAN

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Infrastructure
    • None
    • ghx-label-10

    Description

      From Todd L. on an email chain about enabling TSAN:

      One point, though, is that for TSAN to work well, you need to instrument
      thirdparty libs as well, so we'd need to start from native-toolchain and
      work our way up.

      Currently, all thirdparty libs from Impala's native-toolchain are release builds, we need to have TSAN-enabled builds (e.g. compile with fsanitize=thread) in order to get TSAN to work for thirdparty libs as well. We enabled the TSAN flag ignore_noninstrumented_modules to suppress all the TSAN warnings from the JVM. So we currently can't use TSAN for any code that cross third-party libs (e.g. we probably can't catch any data races that involve boost::mutex).

      Attachments

        Activity

          People

            Unassigned Unassigned
            stakiar Sahil Takiar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: