Try to localize the source of the problem - If you can, recompile everything with another compiler (or for another platform) to see if it is specific to MinGW. - If possible, recompile OpenCV to not use TBB. Does the problem go away after that? - Does OpenCV provide control over the degree of parallelism / number of threads to use? If yes, set it to 1 (no parallelism) and see whether it eliminates the problem. - Do you have any additional parallelism/threading in the application(s)? If yes, try removing it. - Why can't you debug? TBB libs can be built in debug mode, so you should be able to do some debugging. Possibly trying it on another platform can help with debugging as well.