Recursive calls made to mongo::Document::toBson, in mongo/db/pipeline/document.cpp.
To reproduce (on my OS X 10.8 machine, triggers if levels >= 811):
function makeNestObj(depth){ toret = {s : 1}; for(i = 1; i < depth; i++){ toret = {s : toret}; } return toret; } db.foo.insert(makeNestObj(levels)); db.foo.aggregate({$project:{s:1}})
(snippet above borrowed from SERVER-6462)
- is duplicated by
-
SERVER-13878 Issue with aggregation pipeline
- Closed
- related to
-
SERVER-15559 Fatal Exception: Deeply nested $cond drops mongod process
- Closed
-
SERVER-6462 stack overflow when comparing deeply nested bson objects
- Closed