Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-18998

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

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

      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.khan Kamran K.
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: