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

Antithesis {A,UB}SAN build fails to run mongod --version

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Service Arch 2024-01-22, Service Arch 2024-02-05

      Since SERVER-82640, the {A,UB}SAN antithesis build has been broken. This is because we try to run `mongod --version` during `compile_dist_test` and it fails due to the sanitizer runtime not being found.

      This happens because the `-shared-libsan` option doesn't make the linker set up the `RPATH` or any other means for the binary to find the runtime. Currently, we get around this using some magic in the Dockerfile.

      Instead, we should make it so the build is aware of the shared sanitizer configuration (via an option to `scons.py`). The option would set up all of the compile and link flags (instead of how we manually add them to `LINKFLAGS` and `CCFLAGS`) and use `AutoInstall` to install the system libraries to the library install directory. A similar example is how we do the VC++ redistributable install under windows.

            Assignee:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Reporter:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: