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

launchProcess in the shell should _exit rather than quickExit after fork

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.1.7
    • Fix Version/s: 3.1.8
    • Component/s: Shell
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Build the shell with address sanitizer

      invoke runProgram with an invalid executable with the leak checker on.

      See leak information.

      Show
      Build the shell with address sanitizer invoke runProgram with an invalid executable with the leak checker on. See leak information.
    • Sprint:
      Platform 9 (09/18/15)

      Description

      launchProcess, which underlies runProgram, in the shell calls quickExit after a fork if it fails to dup fds or if the exec fails. This means that some atexit handlers will be called incorrectly.

      In particular, this triggers the leak checker, which we didn't intend to run as a result of runProgram.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: