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

mongod terminates from assert when creating user in $external DB

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Duplicate
    • Affects Version/s: 3.0.0-rc8
    • Fix Version/s: None
    • Component/s: Security
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide
      • Start community edition of mongod
      • Connect to mongod, via mongo shell

        use $external
        db.createUser({user: "abc", roles: [ { role: "read", db: "test" } ]})

      Show
      Start community edition of mongod Connect to mongod, via mongo shell use $external db.createUser({user: "abc", roles: [ { role: "read", db: "test" } ]})

      Description

      The community edition of mongod terminates when a user is created in $external DB.

      2015-02-18T13:21:42.058-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:53996 #1 (1 connection now open)
      2015-02-18T13:21:42.064-0500 I -        [conn1] Fatal Assertion 17494
      2015-02-18T13:21:42.068-0500 I CONTROL  [conn1]
       0x10f9a2419 0x10f956780 0x10f943f16 0x10f2eeabe 0x10f2eeb28 0x10f2eec9a 0x10f4010d5 0x10f423a8a 0x10f424a97 0x10f42590c 0x10f5ff77a 0x10f501380 0x10f24dbe1 0x10f96623c 0x10f9d5c11 0x7fff91a8a268 0x7fff91a8a1e5 0x7fff91a8841d
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"10F242000","o":"760419"},{"b":"10F242000","o":"714780"},{"b":"10F242000","o":"701F16"},{"b":"10F242000","o":"ACABE"},{"b":"10F242000","o":"ACB28"},{"b":"10F242000","o":"ACC9A"},{"b":"10F242000","o":"1BF0D5"},{"b":"10F242000","o":"1E1A8A"},{"b":"10F242000","o":"1E2A97"},{"b":"10F242000","o":"1E390C"},{"b":"10F242000","o":"3BD77A"},{"b":"10F242000","o":"2BF380"},{"b":"10F242000","o":"BBE1"},{"b":"10F242000","o":"72423C"},{"b":"10F242000","o":"793C11"},{"b":"7FFF91A87000","o":"3268"},{"b":"7FFF91A87000","o":"31E5"},{"b":"7FFF91A87000","o":"141D"}],"processInfo":{ "mongodbVersion" : "3.0.0-rc8", "gitVersion" : "9d0714cdcffadb203ff68730acedbc40875403da", "uname" : { "sysname" : "Darwin", "release" : "14.1.0", "version" : "Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64", "machine" : "x86_64" }, "somap" : [ { "path" : "/usr/local/bin/mongod-3.0", "machType" : 2, "b" : "10F242000", "buildId" : "2013B41331753B3BBB5013C9937BBC6B" }, { "path" : "/usr/lib/libSystem.B.dylib", "machType" : 6, "b" : "7FFF9550D000", "buildId" : "90B107BCFF7432CCB1CF4E02F544D957" }, { "path" : "/usr/lib/libc++.1.dylib", "machType" : 6, "b" : "7FFF92F13000", "buildId" : "1B9530FD989B3174BB1CBDC159501710" }, { "path" : "/usr/lib/system/libcache.dylib", "machType" : 6, "b" : "7FFF8B552000", "buildId" : "45E9A2E799C436B2BEE30C4E11614AD1" }, { "path" : "/usr/lib/system/libcommonCrypto.dylib", "machType" : 6, "b" : "7FFF92E92000", "buildId" : "D381EBC669D831D380845A80A32CB748" }, { "path" : "/usr/lib/system/libcompiler_rt.dylib", "machType" : 6, "b" : "7FFF87963000", "buildId" : "BF8FC133EE103DA69B9092039E28678F" }, { "path" : "/usr/lib/system/libcopyfile.dylib", "machType" : 6, "b" : "7FFF8CFFA000", "buildId" : "0C68D3A6ACDD3EF3991ACC82C32AB836" }, { "path" : "/usr/lib/system/libcorecrypto.dylib", "machType" : 6, "b" : "7FFF8CE8B000", "buildId" : "E178980139853949B7366B3378873301" }, { "path" : "/usr/lib/system/libdispatch.dylib", "machType" : 6, "b" : "7FFF90A69000", "buildId" : "502CF32B669B3709886208188225E4F0" }, { "path" : "/usr/lib/system/libdyld.dylib", "machType" : 6, "b" : "7FFF8FF2C000", "buildId" : "4E33E416F1D83598B8CC6863E2ECD0E6" }, { "path" : "/usr/lib/system/libkeymgr.dylib", "machType" : 6, "b" : "7FFF91731000", "buildId" : "77845842DE703CC5BD01C3D14227CED5" }, { "path" : "/usr/lib/system/liblaunch.dylib", "machType" : 6, "b" : "7FFF91177000", "buildId" : "DFCDEBDF82473DC79879E7E497DDA4B4" }, { "path" : "/usr/lib/system/libmacho.dylib", "machType" : 6, "b" : "7FFF948F5000", "buildId" : "126CA2EDDE91308F8881B9DAEC3C63B6" }, { "path" : "/usr/lib/system/libquarantine.dylib", "machType" : 6, "b" : "7FFF9117E000", "buildId" : "DC0416272D92361CBABFA869A5C72293" }, { "path" : "/usr/lib/system/libremovefile.dylib", "machType" : 6, "b" : "7FFF9660E000", "buildId" : "3485B5F46CE83C628DFD8736ED6E8531" }, { "path" : "/usr/lib/system/libsystem_asl.dylib", "machType" : 6, "b" : "7FFF952AD000", "buildId" : "F153AC5B0542356E88C820A62CA704E2" }, { "path" : "/usr/lib/system/libsystem_blocks.dylib", "machType" : 6, "b" : "7FFF86BAE000", "buildId" : "9615D10AFCA73BE4AA1A1B195DACE1A1" }, { "path" : "/usr/lib/system/libsystem_c.dylib", "machType" : 6, "b" : "7FFF91883000", "buildId" : "199ED5EB77A13D43AA5181779CE0A742" }, { "path" : "/usr/lib/system/libsystem_configuration.dylib", "machType" : 6, "b" : "7FFF8C67C000", "buildId" : "5E14864E089A3D8485A4980B776427A8" }, { "path" : "/usr/lib/system/libsystem_coreservices.dylib", "machType" : 6, "b" : "7FFF940AC000", "buildId" : "41B7C5785A5331C8A96FC73E030B0938" }, { "path" : "/usr/lib/system/libsystem_coretls.dylib", "machType" : 6, "b" : "7FFF8E16C000", "buildId" : "BC691CD117B639A5BD02AF973695FD1D" }, { "path" : "/usr/lib/system/libsystem_dnssd.dylib", "machType" : 6, "b" : "7FFF8E193000", "buildId" : "62B70ECAE40D3C63896E7F00EC386DDB" }, { "path" : "/usr/lib/system/libsystem_info.dylib", "machType" : 6, "b" : "7FFF87517000", "buildId" : "B85A85D585303A93B0C34DEC41F79478" }, { "path" : "/usr/lib/system/libsystem_kernel.dylib", "machType" : 6, "b" : "7FFF8E5A1000", "buildId" : "97CD7ACDEA0C3434BEFCFCD013D6BB73" }, { "path" : "/usr/lib/system/libsystem_m.dylib", "machType" : 6, "b" : "7FFF8784E000", "buildId" : "1E12AB456D9636D0A226F24D9FB0D9D6" }, { "path" : "/usr/lib/system/libsystem_malloc.dylib", "machType" : 6, "b" : "7FFF8E70E000", "buildId" : "19BCC25757173502A71F95D65AFA861B" }, { "path" : "/usr/lib/system/libsystem_network.dylib", "machType" : 6, "b" : "7FFF8FF62000", "buildId" : "2EC3A005473F3C36A665F88B5BACC7F0" }, { "path" : "/usr/lib/system/libsystem_networkextension.dylib", "machType" : 6, "b" : "7FFF95B8B000", "buildId" : "29AB225BD7FB30ED960065D44B9A9442" }, { "path" : "/usr/lib/system/libsystem_notify.dylib", "machType" : 6, "b" : "7FFF936A6000", "buildId" : "61147800F3203DAA850CBADF33855F29" }, { "path" : "/usr/lib/system/libsystem_platform.dylib", "machType" : 6, "b" : "7FFF87540000", "buildId" : "64E34079D7123D669CE2418624A5C040" }, { "path" : "/usr/lib/system/libsystem_pthread.dylib", "machType" : 6, "b" : "7FFF91A87000", "buildId" : "3103AA7F3BAE3673964947FFD7E15C97" }, { "path" : "/usr/lib/system/libsystem_sandbox.dylib", "machType" : 6, "b" : "7FFF92594000", "buildId" : "95312E09DA28324AA084F3E574D0210E" }, { "path" : "/usr/lib/system/libsystem_secinit.dylib", "machType" : 6, "b" : "7FFF87D0F000", "buildId" : "581DAD0F6B633A48B63B917AF799ABAA" }, { "path" : "/usr/lib/system/libsystem_stats.dylib", "machType" : 6, "b" : "7FFF96610000", "buildId" : "9B8CCF24DDDB399A92374BEC225D2E8C" }, { "path" : "/usr/lib/system/libsystem_trace.dylib", "machType" : 6, "b" : "7FFF89572000", "buildId" : "A9E6B7D8C3273742AC5486C94218B1DF" }, { "path" : "/usr/lib/system/libunc.dylib", "machType" : 6, "b" : "7FFF95AEF000", "buildId" : "5676F7EAC1DF329FB006D2C3022B7D70" }, { "path" : "/usr/lib/system/libunwind.dylib", "machType" : 6, "b" : "7FFF94918000", "buildId" : "BE7E51A0B6EA3A549CCA9D88F683A6D6" }, { "path" : "/usr/lib/system/libxpc.dylib", "machType" : 6, "b" : "7FFF9360D000", "buildId" : "876216DCD5D3381E8AF949AE464E5107" }, { "path" : "/usr/lib/libobjc.A.dylib", "machType" : 6, "b" : "7FFF963F8000", "buildId" : "759E155DBC423D4E869B6F57D477177C" }, { "path" : "/usr/lib/libauto.dylib", "machType" : 6, "b" : "7FFF952DC000", "buildId" : "A260789BD4D8316A9490254767B8A5F1" }, { "path" : "/usr/lib/libc++abi.dylib", "machType" : 6, "b" : "7FFF89E73000", "buildId" : "88A22A0F87C63002BFBAAC0F2808B8B9" }, { "path" : "/usr/lib/libDiagnosticMessagesClient.dylib", "machType" : 6, "b" : "7FFF941BD000", "buildId" : "2EE8E4365CDC34C599595BA218D507FB" } ] }}
       mongod-3.0(_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE+0x39) [0x10f9a2419]
       mongod-3.0(_ZN5mongo10logContextEPKc+0x100) [0x10f956780]
       mongod-3.0(_ZN5mongo13fassertFailedEi+0xD6) [0x10f943f16]
       mongod-3.0(_ZN5mongo5scram22generateSaltedPasswordERKNS_10StringDataEPKhiiPh+0x1AE) [0x10f2eeabe]
       mongod-3.0(_ZN5mongo5scram15generateSecretsERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKhmmPhSC_+0x58) [0x10f2eeb28]
       mongod-3.0(_ZN5mongo5scram19generateCredentialsERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi+0x9A) [0x10f2eec9a]
       mongod-3.0(_ZN5mongo13CmdCreateUser3runEPNS_16OperationContextERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7BSONObjEiRS9_RNS_14BSONObjBuilderEb+0xC35) [0x10f4010d5]
       mongod-3.0(_ZN5mongo12_execCommandEPNS_16OperationContextEPNS_7CommandERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERNS_7BSONObjEiRSA_RNS_14BSONObjBuilderEb+0x3A) [0x10f423a8a]
       mongod-3.0(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_iPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0xAC7) [0x10f424a97]
       mongod-3.0(_ZN5mongo12_runCommandsEPNS_16OperationContextEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x47C) [0x10f42590c]
       mongod-3.0(_ZN5mongo8runQueryEPNS_16OperationContextERNS_7MessageERNS_12QueryMessageERKNS_15NamespaceStringERNS_5CurOpES3_b+0xE6A) [0x10f5ff77a]
       mongod-3.0(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortEb+0x9F0) [0x10f501380]
       mongod-3.0(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xE1) [0x10f24dbe1]
       mongod-3.0(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x32C) [0x10f96623c]
       mongod-3.0(_ZN5boost12_GLOBAL__N_112thread_proxyEPv+0xB1) [0x10f9d5c11]
       libsystem_pthread.dylib(_pthread_body+0x83) [0x7fff91a8a268]
       libsystem_pthread.dylib(_pthread_body+0x0) [0x7fff91a8a1e5]
       libsystem_pthread.dylib(thread_start+0xD) [0x7fff91a8841d]
      -----  END BACKTRACE  -----
      2015-02-18T13:21:42.070-0500 I -        [conn1]
       
      ***aborting after fassert() failure

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: