Recently, I've had to install
MinGW and play around with it. When building a project, the compiler seemed to hang after a couple of seconds, and I had to kill the process. I could restart the build, but after a couple of seconds it would hang again. Googling the problem yielded a surprising fix:
From
http://lists-archives.org/mingw-users/03939-as-exe-hanging-intermittently-solved.html:
QUOTE:
When I compile programs - even trivial test programs - it usually works
fine, but some of the time gcc/g++ hang indefinitely. A bit of
investigation with Process Explorer revealed that the instance of as.exe
exec'd by gcc is always running when the hang occurs. `ps -aW' also shows it, but interestingly it has a pid of 0, with only the winpid being non 0. Process Explorer suggests that `as.exe' is not using any CPU time, nor is its memory allocation changing at all. I strongly suspect it's deadlocked somewhere. With more testing I found that the hang occurs whether as is run from gcc, or directly from the shell.
QUOTE:
Killing LVPrcSrv.exe does not cause hung as.exe processes to resume execution, but after it is killed new as.exe processes will not hang.