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

getLog command masserts when given number

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.0.1, 3.1.0
    • Affects Version/s: 3.0.0-rc11
    • Component/s: Shell, Usability
    • None
    • Fully Compatible
    • ALL

      db.getSiblingDB("admin").runCommand(

      { getLog: 1 }

      )
      masserts and produces the following log lines

      2015-02-27T09:18:32.448-0500 I -        [conn2188] Assertion: 13111:wrong type for field (getLog) 1 != 2
      2015-02-27T09:18:32.504-0500 I CONTROL  [conn2188]
       0x105d24e14 0x105c785da 0x105c503aa 0x105c502b7 0x104de9d8f 0x104dea7fa 0x1051a6ef8 0x10518ff45 0x1051923ec 0x10519305a 0x10557d290 0x10557987d 0x1053b6880 0x1053b4750 0x104da4c4b 0x105ca1fc6 0x105ca04f4 0x105db72c5 0x7fff90d4c899 0x7fff90d4c72a 0x7fff90d50fc9
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"104D87000","o":"F9DE14"},{"b":"104D87000","o":"EF15DA"},{"b":"104D87000","o":"EC93AA"},{"b":"104D87000","o":"EC92B7"},{"b":"104D87000","o":"62D8F"},{"b":"104D87000","o":"637FA"},{"b":"104D87000","o":"41FEF8"},{"b":"104D87000","o":"408F45"},{"b":"104D87000","o":"40B3EC"},{"b":"104D87000","o":"40C05A"},{"b":"104D87000","o":"7F6290"},{"b":"104D87000","o":"7F287D"},{"b":"104D87000","o":"62F880"},{"b":"104D87000","o":"62D750"},{"b":"104D87000","o":"1DC4B"},{"b":"104D87000","o":"F1AFC6"},{"b":"104D87000","o":"F194F4"},{"b":"104D87000","o":"10302C5"},{"b":"7FFF90D4B000","o":"1899"},{"b":"7FFF90D4B000","o":"172A"},{"b":"7FFF90D4B000","o":"5FC9"}],"processInfo":{ "mongodbVersion" : "3.1.0-pre-", "gitVersion" : "bbbff6fde677a4e5c9d79e8aaa62357633bb9191", "uname" : { "sysname" : "Darwin", "release" : "13.3.0", "version" : "Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64", "machine" : "x86_64" }, "somap" : [ { "path" : "/Users/danielalabi/code/mongo/./mongod", "machType" : 2, "b" : "104D87000", "buildId" : "9B4C7886C2DB311C83B5B801AC2D8FF0" }, { "path" : "/usr/lib/libSystem.B.dylib", "machType" : 6, "b" : "7FFF8D2E6000", "buildId" : "E6BCC0314342318CA1ADA8E9AEAE716F" }, { "path" : "/usr/lib/libc++.1.dylib", "machType" : 6, "b" : "7FFF8FE92000", "buildId" : "4F68DFC5207739A8A449CAC5FDEE7BDE" }, { "path" : "/usr/lib/system/libcache.dylib", "machType" : 6, "b" : "7FFF850D8000", "buildId" : "BDC1E65B72A13DA3A57CB23159CAAD0B" }, { "path" : "/usr/lib/system/libcommonCrypto.dylib", "machType" : 6, "b" : "7FFF849C1000", "buildId" : "8C4F0CA0389C3EDCB155E62DD2187E1D" }, { "path" : "/usr/lib/system/libcompiler_rt.dylib", "machType" : 6, "b" : "7FFF84C83000", "buildId" : "4CD916B21B17362AB403EF24A1DAC141" }, { "path" : "/usr/lib/system/libcopyfile.dylib", "machType" : 6, "b" : "7FFF88C2D000", "buildId" : "CF29DFF605893590834C82E2316612E8" }, { "path" : "/usr/lib/system/libcorecrypto.dylib", "machType" : 6, "b" : "7FFF87C87000", "buildId" : "F3973C2814B63006BB2B00DD7F09ABC7" }, { "path" : "/usr/lib/system/libdispatch.dylib", "machType" : 6, "b" : "7FFF8D4AE000", "buildId" : "C4E4A18D3C3B3C9C8709A4270D998DE7" }, { "path" : "/usr/lib/system/libdyld.dylib", "machType" : 6, "b" : "7FFF88A73000", "buildId" : "A1273A0249283BACA8466C069DC1A0A6" }, { "path" : "/usr/lib/system/libkeymgr.dylib", "machType" : 6, "b" : "7FFF8F42D000", "buildId" : "3AA8D85DCF003BD3A5A0E28E1A32A6D8" }, { "path" : "/usr/lib/system/liblaunch.dylib", "machType" : 6, "b" : "7FFF8FB1F000", "buildId" : "A40A0C7B321639B48AE0B5D3BAF1DA8A" }, { "path" : "/usr/lib/system/libmacho.dylib", "machType" : 6, "b" : "7FFF903CF000", "buildId" : "1D2910DFC0363A82A3FD44FF73B5FF9B" }, { "path" : "/usr/lib/system/libquarantine.dylib", "machType" : 6, "b" : "7FFF84A43000", "buildId" : "7A1A2BCBC03D3A25BFA43E569B2D2C38" }, { "path" : "/usr/lib/system/libremovefile.dylib", "machType" : 6, "b" : "7FFF8ACF0000", "buildId" : "3543F917928E3DB2A2F47AB73B4970EF" }, { "path" : "/usr/lib/system/libsystem_asl.dylib", "machType" : 6, "b" : "7FFF886ED000", "buildId" : "655FB34352CF3E2FB14DBEBF5AAEF94D" }, { "path" : "/usr/lib/system/libsystem_blocks.dylib", "machType" : 6, "b" : "7FFF85C22000", "buildId" : "FB856CD12AEA39078E9B1E54B6827F82" }, { "path" : "/usr/lib/system/libsystem_c.dylib", "machType" : 6, "b" : "7FFF8CB87000", "buildId" : "6FD3A4004BB23B95B90CBE6E9D0D78FA" }, { "path" : "/usr/lib/system/libsystem_configuration.dylib", "machType" : 6, "b" : "7FFF8EFE5000", "buildId" : "4998CB6A9D54390A9F575D1AC53C135C" }, { "path" : "/usr/lib/system/libsystem_dnssd.dylib", "machType" : 6, "b" : "7FFF8AC6C000", "buildId" : "17B03FFD92C532829981EBB28B456207" }, { "path" : "/usr/lib/system/libsystem_info.dylib", "machType" : 6, "b" : "7FFF84BA8000", "buildId" : "7D41A156D2853849A2C3C04ADE797D98" }, { "path" : "/usr/lib/system/libsystem_kernel.dylib", "machType" : 6, "b" : "7FFF90D53000", "buildId" : "873931CED1AF3596AADBD2E63C9AB29F" }, { "path" : "/usr/lib/system/libsystem_m.dylib", "machType" : 6, "b" : "7FFF8502D000", "buildId" : "B7F0E2E4277733FCA787D6430B630D54" }, { "path" : "/usr/lib/system/libsystem_malloc.dylib", "machType" : 6, "b" : "7FFF89D0E000", "buildId" : "A695B4E438E9332EA77229D31E3F1385" }, { "path" : "/usr/lib/system/libsystem_network.dylib", "machType" : 6, "b" : "7FFF8B0BE000", "buildId" : "8B1E1F1DA5CC3BAE8B1EABC84337A364" }, { "path" : "/usr/lib/system/libsystem_notify.dylib", "machType" : 6, "b" : "7FFF84EED000", "buildId" : "52571EC3689437E4946E064B021ED44E" }, { "path" : "/usr/lib/system/libsystem_platform.dylib", "machType" : 6, "b" : "7FFF88C18000", "buildId" : "3C3D3DA832B9324398ECD89B9A1670B3" }, { "path" : "/usr/lib/system/libsystem_pthread.dylib", "machType" : 6, "b" : "7FFF90D4B000", "buildId" : "AB498556B555310E9041F67EC9E00E2C" }, { "path" : "/usr/lib/system/libsystem_sandbox.dylib", "machType" : 6, "b" : "7FFF8E15E000", "buildId" : "0D0B13EA6B7A3AC8BE60B548543BEB77" }, { "path" : "/usr/lib/system/libsystem_stats.dylib", "machType" : 6, "b" : "7FFF918F2000", "buildId" : "337946FCB2E13DFAA8B530DA8D584D75" }, { "path" : "/usr/lib/system/libunc.dylib", "machType" : 6, "b" : "7FFF9020A000", "buildId" : "62682455186236FE8A047A6B91256438" }, { "path" : "/usr/lib/system/libunwind.dylib", "machType" : 6, "b" : "7FFF8CC75000", "buildId" : "78DCC3582FC1302EB3950155B47CB547" }, { "path" : "/usr/lib/system/libxpc.dylib", "machType" : 6, "b" : "7FFF85238000", "buildId" : "AB40CD57F4543FD4B41563B3C0D5C624" }, { "path" : "/usr/lib/libobjc.A.dylib", "machType" : 6, "b" : "7FFF8A620000", "buildId" : "AD7FD984271E30F4A3616B20319EC73B" }, { "path" : "/usr/lib/libauto.dylib", "machType" : 6, "b" : "7FFF84EAA000", "buildId" : "F45C36E8B6063886B5B1B6745E757CA8" }, { "path" : "/usr/lib/libc++abi.dylib", "machType" : 6, "b" : "7FFF8FB84000", "buildId" : "21A807D367323455B77F743E9F916DF0" }, { "path" : "/usr/lib/libDiagnosticMessagesClient.dylib", "machType" : 6, "b" : "7FFF8FF18000", "buildId" : "4CDB0F7BC0AF3424BC39495696F0DB1E" } ] }}
       mongod(_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE+0x34) [0x105d24e14]
       mongod(_ZN5mongo10logContextEPKc+0xCA) [0x105c785da]
       mongod(_ZN5mongo11msgassertedEiPKc+0xEA) [0x105c503aa]
       mongod(_ZN5mongo11msgassertedEiRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE+0xF7) [0x105c502b7]
       mongod(_ZNK5mongo11BSONElement3chkEi+0x18F) [0x104de9d8f]
       mongod(_ZNK5mongo11BSONElement6StringEv+0x2A) [0x104dea7fa]
       mongod(_ZN5mongo9GetLogCmd3runEPNS_16OperationContextERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7BSONObjEiRS9_RNS_14BSONObjBuilderEb+0x78) [0x1051a6ef8]
       mongod(_ZN5mongo12_execCommandEPNS_16OperationContextEPNS_7CommandERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERNS_7BSONObjEiRSA_RNS_14BSONObjBuilderEb+0xC5) [0x10518ff45]
       mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_iPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0x1B1C) [0x1051923ec]
       mongod(_ZN5mongo12_runCommandsEPNS_16OperationContextEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x85A) [0x10519305a]
       mongod(_ZN5mongoL11runCommandsEPNS_16OperationContextEPKcRNS_7BSONObjERNS_5CurOpERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x60) [0x10557d290]
       mongod(_ZN5mongo8runQueryEPNS_16OperationContextERNS_7MessageERNS_12QueryMessageERKNS_15NamespaceStringERNS_5CurOpES3_b+0x4CD) [0x10557987d]
       mongod(_ZN5mongoL13receivedQueryEPNS_16OperationContextERNS_6ClientERNS_10DbResponseERNS_7MessageEb+0x3A0) [0x1053b6880]
       mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortEb+0x5D0) [0x1053b4750]
       mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x18B) [0x104da4c4b]
       mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0xAD6) [0x105ca1fc6]
       mongod(_ZN5boost6detail11thread_dataINSt3__16__bindIPFPvS4_EJPN5mongo12_GLOBAL__N_124MessagingPortWithHandlerEEEEE3runEv+0xA4) [0x105ca04f4]
       mongod(_ZN5boost12_GLOBAL__N_112thread_proxyEPv+0x85) [0x105db72c5]
       libsystem_pthread.dylib(_pthread_body+0x8A) [0x7fff90d4c899]
       libsystem_pthread.dylib(_pthread_struct_init+0x0) [0x7fff90d4c72a]
       libsystem_pthread.dylib(thread_start+0xD) [0x7fff90d50fc9]
      -----  END BACKTRACE  -----
      

            Assignee:
            daniel.alabi@10gen.com Daniel Alabi
            Reporter:
            daniel.alabi@10gen.com Daniel Alabi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: