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

non user friendly assertion with skip:0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.1
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Operating System:
      ALL

      Description

      Test

      > c.drop()
      false
      > c.aggregate( [{$skip:0}] )
      {
      	"errmsg" : "exception: assertion src/mongo/db/pipeline/document_source_skip.cpp:95",
      	"code" : 0,
      	"ok" : 0
      }
      > 

      Log

      Wed Feb  1 12:36:20 [conn1]  test.c Assertion failure pSkip->skip > 0 src/mongo/db/pipeline/document_source_skip.cpp 95
      0x10ea80525 0x10ee387bb 0x10f1e4d99 0x10ed04015 0x10ea9b781 0x10eeb7f08 0x10efa524e 0x10efa6e66 0x10efa7b90 0x10f1b9ed5 0x10f1ba74a 0x10ef11a7d 0x10ef16799 0x10ea6b213 0x10ee45caa 0x10ee47340 0x10ee473a2 0x10ee473cd 0x110d1f460 0x7fff8a5d68bf 
       0   mongod                              0x000000010ea80525 _ZN5mongo15printStackTraceERSo + 37
       1   mongod                              0x000000010ee387bb _ZN5mongo12sayDbContextEPKc + 123
       2   mongod                              0x000000010f1e4d99 _ZN5mongo8assertedEPKcS1_j + 409
       3   mongod                              0x000000010ed04015 _ZN5mongo18DocumentSourceSkip14createFromBsonEPNS_11BSONElementERKN5boost13intrusive_ptrINS_17ExpressionContextEEE + 625
       4   mongod                              0x000000010ea9b781 _ZN5mongo8Pipeline12parseCommandERSsRNS_7BSONObjERKN5boost13intrusive_ptrINS_17ExpressionContextEEE + 2387
       5   mongod                              0x000000010eeb7f08 _ZN5mongo15PipelineCommand3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb + 152
       6   mongod                              0x000000010efa524e _ZN5mongo12_execCommandEPNS_7CommandERKSsRNS_7BSONObjEiRNS_14BSONObjBuilderEb + 142
       7   mongod                              0x000000010efa6e66 _ZN5mongo11execCommandEPNS_7CommandERNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb + 4134
       8   mongod                              0x000000010efa7b90 _ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 1472
       9   mongod                              0x000000010f1b9ed5 _ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 117
       10  mongod                              0x000000010f1ba74a _ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_ + 1018
       11  mongod                              0x000000010ef11a7d _ZN5mongoL13receivedQueryERNS_6ClientERNS_10DbResponseERNS_7MessageE + 349
       12  mongod                              0x000000010ef16799 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 1049
       13  mongod                              0x000000010ea6b213 _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 261
       14  mongod                              0x000000010ee45caa _ZN5mongo3pms9threadRunEPNS_13MessagingPortE + 1546
       15  mongod                              0x000000010ee47340 _ZN5boost3_bi5list1INS0_5valueIPN5mongo13MessagingPortEEEEclIPFvS5_ENS0_5list0EEEvNS0_4typeIvEERT_RT0_i + 78
       16  mongod                              0x000000010ee473a2 _ZN5boost3_bi6bind_tIvPFvPN5mongo13MessagingPortEENS0_5list1INS0_5valueIS4_EEEEEclEv + 92
       17  mongod                              0x000000010ee473cd _ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvPN5mongo13MessagingPortEENS2_5list1INS2_5valueIS6_EEEEEEE3runEv + 37
       18  libboost_thread-mt.dylib            0x0000000110d1f460 thread_proxy + 160
       19  libsystem_c.dylib                   0x00007fff8a5d68bf _pthread_start + 335
      Wed Feb  1 12:36:20 [conn1] command test.$cmd command: { aggregate: "c", pipeline: [ { $skip: 0.0 } ] } ntoreturn:1 keyUpdates:0 reslen:130 212ms

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: