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

Crash during garbage collection

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.4.9
    • Component/s: JavaScript
    • ALL

      When running serverside javascript with logging after running anywhere between 20 minutes to 2 hours mongo crashes and logs a stack trace as shown in table below.

      The function does a number of queries and inserts. The logging appears to indicate that it is thrown just before an add. The time it takes for this to occur seems to decrease if logging is added to the function. Where logging is performed with print and printjson.

      Date ConnectionNumber Executable file function
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\mongo\util\stacktrace.cpp(167) mongo::printStackTrace+0x3e
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\mongo\db\db.cpp(1488) mongo::myPurecallHandler+0x9
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe f:\dd\vctools\crt_bld\self_64_amd64\crt\src\purevirt.c(54) _purecall+0x18
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\mongo\client\dbclientcursor.cpp(350) mongo::DBClientCursor::~DBClientCursor+0x140
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe   mongo::DBClientCursor::`scalar deleting destructor'+0x14
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\mongo\scripting\engine_v8.h(108) mongo::ObjTracker<mongo::DBClientCursor>::deleteOnCollect+0x32
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\third_party\v8\src\global-handles.cc(233) v8::internal::GlobalHandles::Node::PostGarbageCollectionProcessing+0x96
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\third_party\v8\src\global-handles.cc(558) v8::internal::GlobalHandles::PostGarbageCollectionProcessing+0xc9
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\third_party\v8\src\heap.cc(923) v8::internal::Heap::PerformGarbageCollection+0x5d4
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\third_party\v8\src\heap.cc(588) v8::internal::Heap::CollectGarbage+0x18c
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\third_party\v8\src\factory.cc(515) v8::internal::Factory::CopyFixedArray+0 xec
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\third_party\v8\src\api.cc(2976) v8::Object::GetOwnPropertyNames+0x182
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\mongo\scripting\engine_v8.cpp(1658) mongo::V8Scope::v8ToMongo+0x210
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\mongo\scripting\v8_db.cpp(253) mongo::mongoInsert+0x66f
      Fri Mar 21 02:21:02.835 [conn7] mongod.exe ...\src\mongo\scripting\engine_v8.cpp(614) mongo::V8Scope::v8Callback+0x136
      Fri Mar 21 02:21:02.835 [conn7]     ???
      Fri Mar 21 02:21:02.835 [conn7]     ???
      Fri Mar 21 02:21:02.835 [conn7]     ???
      Fri Mar 21 02:21:02.835 [conn7]     ???
      Fri Mar 21 02:21:02.835 [conn7]     ???
      Fri Mar 21 02:21:02.835       pure virtual

        1. v8-2.4.patch
          1 kB
          Mathias Stearn
        2. v8-2.6.patch
          2 kB
          Mathias Stearn
        3. WatchlistProcessing.js
          3 kB
          Andrew Poland [X]

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            AndrewP Andrew Poland [X]
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: