[Mono-bugs] [Bug 78969][Cri] New - Accessing an at least 3 dimensional array about 130000 times causes a StackOverflowException
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jul 28 10:03:56 EDT 2006
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 moritz.kroll at gmx.de.
http://bugzilla.ximian.com/show_bug.cgi?id=78969
--- shadow/78969 2006-07-28 10:03:56.000000000 -0400
+++ shadow/78969.tmp.25894 2006-07-28 10:03:56.000000000 -0400
@@ -0,0 +1,61 @@
+Bug#: 78969
+Product: Mono: Compilers
+Version: 1.1
+OS: Windows XP
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Critical
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: Moritz.Kroll at gmx.de
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Accessing an at least 3 dimensional array about 130000 times causes a StackOverflowException
+
+Description of Problem:
+If you have an at least 3 dimensional array of any type (say value or
+object type) and access it about 130000 times (doesn't have to be the same
+element in the array and doesn't have to be in one single method), you
+will get a StackOverflowException.
+
+
+Steps to reproduce the problem:
+Try the following program:
+
+using System;
+
+namespace StackOverflowBug
+{
+ class Program
+ {
+ public static void Main()
+ {
+ int[, ,] test = new int[1, 1, 1];
+
+ for(int i = 0; i < 200000; i++)
+ {
+// if(i % 1000 == 0) Console.WriteLine("{0}", i);
+ test[0, 0, 0] = 0;
+ }
+ }
+ }
+}
+
+
+Actual Results:
+Unhandled Exception: System.StackOverflowException: The requested
+operation caused a stack overflow.
+
+Expected Results:
+Program exists without any error.
+
+How often does this happen?
+Always
+
+Additional Information:
+This applies (at least) to both gmcs and mcs in Mono-1.1.13.8 and Mono-
+1.1.16.1.
More information about the mono-bugs
mailing list