Restrict the exported symbols of C++ test extensions

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The test extensions we have added as part of the C++ sdk project are unable to load because of a double initialization of global initializers in mongo/base dependencies. This is because we are not currently preventing the mongo/base symbols the extensions are built with from being exported in the shared object. When inspecting the elf binary, all the symbols that came from mongo/base are marked as WEAK, so they collide and resolve to the existing symbols in the host process.

      To fix this issue, we need to make sure those symbols are not exported and marked as local instead.

              Assignee:
              Santiago Roche
              Reporter:
              Santiago Roche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: