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

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.1.7
    • 3.1.8
    • 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)

    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

            jason.carey@mongodb.com Jason Carey
            jason.carey@mongodb.com Jason Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: