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.
Thanks for reporting the issue.
As a workaround, please add a signal handler to catch SIGTERM and call exit(0) in the handler.
void sig_hdl(int sig)
If you already have a handler for this signal, please add a call to exit() at the end of the handler if possible.
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.