[Mono-bugs] [Bug 45817][Maj] Changed - mono hangs on exception backtrace

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 8 Jul 2003 15:06:42 -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 bmaurer@users.sf.net.

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

--- shadow/45817	Mon Jul  7 00:37:39 2003
+++ shadow/45817.tmp.15049	Tue Jul  8 15:06:42 2003
@@ -3,13 +3,13 @@
 Version: unspecified
 OS: unknown
 OS Details: Debian sid
 Status: NEW   
 Resolution: 
 Severity: Unknown
-Priority: Normal
+Priority: Major
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: m.canini@libero.it               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
@@ -404,6 +404,74 @@
 new Object(), new Object(), new Object(), new Object(), new Object(), new 
 Object(), new Object()}, 
                 }; 
         } 
 } 
  
+
+------- Additional Comments From bmaurer@users.sf.net  2003-07-08 15:06 -------
+Am raising priority, because this has been reported again and since 
+it is very important functionality.
+
+from "Herscovici, Avi" <AHerscovici@Empirix.com> 
+
+Have a simple example for you guys that causes a weird exception in 
+mono
+(runs fine in .net). I found it while working on my project. The 
+exception
+is thrown only when the array is of this size or bigger. If you cut 
+out a
+row my program hangs, and if you cut out two rows from the initial 
+value,
+then it returns the correct value. Here is the code and the exception:
+
+
+// --------------------------------- code
+using System;
+
+namespace TestInitialize {
+
+public class testinit {
+
+static string[,] temp = {{"1", "2", "3"},
+{"4", "5", "6"},
+{"7", "8", "9"},
+{"10", "11", "12"},
+{"13", "14", "15"},
+{"16", "17", "18"},
+{"19", "20", "21"},
+{"22", "23", "24"},
+{"25", "26", "27"},
+{"28", "29", "30"},
+{"31", "32", "33"}, // if you get rid of the this
+and the next line program will work fine
+{"34", "35", "36"} // if you get rid of this line
+program will hang
+};
+
+public testinit() {
+// nothing
+}
+
+
+static void Main() {
+test();
+}
+
+static public void test() {
+Console.WriteLine("Temp should not be nothing: " + temp[0,0]);
+}
+
+}
+}
+
+
+// ------ exception
+
+Unhandled Exception: System.TypeInitializationException: An exception 
+was
+thrown by the type initializer for TestInitialize.testinit --->
+System.NullReferenceException: A null value was found where an object
+instance was required
+in <0x00037> 00 TestInitialize.testinit:.cctor ()
+--- End of inner exception stack trace ---
+