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

mongod crashes when re-mapping above user address space of 8TB on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.1
    • Component/s: Stability
    • Environment:
      MongoDB x64 on Windows 7
    • Operating System:
      Windows
    • Steps To Reproduce:
      Hide

      on a new mongod instance, create a capped collection of 2GB.

      > use test
      > db.createCollection("foo", {capped:true,size:2*1024*1024*1024})

      Now in a loop unmap and remap the database

      > for (i=0;i<1000;i++) {
      ... db.adminCommand("closeAllDatabases");
      ... db.foo.findOne()
      ... }

      Show
      on a new mongod instance, create a capped collection of 2GB. > use test > db.createCollection("foo", {capped:true,size:2*1024*1024*1024}) Now in a loop unmap and remap the database > for (i=0;i<1000;i++) { ... db.adminCommand("closeAllDatabases"); ... db.foo.findOne() ... }
    • Sprint:
      Server 2.7.1

      Description

      When memory mapping on Windows mongod keeps track of the address to start the mapping at (adjusting by file size on every map). Since this is an always incrementing number mongod crashes with the above error when it hits the upper bound of user address space of 8TB (http://blogs.technet.com/b/markrussinovich/archive/2008/11/17/3155406.aspx). Modifying the code to print the virtual address we are trying to map to, we get

      Wed Aug 14 14:27:55.390 [conn1] MapViewOfFileEx for c:\data\db\test.0 failed with errno:487 Attempt to access invalid address. (file size is 2146435072) in MemoryMappedFile::map (for address 000007FED7000000)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mark.benvenuto Mark Benvenuto
              Reporter:
              sridhar Sridhar Nanjundeswaran
              Participants:
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: