[Mono-bugs] [Bug 44474][Nor] New - Mono hangs and crashes after some seconds when running this loop

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 11 Jun 2003 01:21:54 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by cmello@gmx.net.

http://bugzilla.ximian.com/show_bug.cgi?id=44474

--- shadow/44474	Wed Jun 11 01:21:54 2003
+++ shadow/44474.tmp.4148	Wed Jun 11 01:21:54 2003
@@ -0,0 +1,69 @@
+Bug#: 44474
+Product: Mono/Runtime
+Version: unspecified
+OS: Mandrake 9.1
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: cmello@gmx.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono hangs and crashes after some seconds when running this loop
+
+Description:
+I have been doing some small tests to evaluate the current Mono 
+performance, and I got problems with this sample. It runs ok in MS .NET 
+but core dumps after some seconds in Mono.
+
+Steps to reproduce the problem:
+- Create an application with the following code:
+
+Class2.cs:
+
+public class Class2
+{
+  private int m_a;
+	
+  public Class2(int init) 
+  {
+    int[] arr = new int[init];
+    for (int i=0;i<init;i++)
+    {
+      arr [i]= i;
+    }
+
+    m_a = init; 
+  }
+
+  public int getVal()
+  {
+    return m_a;
+  }
+}
+
+Main class:
+
+Console.WriteLine("start");
+
+for (int i=0;i<30000;i++)
+{
+  Class2 obj = new Class2(i);
+}
+
+Console.WriteLine("ok");
+
+
+Expected Results:
+This sample takes 26 seconds to finish in my k6-2 500 under MS .NET 1.1.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+Congratulations for the excellent job, I hope to be able to help a bit. :-)