[Mono-bugs] [Bug 74712][Nor] New - Finalizer thread can be aborted
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 24 Apr 2005 14:38:08 -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=74712
--- shadow/74712 2005-04-24 14:38:08.000000000 -0400
+++ shadow/74712.tmp.21586 2005-04-24 14:38:08.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 74712
+Product: Mono: Runtime
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Finalizer thread can be aborted
+
+using System;
+using System.Threading;
+public class Test {
+ static Thread t = null;
+ static void Main ()
+ {
+ while (true) {
+ new Test ();
+ if (t != null)
+ t.Abort ();
+ }
+ }
+
+ ~ Test ()
+ {
+ Console.Write (".");
+ if (t == null)
+ t = Thread.CurrentThread;
+ }
+}
+
+
+On this test case, we print a few dots, and then stop. On msft, the dots
+get printed forever.
+
+Note that if the abort is requested from inside the finalizer thread, we
+seem to catch the abort correctly.