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

Mongodb Segmentation fault

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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

        1. mongocrash.txt
          2 kB
          Pontus Naimell

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

              Created:
              Updated:
              Resolved: