Multithreaded Test Application

Aug 24, 2016 at 2:44 PM
Hi - should OpenCppCoverage successfully handle a multithreaded application ? I am seeing frequent crashes of covered processes that are multithreaded. I am using debug builds, with only the executable module itself being covered, no DLLs.
Coordinator
Aug 28, 2016 at 4:42 PM
Hello,

There is no know issue about multithreaded application and OpenCppCoverage is a single threaded application.
I did some test on a small multithreaded code but do not find any issue.

As OpenCppCoverage put breakpoints on each line, it can change the order of thread executation and may be can explain your issue.
Are you able to reproduce the problem on a smaller example?
If yes I will be happy to investigate.

Hope that help,

OpenCppCoverage
Aug 29, 2016 at 1:35 PM
Thanks, I will look into it in more detail and report back.

Cheers
Nigel
Aug 29, 2016 at 8:43 PM
It looks like this was a false alarm, sorry about that. Once I had finalized the command line arguments I was using for our other programs that weren't crashing, it is now working with those same arguments on the multi-threaded program. Although it is a debug build it also incorporates some optimized (release build) third-party code which is now excluded from the source files, possibly that was the problem.

Cheers
Nigel
Marked as answer by OpenCppCoverage on 9/3/2016 at 12:56 PM
Coordinator
Sep 3, 2016 at 8:56 PM
Hi,

Happy to hear your problem is solved,

OpenCppCoverage