Thank you all for your replies. Yes it was the problem with linking but a bit subtle one.

I compiled OpenCV library with qt dependence ( which was a third party library for my project. ). Even though it was compiled in release mode , it contained debug symbols. I did no go in depth to investigate the problem because of time constraint. But I solved the problem by recompiling from scratch the library with all the debug symbol flags disabled.

Also my project was CMake based , not that it had anything to do with my problem.

Thank you very much for all your replies.

Regards

Avanindra Singh