[Mono-bugs] [Bug 536776] Mono crashes when creating too many threads or running too many processes
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Sep 6 04:41:12 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=536776
User joakim at nsense.net added comment
http://bugzilla.novell.com/show_bug.cgi?id=536776#c2
Joakim Sandström <joakim at nsense.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #2 from Joakim Sandström <joakim at nsense.net> 2009-09-06 02:40:56 MDT ---
Ok, now testing with 2.4.2.3.
With code:
System.Diagnostics.
Process[] processes = new System.Diagnostics.Process[4096];
for (int i = 0; i < 4096; i++)
{
Console.WriteLine("Starting: " + i.ToString());
processes[i] = new System.Diagnostics.Process();
processes[i].StartInfo.FileName ="echo";
processes[i].StartInfo.Arguments = "\"hello mono \";";
processes[i].Start();
System.GC.Collect();
System.GC.WaitForPendingFinalizers();
System.Threading.Thread.Sleep(10);
}
The problem remains. I've tested with close. but its too late to close, because
the process has already exited. Also, the exited event isn't firing like it
should. You can call kill and dispose on the threads. But that doesn't have any
effect.
--- Comment #3 from Joakim Sandström <joakim at nsense.net> 2009-09-06 02:41:11 MDT ---
Ok, now testing with 2.4.2.3.
With code:
System.Diagnostics.
Process[] processes = new System.Diagnostics.Process[4096];
for (int i = 0; i < 4096; i++)
{
Console.WriteLine("Starting: " + i.ToString());
processes[i] = new System.Diagnostics.Process();
processes[i].StartInfo.FileName ="echo";
processes[i].StartInfo.Arguments = "\"hello mono \";";
processes[i].Start();
System.GC.Collect();
System.GC.WaitForPendingFinalizers();
System.Threading.Thread.Sleep(10);
}
The problem remains. I've tested with close. but its too late to close, because
the process has already exited. Also, the exited event isn't firing like it
should. You can call kill and dispose on the threads. But that doesn't have any
effect.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list