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

Shell's ProgramRunner::launchProcess must not crash if it fails to fork the child process

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Platforms 11 (03/11/16)

      Happened during an evergreen run:

      [js_test:conc_update] 2015-11-19T18:11:46.080 0000 ----- BEGIN BACKTRACE -----
      [js_test:conc_update] 2015-11-19T18:11:46.082 0000 {"backtrace":[{"b":"400000","o":"5C3502"},{"b":"400000","o":"572244"},{"b":"400000","o":"564899"},{"b":"400000","o":"55CB6F"},{"b":"400000","o":"5613D0"},{"b":"400000","o":"561916"},{"b":"400000","o":"516E98"},{"b":"400000","o":"501D92"},{"b":"400000","o":"8D9DD2"},{"b":"400000","o":"8BBDFA"},{"b":"400000","o":"D297AB"},{"b":"400000","o":"8D9DD2"},{"b":"400000","o":"8BBB35"},{"b":"400000","o":"8B6ED5"},{"b":"400000","o":"8BB869"},{"b":"400000","o":"8BBC74"},{"b":"400000","o":"D297AB"},{"b":"400000","o":"8D9DD2"},{"b":"400000","o":"8BBB35"},{"b":"400000","o":"8B6ED5"},{"b":"400000","o":"8BB869"},{"b":"400000","o":"8BBC74"},{"b":"400000","o":"8BCAD6"},{"b":"400000","o":"AB707B"},{"b":"0","o":"2AB9AC90681F"}],"processInfo":{ "mongodbVersion" : "3.2.0-rc3-57-g078ca78", "gitVersion" : "078ca783b7aa817a8f1a9629f495ccb414d189f3", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "2.6.18-194.el5xen", "version" : "#1 SMP Tue Mar 16 22:01:26 EDT 2010", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000" }, { "b" : "2AB9A3431000", "path" : "/lib64/librt.so.1", "elfType" : 3 }, { "b" : "2AB9A363A000", "path" : "/lib64/libdl.so.2", "elfType" : 3 }, { "b" : "2AB9A383E000", "path" : "/usr/lib64/libstdc  .so.6", "elfType" : 3 }, { "b" : "2AB9A3B3F000", "path" : "/lib64/libm.so.6", "elfType" : 3 }, { "b" : "2AB9A3DC2000", "path" : "/lib64/libgcc_s.so.1", "elfType" : 3 }, { "b" : "2AB9A3FD0000", "path" : "/lib64/libpthread.so.0", "elfType" : 3 }, { "b" : "2AB9A41ED000", "path" : "/lib64/libc.so.6", "elfType" : 3 }, { "b" : "2AB9A3213000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3 } ] }}
      [js_test:conc_update] 2015-11-19T18:11:46.083 0000  mongo(mongo::printStackTrace(std::ostream&) 0x32) [0x9c3502]
      [js_test:conc_update] 2015-11-19T18:11:46.083 0000  mongo(mongo::logContext(char const*) 0x134) [0x972244]
      [js_test:conc_update] 2015-11-19T18:11:46.083 0000  mongo(mongo::verifyFailed(char const*, char const*, unsigned int) 0xB9) [0x964899]
      [js_test:conc_update] 2015-11-19T18:11:46.083 0000  mongo(mongo::shell_utils::ProgramRunner::launchProcess(int) 0x30F) [0x95cb6f]
      [js_test:conc_update] 2015-11-19T18:11:46.083 0000  mongo(mongo::shell_utils::ProgramRunner::start() 0x40) [0x9613d0]
      [js_test:conc_update] 2015-11-19T18:11:46.084 0000  mongo(mongo::shell_utils::StartMongoProgram(mongo::BSONObj const&, void*) 0x46) [0x961916]
      [js_test:conc_update] 2015-11-19T18:11:46.084 0000  mongo(mongo::mozjs::NativeFunctionInfo::call(JSContext*, JS::CallArgs) 0x118) [0x916e98]
      [js_test:conc_update] 2015-11-19T18:11:46.084 0000  mongo(bool mongo::mozjs::smUtils::call<mongo::mozjs::NativeFunctionInfo>(JSContext*, unsigned int, JS::Value*) 0x32) [0x901d92]
      [js_test:conc_update] 2015-11-19T18:11:46.084 0000  mongo(js::CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), JS::CallArgs const&) 0x112) [0xcd9dd2]
      [js_test:conc_update] 2015-11-19T18:11:46.085 0000  mongo(js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) 0x3CA) [0xcbbdfa]
      [js_test:conc_update] 2015-11-19T18:11:46.085 0000  mongo(js_fun_apply(JSContext*, unsigned int, JS::Value*) 0x24B) [0x11297ab]
      [js_test:conc_update] 2015-11-19T18:11:46.085 0000  mongo(js::CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), JS::CallArgs const&) 0x112) [0xcd9dd2]
      [js_test:conc_update] 2015-11-19T18:11:46.085 0000  mongo(js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) 0x105) [0xcbbb35]
      [js_test:conc_update] 2015-11-19T18:11:46.085 0000  mongo( 0x8B6ED5) [0xcb6ed5]
      [js_test:conc_update] 2015-11-19T18:11:46.086 0000  mongo(js::RunScript(JSContext*, js::RunState&) 0x119) [0xcbb869]
      [js_test:conc_update] 2015-11-19T18:11:46.086 0000  mongo(js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) 0x244) [0xcbbc74]
      [js_test:conc_update] 2015-11-19T18:11:46.086 0000  mongo(js_fun_apply(JSContext*, unsigned int, JS::Value*) 0x24B) [0x11297ab]
      [js_test:conc_update] 2015-11-19T18:11:46.086 0000  mongo(js::CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), JS::CallArgs const&) 0x112) [0xcd9dd2]
      [js_test:conc_update] 2015-11-19T18:11:46.086 0000  mongo(js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) 0x105) [0xcbbb35]
      [js_test:conc_update] 2015-11-19T18:11:46.087 0000  mongo( 0x8B6ED5) [0xcb6ed5]
      [js_test:conc_update] 2015-11-19T18:11:46.087 0000  mongo(js::RunScript(JSContext*, js::RunState&) 0x119) [0xcbb869]
      [js_test:conc_update] 2015-11-19T18:11:46.087 0000  mongo(js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) 0x244) [0xcbbc74]
      [js_test:conc_update] 2015-11-19T18:11:46.087 0000  mongo(js::Invoke(JSContext*, JS::Value const&, JS::Value const&, unsigned int, JS::Value const*, JS::MutableHandle<JS::Value>) 0x296) [0xcbcad6]
      [js_test:conc_update] 2015-11-19T18:11:46.087 0000  mongo( 0xAB707B) [0xeb707b]
      [js_test:conc_update] 2015-11-19T18:11:46.088 0000  ??? [0x2ab9ac90681f]
      [js_test:conc_update] 2015-11-19T18:11:46.088 0000 -----  END BACKTRACE  -----
      

            Assignee:
            waley.chen Waley Chen
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: