[Mono-bugs] [Bug 536776] New: Mono crashes when creating too many threads or running too many processes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 4 03:28:07 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#c319514

           Summary: Mono crashes when creating too many threads or running
                    too many processes
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.0.x
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: GC
        AssignedTo: lupus at novell.com
        ReportedBy: joakim at nsense.net
         QAContact: mono-bugs at lists.ximian.com
        Depends on: 319514
          Found By: DeveloperNet


+++ This bug was initially created as a clone of Bug #319514 +++
---- Reported by carlos at applianz.com 2005-11-12 13:22:45 MST ----

I've seen this bug pop up in different versions every now and then. I've tried
code that uses threads to launch processes and all kinds of work around. The
problem is simple however.

Running on latest jaunty ubuntu with mono version: 2.0.1

The following code fails after 255 iterations: 

     static void Main(string[] args)
        {

            for (int i = 0; i < 4096; i++)
            {
                Console.WriteLine("Starting: " + i.ToString());
                System.Diagnostics.Process.Start("echo \"hello mono\";");
                System.GC.Collect();
                System.GC.WaitForPendingFinalizers();
                System.Threading.Thread.Sleep(10);
            }
        }

In addition there is a problem in the way the error is casted. As a WARNING 
from the mono runtime - Createprocess: error creating process handle. This is
not seen by the application so the application assumes everything is fine. 

I've tried different ways with greater sleeps (for gc to have time to come
collect). But never been able to go above 300 processes. And at the same time
being unable to notice the error (pretty critical).

-- 
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