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

Assertion failure !e.eoo() in bsonobjbuilder.h when sorting on an empty field name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: 2.4.10
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Operating System:
      Linux

      Description

      Got "Assertion failure !e.eoo() src/mongo/db/../bson/bsonobjbuilder.h" when queried at SECONDARY
      and

      $readPreference: { mode: "secondaryPreferred" }

      Logs:
      SECONDARY3:

      Fri May 30 15:15:22.551 [conn1649793]  ez3hl2bej7d81o4qrqigbusft3u7qgm5xahbcbkiat5pjn3f.XiaoHuaImage Assertion failure !e.eoo() src/mongo/db/../bson/bsonobjbuilder.h 92
      0xde8c31 0xda9c9d 0x9f4960 0x9f110b 0xb725a5 0xc45f61 0xa8a7a0 0xa8ab4a 0xa86a61 0xa8c0be 0xa8ef28 0xa0182e 0xa02b73 0x6eb838 0xdd51fe 0x7f15e88a9e9a 0x7f15e7bbc3fd 
       /usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) [0xde8c31]
       /usr/bin/mongod(_ZN5mongo12verifyFailedEPKcS1_j+0xfd) [0xda9c9d]
       /usr/bin/mongod(_ZNK5mongo14KeyGeneratorV18_getKeysESt6vectorIPKcSaIS3_EES1_INS_11BSONElementESaIS6_EERKNS_7BSONObjERSt3setIS9_NS_10BSONObjCmpESaIS9_EEiSB_+0x6c0) [0x9f4960]
       /usr/bin/mongod(_ZNK5mongo9IndexSpec7getKeysERKNS_7BSONObjERSt3setIS1_NS_10BSONObjCmpESaIS1_EE+0x38b) [0x9f110b]
       /usr/bin/mongod(_ZNK5mongo16FieldRangeVector10firstMatchERKNS_7BSONObjE+0xd5) [0xb725a5]
       /usr/bin/mongod(_ZN5mongo12ScanAndOrder3addERKNS_7BSONObjEPKNS_7DiskLocE+0x51) [0xc45f61]
       /usr/bin/mongod(_ZN5mongo20ReorderBuildStrategy19_handleMatchNoDedupEPNS_13ResultDetailsE+0x70) [0xa8a7a0]
       /usr/bin/mongod(_ZN5mongo20ReorderBuildStrategy11handleMatchEPNS_13ResultDetailsE+0x5a) [0xa8ab4a]
       /usr/bin/mongod(_ZN5mongo20QueryResponseBuilder8addMatchEv+0xb1) [0xa86a61]
       /usr/bin/mongod(_ZN5mongo23queryWithQueryOptimizerEiRKSsRKNS_7BSONObjERNS_5CurOpES4_S4_RKN5boost10shared_ptrINS_11ParsedQueryEEES4_RKNS_12ChunkVersionERNS7_10scoped_ptrINS_25PageFaultRetryableSectionEEERNSG_INS_19NoPageFaultsAllowedEEERNS_7MessageE+0x3be) [0xa8c0be]
       /usr/bin/mongod(_ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_+0x1ac8) [0xa8ef28]
       /usr/bin/mongod() [0xa0182e]
       /usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x393) [0xa02b73]
       /usr/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x98) [0x6eb838]
       /usr/bin/mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x42e) [0xdd51fe]
       /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7f15e88a9e9a]
       /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f15e7bbc3fd]

      SECONDARY1:

      Fri May 30 15:15:01.711 [conn1638743]  ez3hl2bej7d81o4qrqigbusft3u7qgm5xahbcbkiat5pjn3f.XiaoHuaImage Assertion failure !e.eoo() src/mongo/db/../bson/bsonobjbuilder.h 92
      0xde8c31 0xda9c9d 0x9f4960 0x9f110b 0xb725a5 0xc45f61 0xa8a7a0 0xa8ab4a 0xa86a61 0xa8c0be 0xa8ef28 0xa0182e 0xa02b73 0x6eb838 0xdd51fe 0x7fc428052e9a 0x7fc427365ccd 
       /usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) [0xde8c31]
       /usr/bin/mongod(_ZN5mongo12verifyFailedEPKcS1_j+0xfd) [0xda9c9d]
       /usr/bin/mongod(_ZNK5mongo14KeyGeneratorV18_getKeysESt6vectorIPKcSaIS3_EES1_INS_11BSONElementESaIS6_EERKNS_7BSONObjERSt3setIS9_NS_10BSONObjCmpESaIS9_EEiSB_+0x6c0) [0x9f4960]
       /usr/bin/mongod(_ZNK5mongo9IndexSpec7getKeysERKNS_7BSONObjERSt3setIS1_NS_10BSONObjCmpESaIS1_EE+0x38b) [0x9f110b]
       /usr/bin/mongod(_ZNK5mongo16FieldRangeVector10firstMatchERKNS_7BSONObjE+0xd5) [0xb725a5]
       /usr/bin/mongod(_ZN5mongo12ScanAndOrder3addERKNS_7BSONObjEPKNS_7DiskLocE+0x51) [0xc45f61]
       /usr/bin/mongod(_ZN5mongo20ReorderBuildStrategy19_handleMatchNoDedupEPNS_13ResultDetailsE+0x70) [0xa8a7a0]
       /usr/bin/mongod(_ZN5mongo20ReorderBuildStrategy11handleMatchEPNS_13ResultDetailsE+0x5a) [0xa8ab4a]
       /usr/bin/mongod(_ZN5mongo20QueryResponseBuilder8addMatchEv+0xb1) [0xa86a61]
       /usr/bin/mongod(_ZN5mongo23queryWithQueryOptimizerEiRKSsRKNS_7BSONObjERNS_5CurOpES4_S4_RKN5boost10shared_ptrINS_11ParsedQueryEEES4_RKNS_12ChunkVersionERNS7_10scoped_ptrINS_25PageFaultRetryableSectionEEERNSG_INS_19NoPageFaultsAllowedEEERNS_7MessageE+0x3be) [0xa8c0be]
       /usr/bin/mongod(_ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_+0x1ac8) [0xa8ef28]
       /usr/bin/mongod() [0xa0182e]
       /usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x393) [0xa02b73]
       /usr/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x98) [0x6eb838]
       /usr/bin/mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x42e) [0xdd51fe]
       /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7fc428052e9a]
       /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7fc427365ccd]

        Attachments

          Activity

            People

            Assignee:
            ramon.fernandez Ramon Fernandez Marina
            Reporter:
            wujiangcheng Jiangcheng Wu
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: