[Mono-bugs] [Bug 73631][Wis] New - Array out of range error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 12 Mar 2005 12:52:42 -0500 (EST)


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 vguzev@yandex.ru.

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

--- shadow/73631	2005-03-12 12:52:42.000000000 -0500
+++ shadow/73631.tmp.21535	2005-03-12 12:52:42.000000000 -0500
@@ -0,0 +1,70 @@
+Bug#: 73631
+Product: Mono: Runtime
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Linux skif 2.4.25 #2 SMP Fri Apr 23 14:03:00 MSD 2004 i686 athlon i386 GNU/Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vguzev@yandex.ru               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Array out of range error
+
+Description of Problem:
+Something wrong with mono runtime in svn.
+I used revision 41237 - this is the latest version I have available now 
+on my machine (by the way current revision 41237 is not working... gives 
+some errors when compiling)
+
+Steps to reproduce the problem:
+1. mcs test.cs
+--8<-----------------------------------
+using System;
+using System.IO;
+
+class ArrayTest {
+ public static void Main ( String[] args ) {
+  int x = 243;
+  int y = 10554;
+  int i, j;
+
+  byte[,] array = new byte [ x, y ];
+
+  for ( i = 0; i < x; i++ )
+   for ( j = 0; j < y; j++ )
+    array [ i, j ] = 1;
+ }
+}
+--8<-----------------------------------
+
+2. mono test.exe
+
+Actual Results:
+--8<-----------------------------------
+
+Unhandled Exception: System.IndexOutOfRangeException: Array index is out 
+of range.
+in <0x00078> ArrayTest:Main (System.String[] args)
+--8<-----------------------------------
+
+
+Expected Results:
+It should work without any exceptions...
+
+How often does this happen? 
+Always
+
+Additional Information:
+Linux skif 2.4.25 #2 SMP Fri Apr 23 14:03:00 MSD 2004 i686 athlon i386 
+GNU/Linux
+
+
+Best regards,
+Vadim B. Guzev
+http://u.pereslavl.ru/~vadim/MCSharp/