[Mono-bugs] [Bug 71110][Nor] New - AppDomain.Evidence call crashes.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 8 Jan 2005 18:44:34 -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 miguel@ximian.com.

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

--- shadow/71110	2005-01-08 18:44:34.000000000 -0500
+++ shadow/71110.tmp.32601	2005-01-08 18:44:34.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 71110
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: sebastien@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: AppDomain.Evidence call crashes.
+
+Calling AppDomain.Evidence crashes on a newly created AppDomain, the
+following program should return 0, currently crashes:
+
+using System;
+
+class D {
+	public static int Main ()
+	{
+		AppDomain ad;
+		
+			ad = AppDomain.CreateDomain ("CreateDomain_String");
+			if (ad == null)
+				return 1;
+			if (ad.Evidence == null)
+				return 2;
+			return 0;
+	}
+}
+
+This is part of the regression test suite, one of the errors that fails.
+
+The problem seems to be that AppDomain.DefaultDomain returns null, so 
+the next derefence to Evidence in AppDomain.cs, line 141 crashes.
+
+Am assigning to Sebastien, as svn annotate puts the code on his area.