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

mongo_sm.exe segfaults for certain configuration settings when building with VS2010

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.4.0-rc3, 2.5.0
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Fully Compatible
    • Windows
    • Hide

      1) Build mongodb_sm.sln using one of the specified configurations
      2) Run mongod so that there is a server running for shell to connect to
      3) Run mongo_sm.exe

      Show
      1) Build mongodb_sm.sln using one of the specified configurations 2) Run mongod so that there is a server running for shell to connect to 3) Run mongo_sm.exe

      Certain VS2010 build configurations will cause mongo_sm.exe to segfault. Specifically, the builds that are known to do this now:

      Release Win32
      Release x64
      Win2008PlusRelease Win32
      Win2008PlusRelease x64

      stack trace:

      MongoDB shell version: 2.4.0-rc2-pre-
      Tue Mar 05 23:35:32.278 mongo got signal 11 (SIGSEGV), stack trace:

      Tue Mar 05 23:35:32.667 mongo_sm.exe ...\src\mongo\shell\dbshell.cpp(216)
      quitAbruptly+0x14f
      Tue Mar 05 23:35:32.668 mongo_sm.exe f:\dd\vctools\crt_bld\self_64_amd64\crt\sr
      c\winxfltr.c(372) _XcptFilter+0x1ad
      Tue Mar 05 23:35:32.668 mongo_sm.exe f:\dd\vctools\crt_bld\self_64_amd64\crt\sr
      c\threadex.c(316) _callthreadstartex$filt$0+0x16
      Tue Mar 05 23:35:32.668 mongo_sm.exe
      __C_specific_handler+0x97
      Tue Mar 05 23:35:32.668 ntdll.dll
      RtlDecodePointer+0xbd
      Tue Mar 05 23:35:32.668 ntdll.dll
      RtlUnwindEx+0xbbf
      Tue Mar 05 23:35:32.668 ntdll.dll
      KiUserExceptionDispatcher+0x2e
      Tue Mar 05 23:35:32.668 mongo_sm.exe ...\src\third_party\js-1.7\jsparse.c(972)
      BindLocalVariable+0x3d
      Tue Mar 05 23:35:32.669 mongo_sm.exe ...\src\third_party\js-1.7\jsparse.c(1876)
      BindVarOrConst+0x3dd
      Tue Mar 05 23:35:32.669 mongo_sm.exe ...\src\third_party\js-1.7\jsparse.c(3711)
      Variables+0x1fa
      Tue Mar 05 23:35:32.669 mongo_sm.exe ...\src\third_party\js-1.7\jsparse.c(3308)
      Statement+0x1908
      Tue Mar 05 23:35:32.670 mongo_sm.exe ...\src\third_party\js-1.7\jsparse.c(1463)
      Statements+0x12a
      Tue Mar 05 23:35:32.670 mongo_sm.exe ...\src\third_party\js-1.7\jsparse.c(502)
      js_CompileTokenStream+0x72
      Tue Mar 05 23:35:32.671 mongo_sm.exe ...\src\third_party\js-1.7\jsapi.c(3774)
      CompileTokenStream+0x17e
      Tue Mar 05 23:35:32.671 mongo_sm.exe ...\src\third_party\js-1.7\jsapi.c(3870)
      JS_CompileUCScriptForPrincipals+0x70
      Tue Mar 05 23:35:32.671 mongo_sm.exe ...\src\third_party\js-1.7\jsapi.c(4293)
      JS_EvaluateUCScriptForPrincipals+0x50
      Tue Mar 05 23:35:32.672 mongo_sm.exe ...\src\third_party\js-1.7\jsapi.c(4240)
      JS_EvaluateScript+0xb2
      Tue Mar 05 23:35:32.672 mongo_sm.exe ...\src\mongo\scripting\engine_spidermonke
      y.cpp(1622) mongo::spidermonkey::SMScope::exec+0x13b
      Tue Mar 05 23:35:32.673 mongo_sm.exe ...\src\mongo\scripting\engine.h(116)
      mongo::Scope::execSetup+0x22
      Tue Mar 05 23:35:32.673 mongo_sm.exe ...\src\mongo\scripting\engine.h(119)
      mongo::Scope::execSetup+0x77

            Assignee:
            tad Tad Marshall
            Reporter:
            andrew.emil@10gen.com Andrew Emil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: