I have a batch script that calls cleartool
to execute the lsactivity
command after being triggered by a checkin
operation. Results from the call are written to an output file. The line in my batch is:
cleartool lsactivity -long "%ACTIVITY%">streaminfo_%timestamp%.txt
where %timestamp%
is a variable that contains the date and time, making each call unique.
98% of the time I have no problems. The remaining 2%, however, is when cleartool crashes leaving a locked 0KB file that causes the CMD script to hang until closed using Sysinternals Process Explorer.
After browsing through the OS (Win 2003 Server) system event viewer, I found this message that corresponds to the timestamp given to the blocked file, and is classified as Information and not Error:
Application popup: Microsoft Visual C++ Runtime Library : Runtime Error!
Program C:\Program Files\Rational\ClearCase\bin\cleartool.exe
This application has requested the Runtime to terminate it in an unusual way.
Has anybody else encountered this issue before or have any suggestions to solve or as to why it happens?
This thread on an IBM forum is about the same issue, but it has not been answered.
Any feedback would be much appreciated.
Thank you!
Pending a definitive answer for the root cause of the cleartool crash (like this cc-cq link), I would set a Windows job which would: