Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
2.6.0
-
None
-
Linux
Description
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
Attachments
Issue Links
- duplicates
-
SERVER-13516 Array updates on documents with more than 128 BSON elements may crash mongod
-
- Closed
-