Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14014

Mongodb Segmentation fault

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 2.6.0
    • None
    • Querying
    • 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

          Activity

            People

              ramon.fernandez@mongodb.com Ramon Fernandez Marina
              pontusnaimell Pontus Naimell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: