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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 3.1.4
    • Fix Version/s: 3.1.5
    • Component/s: Build
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 5 06/26/16

      Description

      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
      

        Attachments

          Activity

            People

            Assignee:
            kamran.khan Kamran K.
            Reporter:
            kamran.khan Kamran K.
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: