Whenever a MapReduce mapper emits an object that has a recursive structure, mongod crashes with a segmentation fault. For example:
function map() {
var x =
;
x.bar = x;
emit(this._id, x);
}
Removing the line "x.bar = x;" solves the issue. Although recursivity in M/R should probably be disallowed, the database should of course not crash.