debug segmentation process