[Mono-bugs] [Bug 77060][Maj] Changed - C# compiler takes infinite amount of time

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Dec 21 18:56:41 EST 2005


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 miguel at ximian.com.

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

--- shadow/77060	2005-12-21 16:40:03.000000000 -0500
+++ shadow/77060.tmp.4691	2005-12-21 18:56:41.000000000 -0500
@@ -2,14 +2,14 @@
 Product: Mono: Compilers
 Version: 1.1
 OS: other
 OS Details: Fedora Core 4 & Debian
 Status: NEW   
 Resolution: 
-Severity: 
-Priority: Critical
+Severity: Unknown
+Priority: Major
 Component: C#
 AssignedTo: rharinath at novell.com                            
 ReportedBy: perryresearch at zoot.net.nz               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
@@ -42,6 +42,46 @@
 Mac referecnes your scripts have picked up.
 
 ------- Additional Comments From perryresearch at zoot.net.nz  2005-12-21 16:40 -------
 Created an attachment (id=16240)
 Full source code to cause brain damage to C# compiler under Mono 1.1.9/10/11
 
+
+------- Additional Comments From miguel at ximian.com  2005-12-21 18:56 -------
+A simpler test case:
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
+
+  class Space
+  { public int Value;
+
+    public delegate void DoCopy();
+
+    public DoCopy CopyIt;
+
+    public void Leak(bool useArray, int max)
+    { DoCopy one;
+
+      { int answer = 0;
+        int[] work;
+
+        CopyIt = delegate { Value = answer; };
+        one = delegate
+              { work = new int[max];
+                foreach(int x in work) answer += x;
+              };
+      }
+
+      one();
+    }
+  }
+
+  class Program
+  {
+    static void Main(string[] args)
+    {
+    }
+  }
+


More information about the mono-bugs mailing list