Index: /trunk/ppMerge/src/ppMergeLoop.c
===================================================================
--- /trunk/ppMerge/src/ppMergeLoop.c	(revision 21138)
+++ /trunk/ppMerge/src/ppMergeLoop.c	(revision 21139)
@@ -254,4 +254,12 @@
                 psFree(countsRO);
 
+		// XXX EAM 2009.01.18 : sigmaCell and countsCell need to have their concepts copied from outCell.
+		// This was causing segfaults for VYSOS5; Why did this ever work for SIMTEST?
+		if (!pmConceptsCopyCell(countsCell, outCell)) {
+		    psError(PS_ERR_UNKNOWN, false, "Unable to copy cell concepts.");
+		    psFree(outRO);
+		    goto ERROR;
+		}
+
                 pmCell *sigmaCell = pmFPAfileThisCell(config->files, view, "PPMERGE.OUTPUT.SIGMA");
                 pmReadout *sigmaRO = pmReadoutAlloc(sigmaCell); // Readout with stdev per pixel
@@ -261,4 +269,10 @@
                 sigmaRO->data_exists = sigmaCell->data_exists = sigmaCell->parent->data_exists = true;
                 psFree(sigmaRO);
+
+		if (!pmConceptsCopyCell(sigmaCell, outCell)) {
+		    psError(PS_ERR_UNKNOWN, false, "Unable to copy cell concepts.");
+		    psFree(outRO);
+		    goto ERROR;
+		}
             }
 
Index: /trunk/ppMerge/src/ppMergeLoop_Threaded.c
===================================================================
--- /trunk/ppMerge/src/ppMergeLoop_Threaded.c	(revision 21138)
+++ /trunk/ppMerge/src/ppMergeLoop_Threaded.c	(revision 21139)
@@ -332,4 +332,12 @@
                 psFree(countsRO);
 
+		// XXX EAM 2009.01.18 : sigmaCell and countsCell need to have their concepts copied from outCell.
+		// This was causing segfaults for VYSOS5; Why did this ever work for SIMTEST?
+		if (!pmConceptsCopyCell(countsCell, outCell)) {
+		    psError(PS_ERR_UNKNOWN, false, "Unable to copy cell concepts.");
+		    psFree(outRO);
+		    goto ERROR;
+		}
+
                 pmCell *sigmaCell = pmFPAfileThisCell(config->files, view, "PPMERGE.OUTPUT.SIGMA");
                 pmReadout *sigmaRO = pmReadoutAlloc(sigmaCell); // Readout with stdev per pixel
@@ -339,4 +347,10 @@
                 sigmaRO->data_exists = sigmaCell->data_exists = sigmaCell->parent->data_exists = true;
                 psFree(sigmaRO);
+
+		if (!pmConceptsCopyCell(sigmaCell, outCell)) {
+		    psError(PS_ERR_UNKNOWN, false, "Unable to copy cell concepts.");
+		    psFree(outRO);
+		    goto ERROR;
+		}
             }
 
