-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.4.1
-
Component/s: MapReduce
-
None
-
Environment:osx
-
ALL
-
I have a mapreduce job that causes a segfault every time it runs.
The map seems to work fine, but the reduce causes the following error, which then corrupts the database files
map=function(){ var dealer_identifier = this.source+"_"+this.source_dealer_id emit(dealer_identifier, {cars: [ {source: this.source, source_id: this.source_id} ] }); } reduce=function(key,values){ reducedValue = {cars: [] }; values.forEach(function(value){ for(x in value.cars){ reducedValue.cars.push(value.cars[x]); } }); return reducedValue; } db.getCollection("atc_and_cdc_reduced").mapReduce(map, reduce, {out: "import_data_dealer_cars"});
- duplicates
-
SERVER-9051 v8 heap allocation failure can lead to segfault
- Closed