[Mono-bugs] [Bug 50913][Wis] New - Calling GC.WaitForPendingFinalizers in a finailzer deadlocks

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 12 Nov 2003 22:05:52 -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 bmaurer@users.sf.net.

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

--- shadow/50913	2003-11-12 22:05:52.000000000 -0500
+++ shadow/50913.tmp.29503	2003-11-12 22:05:52.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 50913
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Calling GC.WaitForPendingFinalizers in a finailzer deadlocks
+
+When we call GC.WaitForPendingFinalizers inside a finalizer, it deadlocks
+Steps to reproduce the problem:
+class foo {
+	static void Main () {
+		foo bar = new foo ();
+	}
+	~foo () {
+		System.GC.WaitForPendingFinalizers ();
+	}
+}
+
+Actual Results:
+Deadlock
+
+Expected Results:
+0 exit code
+
+How often does this happen? 
+always