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

Invariant failure when reindexing namespace with embedded control character

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.4, 2.7.5
    • Index Maintenance
    • Storage Execution
    • ALL

    Description

      It's possible to create a collection with an etx control character (\u0003) in its name. Attempting to reindex that collection triggers an invariant failure in 2.6.4 and 2.7.x (but not 2.4.11).

      2014-08-25T20:09:59.157-0400 I          [conn1] Invariant failure collection src/mongo/db/index_builder.cpp 142
       
       mongod(_ZN5mongo15printStackTraceERSo+0x3A) [0x10080a51a]
       mongod(_ZN5mongo10logContextEPKc+0xDB) [0x1007b250b]
       mongod(_ZN5mongo15invariantFailedEPKcS1_j+0x1A2) [0x1007a03a2]
       mongod(_ZN5mongo12IndexBuilder23killMatchingIndexBuildsEPNS_10CollectionERKNS_12IndexCatalog17IndexKillCriteriaE+0x45) [0x1002e1265]
       mongod(_ZN5mongo10CmdReIndex15stopIndexBuildsEPNS_16OperationContextEPNS_8DatabaseERKNS_7BSONObjE+0x136) [0x100168916]
       mongod(_ZN5mongo10CmdReIndex3runEPNS_16OperationContextERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x2B2) [0x100167222]
       mongod(_ZN5mongo12_execCommandEPNS_16OperationContextEPNS_7CommandERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x3A) [0x1001fd35a]
       mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0x992) [0x1001fe262]
       mongod(_ZN5mongo12_runCommandsEPNS_16OperationContextEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x4E3) [0x1001ff5c3]
       mongod(_ZN5mongo11newRunQueryEPNS_16OperationContextERNS_7MessageERNS_12QueryMessageERNS_5CurOpES3_+0x306) [0x100432f26]
       mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x883) [0x1002e7ee3]
       mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xC9) [0x10000a999]
       mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x380) [0x1007c3a00]
       mongod(_ZN5boost12_GLOBAL__N_112thread_proxyEPv+0x8B) [0x100847f7b]
       libsystem_pthread.dylib(_pthread_body+0x8A) [0x7fff8f582899]
       libsystem_pthread.dylib(_pthread_struct_init+0x0) [0x7fff8f58272a]
       libsystem_pthread.dylib(thread_start+0xD) [0x7fff8f586fc9]

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: