Hello there!

    We got segmentation fault in sched/backfill plugin. The problem found
and fixed, see attached patch.

    With best wishes.
    Andriy.
diff -udpr slurm-2.2.6/src/plugins/sched/backfill/backfill.c slurm-2.2.6.backfill/src/plugins/sched/backfill/backfill.c
--- slurm-2.2.6/src/plugins/sched/backfill/backfill.c	2011-05-27 21:25:06.000000000 +0300
+++ slurm-2.2.6.backfill/src/plugins/sched/backfill/backfill.c	2011-06-24 17:03:20.000000000 +0300
@@ -763,8 +763,11 @@ static int _start_job(struct job_record
 		job_ptr->details->exc_node_bitmap = bit_copy(resv_bitmap);
 
 	rc = select_nodes(job_ptr, false, NULL);
-	FREE_NULL_BITMAP(job_ptr->details->exc_node_bitmap);
-	job_ptr->details->exc_node_bitmap = orig_exc_nodes;
+	if (job_ptr->details) { /* select_nodes() might cancel the job! */
+		FREE_NULL_BITMAP(job_ptr->details->exc_node_bitmap);
+		job_ptr->details->exc_node_bitmap = orig_exc_nodes;
+	} else
+		FREE_NULL_BITMAP(orig_exc_nodes);
 	if (rc == SLURM_SUCCESS) {
 		/* job initiated */
 		last_job_update = time(NULL);

Reply via email to