UnboundLocalError when building with --sanitize=thread and without --llvm-symbolizer

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 3.1.5
    • Affects Version/s: 3.1.4
    • Component/s: Build
    • Fully Compatible
    • ALL
    • Sharding 5 06/26/16
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If you fail to specify a --llvm-symbolizer value when building with --sanitize=thread, you'll get an UnboundLocalError:

      scons VARIANT_DIR=thread CC=`which clang-3.6` CXX=`which clang++-3.6` --sanitize=thread -j7 --allocator=system --opt=off core
      ...
      
      UnboundLocalError: local variable 'tsan_options' referenced before assignment:
        File "/home/s/code/mongo/mongo/SConstruct", line 2202:
          env = doConfigure( env )
        File "/home/s/code/mongo/mongo/SConstruct", line 1828:
          tsan_options += "suppressions=\"%s\" " % myenv.File("#etc/tsan.suppressions").abspath
      

              Assignee:
              Kamran K. (Inactive)
              Reporter:
              Kamran K. (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: