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

Mongod hangs when accessing deeply recursive documents

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Environment:
      Fedora 19 w/ 10gen mongo rpms
    • ALL
    • Hide

      xzcat insert.dat.xz | nc localhost 27017
      mongo test
      > db.test.find()

      Show
      xzcat insert.dat.xz | nc localhost 27017 mongo test > db.test.find()

      A deeply nested document will cause the shell to hang. I'm not totally sure it is just the shell, as all CPUs spin and my system hangs. (Keep that in mind while testing).

      I've provided a mongo wire message encoded as a file that can be netcat'ed into the server. Then a supplemental query to the collection will cause the shell (and in my case, entire system, including mouse/video/etc) to hang.

      The test document that is inserted is just under 16Mb in size, with recursive documents {'': {'': ...}}. Basically large enough to cause any recursive bson parser to stack overflow.

            Assignee:
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Reporter:
            christian.hergert@10gen.com Christian Hergert
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: