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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 28 Feb 2004 11:57:23 -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 jaak@zd.com.pl.


--- shadow/54980	2004-02-28 11:57:23.000000000 -0500
+++ shadow/54980.tmp.22135	2004-02-28 11:57:23.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 54980
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Fedora 1.0
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jaak@zd.com.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: AppDomain.Unload() fails randomly
+Some time ago I've reported problems I'm having with running NAnt on Linux.
+They seemed to be related to AppDomain.Upload()
+I managed to isolate a minimal test case which fails for me. This looks
+like a root of MANY MANY problems with NAnt and NUnit on my machine.
+When I run the attached program on my Fedora Core 1 machine I get random
+results: in about 50% cases the program runs without an error (it prints:
+"testValue: 3"). In the remaining 50% cases I get the following error:
+testValue: 3
+** (bug.exe:28788): WARNING **: Finalization of domain TypeGatheringDomain
+timed out.
+Unhandled Exception: System.CannotUnloadAppDomainException: Finalization of
+domain TypeGatheringDomain timed out.
+in (unmanaged) /opt/mono/lib/libmono.so.0(mono_raise_exception+0x1b) [0xcf531f]
+in (unmanaged) /opt/mono/lib/libmono.so.0 [0xd16266]
+in <0x0004a> System.AppDomain:Unload (System.AppDomain)
+in <0x0019f> AppDomainUnloadBug:Main ()
+This works fine on .NET. 
+I'm marking this as "major" because it makes running NAnt/NUnit impossible
+on my setup.
+My setup:
+Fedora Core 1
+Mono installed from CVS (last updated 20 minutes ago)
+Athlon 1GHz CPU + 512 MB RAM