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

Text-indexing deeply nested documents can cause stack overflow

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.3.2
    • Security, Stability, Text Search
    • None
    • Fully Compatible
    • ALL
    • Query 2017-01-23, Query 2017-02-13, Query 2017-03-27

    Description

      Recursive calls made to mongo::fts::FTSSpec::_scoreRecurse, in mongo/db/fts/fts_spec.cpp.

      To reproduce (on my OS X 10.8 machine, triggers if levels >= 2306):

      function makeNestObj(depth){
          toret = {s : 1};
          for(i = 1; i < depth; i++){
              toret = {s : toret};
          }
          return toret;
      }
      db.foo.insert(makeNestObj(levels));
      db.foo.ensureIndex({"$**":"text"})

      (snippet above borrowed from SERVER-6462)

      Attachments

        Activity

          People

            kyle.suarez@mongodb.com Kyle Suarez
            rassi J Rassi
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: