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

dur/closeall.js: access violation in update (on Windows 64-bit 2008R2+)

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Environment:
      buildbot Windows 64-bit 2008R2+
    • Fully Compatible

      Amalia got an email from Buildbot for commit 2cd3909, but her commit only touched unit tests. It couldn't have caused this.

      Thu Nov 21: Windows 64-bit 2008R2+ Build #408 - smokeDur - dur\closeall.js

      http://buildlogs.mongodb.org/Windows%2064-bit%202008R2%2B/builds/408/test/durability/closeall.js

       m30001| 2013-11-21T05:24:32.863-0500 [conn2] command admin.$cmd command: { closeAllDatabases: 1.0 } keyUpdates:0 locks(micros) W:285169 reslen:93 285ms
       m30001| 2013-11-21T05:24:32.910-0500 [conn2] DatabaseHolder::closeAll path:D:\data\db/closeall
       m30001| 2013-11-21T05:24:33.129-0500 [conn2] DurParanoid map check 227ms for 288MB
       m30001| 2013-11-21T05:24:33.191-0500 [conn2] command admin.$cmd command: { closeAllDatabases: 1.0 } keyUpdates:0 locks(micros) W:314567 reslen:93 314ms
       m30001| 2013-11-21T05:24:33.191-0500 [slaveTracking] *** unhandled exception (access violation) at 0x000000014028E2A4, terminating
       m30001| 2013-11-21T05:24:33.191-0500 [slaveTracking] *** access violation was a read from 0x0000004227719E34
       m30001| 2013-11-21T05:24:33.191-0500 [slaveTracking] *** stack trace for unhandled exception:
      2013-11-21 05:24:35 EST	
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    ...\src\mongo\db\namespace_details.h(415)                        mongo::NamespaceDetails::haveIdIndex+0x4
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    ...\src\mongo\db\ops\update.cpp(715)                             mongo::update+0x1421
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    ...\src\mongo\db\instance.cpp(666)                               mongo::receivedUpdate+0xab2
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    ...\src\mongo\db\instance.cpp(487)                               mongo::assembleResponse+0x751
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    ...\src\mongo\db\instance.cpp(1028)                              mongo::DBDirectClient::say+0xce
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    ...\src\mongo\client\dbclient.cpp(1200)                          mongo::DBClientBase::update+0x2bc
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    ...\src\mongo\client\dbclient.cpp(1177)                          mongo::DBClientBase::update+0xa2
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    ...\src\mongo\db\repl\write_concern.cpp(118)                     mongo::SlaveTracking::run+0x6e9
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    ...\src\mongo\util\background.cpp(147)                           mongo::BackgroundJob::jobBody+0x11c
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    ...\src\third_party\boost\libs\thread\src\win32\thread.cpp(185)  boost::`anonymous namespace'::thread_start_function+0x21
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    f:\dd\vctools\crt_bld\self_64_amd64\crt\src\threadex.c(314)      _callthreadstartex+0x17
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] mongod.exe    f:\dd\vctools\crt_bld\self_64_amd64\crt\src\threadex.c(292)      _threadstartex+0x7f
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] kernel32.dll                                                                   BaseThreadInitThunk+0xd
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] 
       m30001| 2013-11-21T05:24:35.328-0500 [slaveTracking] writing minidump diagnostic file mongo.dmp
       m30001| 2013-11-21T05:24:36.186-0500 [slaveTracking] *** immediate exit due to unhandled exception
      

      It seems the kaboom was either inside mongo::NamespaceDetails::haveIdIndex
      https://github.com/mongodb/mongo/blame/2cd3909/src/mongo/db/namespace_details.h#L415

      Or the caller, mongo::update
      https://github.com/mongodb/mongo/blame/2cd3909/src/mongo/db/ops/update.cpp#L715

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            matt.kangas Matt Kangas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: