cygwin heap error

I was working on smac connectivity test application code. It was able to compile and working fine. But suddenly I started getting below error. Even if I compile other example codes, I am getting below error. Pleas let me know why this kind of issues will occur and how to fix.