Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-849

homebrew mongosh 0.11.0 and node 14.17 can't start on Apple M1

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Installation
    • None
    • Iteration Firenze
    • Not Needed

      Problem Statement/Rationale

      Downloaded mongosh 0.15.1 from https://www.mongodb.com/try/download/shell

      Have not tried on other platforms.

      Same error for mongosh --version and mongosh --help

       

      ➜  ~ mongosh<--- Last few GCs --->[89859:0x140008000]       41 ms: Scavenge 4.3 (8.3) -> 3.7 (9.1) MB, 0.3 / 0.0 ms  (average mu = 1.000, current mu = 1.000) allocation failure
      [89859:0x140008000]       49 ms: Scavenge 6.2 (9.6) -> 5.7 (9.6) MB, 0.3 / 0.0 ms  (average mu = 1.000, current mu = 1.000) allocation failure
      [89859:0x140008000]       52 ms: Scavenge 6.6 (13.6) -> 6.1 (14.8) MB, 0.5 / 0.0 ms  (average mu = 1.000, current mu = 1.000) allocation failure
      <--- JS stacktrace --->FATAL ERROR: wasm code commit Allocation failed - process out of memory
       1: 0x104d790cc node::Abort() [/opt/homebrew/opt/node@14/bin/node]
       2: 0x104d7924c std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string<std::nullptr_t>(char const*) [/opt/homebrew/opt/node@14/bin/node]
       3: 0x104e79448 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/opt/homebrew/opt/node@14/bin/node]
       4: 0x104e793dc v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/opt/homebrew/opt/node@14/bin/node]
       5: 0x1052ec2e4 v8::internal::wasm::WasmCodeAllocator::AllocateForCodeInRegion(v8::internal::wasm::NativeModule*, unsigned long, v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) [/opt/homebrew/opt/node@14/bin/node]
       6: 0x1052ecde8 v8::internal::wasm::NativeModule::CreateEmptyJumpTableInRegion(int, v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) [/opt/homebrew/opt/node@14/bin/node]
       7: 0x1052ebd3c v8::internal::wasm::NativeModule::AddCodeSpace(v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) [/opt/homebrew/opt/node@14/bin/node]
       8: 0x1052ecc04 v8::internal::wasm::NativeModule::NativeModule(v8::internal::wasm::WasmEngine*, v8::internal::wasm::WasmFeatures const&, v8::internal::VirtualMemory, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, std::__1::shared_ptr<v8::internal::Counters>, std::__1::shared_ptr<v8::internal::wasm::NativeModule>*) [/opt/homebrew/opt/node@14/bin/node]
       9: 0x1052eec18 v8::internal::wasm::WasmCodeManager::NewNativeModule(v8::internal::wasm::WasmEngine*, v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, unsigned long, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>) [/opt/homebrew/opt/node@14/bin/node]
      10: 0x1052f9af4 v8::internal::wasm::WasmEngine::NewNativeModule(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, unsigned long) [/opt/homebrew/opt/node@14/bin/node]
      11: 0x1052cdd0c v8::internal::wasm::CompileToNativeModule(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, v8::internal::wasm::ErrorThrower*, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, v8::internal::wasm::ModuleWireBytes const&, v8::internal::Handle<v8::internal::FixedArray>*) [/opt/homebrew/opt/node@14/bin/node]
      12: 0x1052f6774 v8::internal::wasm::WasmEngine::SyncCompile(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, v8::internal::wasm::ErrorThrower*, v8::internal::wasm::ModuleWireBytes const&) [/opt/homebrew/opt/node@14/bin/node]
      13: 0x1053131d8 v8::(anonymous namespace)::WebAssemblyModule(v8::FunctionCallbackInfo<v8::Value> const&) [/opt/homebrew/opt/node@14/bin/node]
      14: 0x104ecbd6c v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [/opt/homebrew/opt/node@14/bin/node]
      15: 0x104ecb190 v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<true>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/opt/homebrew/opt/node@14/bin/node]
      16: 0x104ecaca8 v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/opt/homebrew/opt/node@14/bin/node]
      17: 0x10548d34c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit [/opt/homebrew/opt/node@14/bin/node]
      18: 0x105421afc Builtins_JSBuiltinsConstructStub [/opt/homebrew/opt/node@14/bin/node]
      19: 0x10550a28c Builtins_ConstructHandler [/opt/homebrew/opt/node@14/bin/node]
      20: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      21: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      22: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      23: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      24: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      25: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      26: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      27: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      28: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      29: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      30: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      31: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      32: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      33: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      34: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      35: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      36: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      37: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      38: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      39: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      40: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      41: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      42: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      43: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      44: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      45: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      46: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      47: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      48: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      49: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      50: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      51: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      52: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      53: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      54: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      55: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      56: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      57: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      58: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      59: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      60: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      61: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      62: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      63: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      64: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      65: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      66: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      67: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      68: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      69: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      70: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      71: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      72: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      73: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      74: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      75: 0x105425fb4 Builtins_InterpreterEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      76: 0x105423864 Builtins_JSEntryTrampoline [/opt/homebrew/opt/node@14/bin/node]
      77: 0x105423508 Builtins_JSEntry [/opt/homebrew/opt/node@14/bin/node]
      78: 0x140008000
      [1]    89859 abort      mongosh

       

       

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Expected Results

      What do you expect to happen?

      Actual Results

      What do you observe is happening?

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Unassigned Unassigned
            Reporter:
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: