********> bugfix cd $AMBERHOME patch -p0 -N < bugfix Author: Daniel R. Roe Date: 2010-10-07 Programs: ptraj Description: Fixes issue where output of cluster trajectory could cause a segfault when trajectory became too large (filestack was not properly cleared). ----------------------------------------------------------------------------- --- AmberTools/src/ptraj/cluster.c 2010-10-07 17:02:51.928036297 -0400 +++ AmberTools/src/ptraj/cluster.c 2010-10-07 17:03:48.046160351 -0400 @@ -4089,7 +4089,7 @@ * to avoid crashing out if we hit the OS-level file-size limit: */ FileNumber[ClusterIndex] = FileNumber[ClusterIndex] + 1; - fclose(OutputFiles[ClusterIndex]); + safe_fclose(OutputFiles[ClusterIndex]); FirstOutputFlag[ClusterIndex] = 1; FirstFlag = 1; } --------------------------------------------------------------------------- Workarounds: none