-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.6.0
-
Component/s: Querying
-
None
-
Linux
Running this script caused a seg fault on 2.6.0:
db.theCollection.find({}, { pro:1, id: 1, title: 1, places:1 }).forEach( function(z) { z.places.forEach( function(p){ print(z.title+' - '+p.title+' # '+p.gwid); db.theCollection.update( { 'places.gwid': p.gwid}, { $set: { 'places.$.pro': z.pro } } ) } ) print(z.id+' - '+z.title+' '+z.places.length); })
Maybe not very good to iterate like this but a seg fault is not good.
I guess that i exceeded the number of threads for the system.
Attatched script and logfile
- duplicates
-
SERVER-13516 Array updates on documents with more than 128 BSON elements may crash mongod
- Closed