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

launchProcess in the shell should _exit rather than quickExit after fork

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.8
    • Affects Version/s: 3.1.7
    • Component/s: Shell
    • None
    • Fully Compatible
    • ALL
    • 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.
    • Platform 9 (09/18/15)

      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.

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: