[Mono-bugs] [Bug 82134][Maj] New - AutoResetEvent causes memory leak when compiled with gmcs

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jul 18 12:14:31 EDT 2007


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 davidiw at ufl.edu.

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

--- shadow/82134	2007-07-18 12:14:31.000000000 -0400
+++ shadow/82134.tmp.25514	2007-07-18 12:14:31.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 82134
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: 2.6 Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: davidiw at ufl.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: AutoResetEvent causes memory leak when compiled with gmcs
+
+Description of Problem:
+When using AutoResetEvent and compiling with gmcs, memory is leaked;
+however, this does not occur when using mcs.
+
+
+Steps to reproduce the problem:
+Compile this app with gmcs and run, then with mcs and run
+
+using System;
+using System.Threading;
+
+namespace Ipop {
+  public class IPOP_Common {
+    public static void Main() {
+      AutoResetEvent re = null;
+      while(true) {
+        re = new AutoResetEvent(false);
+        re.Close();
+      }
+    }
+  }
+}
+
+Actual Results:
+gmcs: memory usage explodes
+mcs: memory stabilizes at > 5 MB
+
+Expected Results:
+gmcs should not explode
+
+
+How often does this happen? 
+Every time


More information about the mono-bugs mailing list