[Mono-bugs] [Bug 54980][Maj] Changed - AppDomain.Unload() fails randomly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 29 Feb 2004 12:24:51 -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 vargaz@freemail.hu.

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

--- shadow/54980	2004-02-28 13:02:50.000000000 -0500
+++ shadow/54980.tmp.1554	2004-02-29 12:24:51.000000000 -0500
@@ -55,6 +55,13 @@
 Created an attachment (id=6797)
 test-case to reproduce the problem with AppDomain.Unload()
 
 
 ------- Additional Comments From vargaz@freemail.hu  2004-02-28 13:02 -------
 -> runtime
+
+------- Additional Comments From vargaz@freemail.hu  2004-02-29 12:24 -------
+This (and other bugs) is caused by locking problems inside the runtime.
+When an appdomain is unloaded, all threads executing in the domain are
+aborted. When a thread is aborted, it might be holding unmanaged locks,
+like a lock on the domain. Since the runtime does not have finalizers,
+these locks remain locked by the dead thread, leading to a deadlock.