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

Fatal Assertion kills mongod when ".name" passed to createRole

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.5.4
    • Security
    • OS X

    Description

      Create a privilege where resource contains

      { db: "test", collection : ".name" }

      . Expect a graceful failure, instead, system crashes on a Fatal Assertion:

      m27000| 2013-10-31T13:40:55.000-0400 [conn1] Fatal Assertion 16199
      m27000| 2013-10-31T13:40:55.028-0400 [conn1] 0x100ccf595 0x100c3b654 0x100c1618b 0x1000132a0 0x10077e40b 0x10019b37d 0x1001cc322 0x1001ce16f 0x10030d528 0x100263625 0x100263ec1 0x1003630a2 0x100365b4f 0x100664445 0x10066520a 0x10056f7cb 0x100573899 0x10000d5d9 0x100c5cc4e 0x100c5b041
      m27000| 0 mongod 0x0000000100ccf595 _ZN5mongo15printStackTraceERSo + 37
      m27000| 1 mongod 0x0000000100c3b654 _ZN5mongo10logContextEPKc + 228
      m27000| 2 mongod 0x0000000100c1618b _ZN5mongo13fassertFailedEi + 139
      m27000| 3 mongod 0x00000001000132a0 _ZN5mongo7fassertEib + 48
      m27000| 4 mongod 0x000000010077e40b ZN5mongo15NamespaceStringC1ERKNS_10StringDataES3 + 375
      m27000| 5 mongod 0x000000010019b37d _ZN5mongo15ParsedPrivilege26parsedPrivilegeToPrivilegeERKS0_PNS_9PrivilegeEPSs + 1421
      m27000| 6 mongod 0x00000001001cc322 _ZN5mongo4auth30parseAndValidatePrivilegeArrayERKNS_9BSONArrayEPSt6vectorINS_9PrivilegeESaIS5_EE + 594
      m27000| 7 mongod 0x00000001001ce16f _ZN5mongo4auth31parseCreateOrUpdateRoleCommandsERKNS_7BSONObjERKNS_10StringDataERKSsPNS0_22CreateOrUpdateRoleArgsE + 2703
      m27000| 8 mongod 0x000000010030d528 _ZN5mongo13CmdCreateRole19checkAuthForCommandEPNS_11ClientBasicERKSsRKNS_7BSONObjE + 168
      m27000| 9 mongod 0x0000000100263625 _ZN5mongoL23_checkAuthorizationImplEPNS_7CommandEPNS_11ClientBasicERKSsRKNS_7BSONObjEb + 693
      m27000| 10 mongod 0x0000000100263ec1 _ZN5mongo7Command19_checkAuthorizationEPS0_PNS_11ClientBasicERKSsRKNS_7BSONObjEb + 133
      m27000| 11 mongod 0x00000001003630a2 _ZN5mongo7Command11execCommandEPS0_RNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb + 1268
      m27000| 12 mongod 0x0000000100365b4f _ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 2303
      m27000| 13 mongod 0x0000000100664445 _ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 117
      m27000| 14 mongod 0x000000010066520a ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1 + 2378
      m27000| 15 mongod 0x000000010056f7cb _ZN5mongoL13receivedQueryERNS_6ClientERNS_10DbResponseERNS_7MessageE + 859
      m27000| 16 mongod 0x0000000100573899 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 1225
      m27000| 17 mongod 0x000000010000d5d9 _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 335
      m27000| 18 mongod 0x0000000100c5cc4e _ZN5mongo17PortMessageServer17handleIncomingMsgEPv + 2302
      m27000| 19 mongod 0x0000000100c5b041 _ZN5boost3_bi5list1INS0_5valueIPN5mongo17PortMessageServer22HandleIncomingMsgParamEEEEclIPvPFSA_SA_ENS0_5list0EEET_NS0_4typeISE_EERT0_RT1_l + 79
      m27000| 2013-10-31T13:40:55.028-0400 [conn1]
      m27000|
      m27000| ***aborting after fassert() failure
      m27000|
      m27000|
      2013-10-31T13:40:55.058-0400 DBClientCursor::init call() failed
      2013-10-31T13:40:55.069-0400 Error: error doing query: failed at src/mongo/shell/query.js:81

      Attachments

        Activity

          People

            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: