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

Should also set LLVM_SYMBOLIZER in mongodtoolchain gcc vars files

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      We set the symbolizer in the clang vars files but not in gcc. That means that if you use --sanitize=address with toolchain gcc you get an error asking you to manually pass LLVM_SYMBOLIZER=path to scons. But if you are using the toolchain compiler, we should assume you want to use the toolchain llvm-symbolizer as well and just do that busy work for you.

      Since gcc -print-prog-name=llvm-symbolizer just prints llvm-symbolizer at you without path-qualifiying it, we can't use the same solution. But for the toolchain, we know that it is in the same bin/ dir as the compiler, so we can either set it relative to the path of the vars file, or just set it based on toolchain_bindir. Alternatively, since we inject the toolchain into the PATH, maybe an unqualified llvm-symbolizer command is fine, and the error we give if LLVM_SYMBOLIZER isn't configured is overly-agressive?

            Assignee:
            trevor.guidry@mongodb.com Trevor Guidry
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: