[Mono-bugs] [Bug 53048][Wis] New - The runtime should notify if StackOverflowException is occured

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 19 Jan 2004 06:14:13 -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 atsushi@ximian.com.

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

--- shadow/53048	2004-01-19 06:14:13.000000000 -0500
+++ shadow/53048.tmp.4983	2004-01-19 06:14:13.000000000 -0500
@@ -0,0 +1,67 @@
+Bug#: 53048
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: cygwin 1.5.5-1, WinXP, glib2.2.3
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: atsushi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The runtime should notify if StackOverflowException is occured
+
+Currently we can't know if StackOverflowException is thrown. When a 
+StackOverflowException is thrown, the runtime silently dies. If the 
+runtime prints an error message, it would be helpful for developers to 
+know that exception is occured.
+
+--------
+using System;
+
+public class Test
+{
+	static long l = 0;
+	public static void Main ()
+	{
+		if (l % 10000 == 0)
+			Console.WriteLine (l);
+		l++;
+		Main ();
+	}
+}
+
+Mono Results:
+
+$ mono stackoverflow.exe
+0
+10000
+20000
+30000
+40000
+50000
+
+MS.NET Results:
+
+$ ./stackoverflow.exe
+0
+10000
+20000
+30000
+40000
+50000
+60000
+70000
+80000
+90000
+100000
+110000
+120000
+
+(After showing an error dialog)
+Unhandled Exception: StackOverflowException.