Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
(Originally reported on http://stackoverflow.com/questions/7401199/why-do-monos-xbuild-and-mcs-sometimes-simply-freeze-when-invoked)
I have experienced this both with Mono 2.10.2 and 2.10.5 on Windows 7 x64.
Occasionally, when invoking mcs or xbuild with any parameters (or none) they will simply freeze for a few minutes. This is before the first output occurs on stdout. In Process Explorer, I see the mono.exe running with basically no activity: constant memory usage, no CPU cycles most of the time. I see two threads:
The first one with the start address mono-2.0.dll!GC_push_all_stack+0x6650 hangs in state Wait:UserRequest with the following stack trace:
The other one with start address mono.exe+0x1290 hangs in state Wait:WrLpcReply:
Every once in a while they will have a little activity and after a few minutes, they will proceed with their task as if nothing had happened. Repeating the same command will result in the same amount of freezing, however.
As soon as I reboot my machine, they react immediately again for a while.
I don't seem to be able to edit the version attribute, but as noted, this has occured in 2.10.2 and 2.10.5. I still have the issue in 2.10.6.
This is still occuring about once to twice a day and always requires a reboot to fix. Any troubleshooting advice? There has got to be some reason why only I am experiencing this, apparently.
This still occurs in 2.10.8. I'd even say it's becoming more frequent. (I upgraded to 2.10.8 yesterday and had to reboot three times because mcs was freezing yesterday alone.)
Does it happen with the latest mono 3.2.X?
Sorry, that was two years ago. I'm no longer working on this project---I'm not even with the same company anymore and don't have access to the source code or the same machine configuration anymore.
A bit late to debug this, I'll close as WORKSFORME. :)