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

[replica set sync] ERROR: 13601 Couldn't remap private view: errno:12 Cannot allocate memory crash

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.0-rc1
    • Affects Version/s: 1.8.0-rc0
    • Component/s: None
    • None
    • Environment:
    • Linux

      A secondary in a 2 member replica set crashed. it was running durability so I was able to recover quickly.

      pb1:PRIMARY> rs.conf()
      {
      "_id" : "pb1",
      "version" : 1,
      "members" : [

      { "_id" : 0, "host" : "pb1a:27017" }

      ,

      { "_id" : 1, "host" : "pb1b:27017" }

      ]
      }

      Tue Mar 1 21:24:42 [conn677] query admin.$cmd ntoreturn:1 command:

      { serverStatus: 1 }

      reslen:1509 965ms
      Tue Mar 1 21:25:04 [conn2112] query admin.$cmd ntoreturn:1 command:

      { listDatabases: 1 }

      reslen:246 570ms
      Tue Mar 1 21:25:06 [conn2112] query metrics.$cmd ntoreturn:1 command:

      { dbstats: 1 }

      reslen:216 2426ms
      Tue Mar 1 21:25:39 [dur] lsn set 34039154
      Tue Mar 1 21:26:09 [replica set sync] ERROR: 13601 Couldn't remap private view: errno:12 Cannot allocate memory
      Tue Mar 1 21:26:09 [replica set sync] aborting
      Tue Mar 1 21:26:09 Got signal: 6 (Aborted).

      Tue Mar 1 21:26:10 Backtrace:
      0x8a3189 0x3a768302d0 0x3a76830265 0x3a76831d10 0x5bc48f 0x629ced 0x62dac2 0x62deb5 0x695649 0x708ef5 0x709318 0x70939c 0x709835 0x8b6a30 0x3a7700673d 0x3a768d3f6d
      /home/david/mongodb/latest/bin/mongod(_ZN5mongo10abruptQuitEi+0x399) [0x8a3189]
      /lib64/libc.so.6 [0x3a768302d0]
      /lib64/libc.so.6(gsignal+0x35) [0x3a76830265]
      /lib64/libc.so.6(abort+0x110) [0x3a76831d10]
      /home/david/mongodb/latest/bin/mongod(_ZN5mongo16MemoryMappedFile16remapPrivateViewEPv+0x10f) [0x5bc48f]
      /home/david/mongodb/latest/bin/mongod(_ZN5mongo8MongoMMF19remapThePrivateViewEv+0x4d) [0x629ced]
      /home/david/mongodb/latest/bin/mongod(_ZN5mongo3dur17_REMAPPRIVATEVIEWEv+0x212) [0x62dac2]
      /home/david/mongodb/latest/bin/mongod(_ZN5mongo3dur16REMAPPRIVATEVIEWEv+0x25) [0x62deb5]
      /home/david/mongodb/latest/bin/mongod(_ZN5mongo10MongoMutex4lockEv+0x149) [0x695649]
      /home/david/mongodb/latest/bin/mongod(_ZN5mongo11ReplSetImpl8syncTailEv+0x19e5) [0x708ef5]
      /home/david/mongodb/latest/bin/mongod(_ZN5mongo11ReplSetImpl11_syncThreadEv+0xc8) [0x709318]
      /home/david/mongodb/latest/bin/mongod(_ZN5mongo11ReplSetImpl10syncThreadEv+0x3c) [0x70939c]
      /home/david/mongodb/latest/bin/mongod(_ZN5mongo15startSyncThreadEv+0x215) [0x709835]
      /home/david/mongodb/latest/bin/mongod(thread_proxy+0x80) [0x8b6a30]
      /lib64/libpthread.so.0 [0x3a7700673d]
      /lib64/libc.so.6(clone+0x6d) [0x3a768d3f6d]

      Tue Mar 1 21:26:12 dbexit:
      Tue Mar 1 21:26:12 [replica set sync] shutdown: going to close listening sockets...
      Tue Mar 1 21:26:12 [replica set sync] closing listening socket: 5
      Tue Mar 1 21:26:12 [replica set sync] closing listening socket: 6
      Tue Mar 1 21:26:12 [replica set sync] closing listening socket: 8
      Tue Mar 1 21:26:12 [replica set sync] closing listening socket: 9
      Tue Mar 1 21:26:12 [replica set sync] removing socket file: /tmp/mongodb-27017.sock
      Tue Mar 1 21:26:12 [replica set sync] removing socket file: /tmp/mongodb-28017.sock
      Tue Mar 1 21:26:12 [replica set sync] shutdown: going to flush diaglog...
      Tue Mar 1 21:26:12 [replica set sync] shutdown: going to close sockets...
      Tue Mar 1 21:26:12 [replica set sync] shutdown: waiting for fs preallocator...
      Tue Mar 1 21:26:12 [replica set sync] shutdown: lock for final commit...
      Tue Mar 1 21:26:12 [replica set sync] shutdown: final commit...
      Tue Mar 1 21:26:12 [replica set sync] shutdown: closing all files...

        1. secondary.tar.gz
          9 kB
        2. master.tar.gz
          100 kB

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            boxedice David Mytton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: