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.
Created attachment 254 [details]
gdb thread apply all bt full
The code in question is running "git rev-list HEAD" and mono reproducibly hangs itself on reading from this command.
This is the calling code:
protected virtual void ExecuteCommand(string fileName, string arguments,
Action<string> outputHandler, Func<int, string, bool> errorHandler)
StringBuilder error = new StringBuilder();
using (Process process = new Process())
process.StartInfo.FileName = fileName;
process.StartInfo.Arguments = arguments;
process.StartInfo.WorkingDirectory = Path;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.OutputDataReceived += (o, e) =>
if (e.Data != null)
process.ErrorDataReceived += (o, e) =>
if (e.Data != null)
// Error handling omitted
I've attached a gdb thread apply all bt full log from the hanging process.
The hang goes away when I repack the underlying repository, pointing to some kind of timing error?
PS: the new bugzilla is much nicer than novell's!
I'm running mono-2-10/482e406
Please attach a complete test case.
Created attachment 395 [details]
runnable example file
I've packaged the example code into a small executable class. When I run this on Debian squeeze in my mono-2-10 clone/checkout it hangs two out of three times.
I'm using a locally compiled mono-2-10/482e406, I cannot seem to reproduce that against master/ed95f38.
Created attachment 396 [details]
a logfile from the failing and running tests
This is a logfile me running the compiled binary. Note that running the git rev-list takes around a second wallclock time. The processes which are aborted (^C) all were running more than four seconds (and would not return after longer waiting) and sometimes they run through in the expected second.
This behaviour is not reproducable with master, as demonstrated in the lower half of the log.
Can't reproduce with master or mono-2-10 ----Mono JIT compiler version 18.104.22.168 (mono-2-10/2e069b5 Mon Jan 9 11:49:00 EST 2012)----