[Mono-bugs] [Bug 74027][Cri] New - AppDomain.Unload() causing random crashes

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 23 Mar 2005 15:02:26 -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 ymeng@bloomberg.net.

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

--- shadow/74027	2005-03-23 15:02:26.000000000 -0500
+++ shadow/74027.tmp.31498	2005-03-23 15:02:26.000000000 -0500
@@ -0,0 +1,32 @@
+Bug#: 74027
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: Windows XP
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: GC
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ymeng@bloomberg.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: AppDomain.Unload() causing random crashes
+
+We have embedded Mono1.1.4 runtime running on Win32 platform. At various
+points of execution the host process calls into managed code to create a
+number of AppDomains using AppDomain.CreateDomain(). We then create
+MarshalByRef objects inside the AppDomains using
+AppDomain.CreateInstanceAndUnwrap() and call the objects methods to perform
+business operations.
+
+Once an app domain is no longer needed. We call AppDomain.Unload() to
+unload it and that seems to cause unpredictable crashes. The crashes may
+happen immediatly or until much later time. This leads us to suspect that
+it's GC related. Once we commented out all AppDomain.Unload() calls from
+our code, the program becomes stable. 
+
+This may be related to the earlier bug 55996.