For some of our applications, uncover doesn't write the .instrdata when the application is shut down. How can we correct this?
We have instrumented the executable and the .uc directory is present. We run the instrumented executable and shut it down using kill -15. When we try to run uncover again to create the .er file, we receive an error saying the .instrdata file is not available. All that exists in the .uc directory is a file with the name of the executable. For some of our applications, uncover is working correctly using this method, but for others it is not.
We found out that this was happening for two reasons:
1. Our application was terminating abnormally and not writing any output.
2. The output was going to an unexpected directory. We used the -d option to specify the directory for the output.