[Mono-bugs] [Bug 74689][Blo] New - --debug causes leaks

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 21 Apr 2005 17:58:09 -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=74689

--- shadow/74689	2005-04-21 17:58:09.000000000 -0400
+++ shadow/74689.tmp.25721	2005-04-21 17:58:09.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 74689
+Product: Mono: Runtime
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: --debug causes leaks
+
+[benm@omega benm]$ cat foo.cs
+using System;
+using System.Diagnostics;
+public class Test {
+        static void Main (string [] args)
+        {
+                while (true) {
+                        new StackTrace (true).ToString ();
+                }
+        }
+}
+[benm@omega benm]$ mcs foo.cs /debug
+[benm@omega benm]$ mono --debug foo.exe
+
+The vsz and rss of `mono' grow without bound in this test case. This could
+also show up in real life if exceptions are thrown and somebody looks at
+the stack trace.