[Mono-bugs] [Bug 42934][Maj] New - AppDomainSetup+NUnit causes assertion violation in mono

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 13 May 2003 17:19:13 -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 jonpryor@vt.edu.

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

--- shadow/42934	Tue May 13 17:19:13 2003
+++ shadow/42934.tmp.17833	Tue May 13 17:19:13 2003
@@ -0,0 +1,82 @@
+Bug#: 42934
+Product: Mono/Runtime
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jonpryor@vt.edu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: AppDomainSetup+NUnit causes assertion violation in mono
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+I apologize for not narrowing this down any further.  I will do so in the
+future, but I thought I'd get this issue entered now.
+
+Creating a System.AppDomainSetup instance within an NUnit testcase causes
+an assertion violation inside of mono.
+
+Steps to reproduce the problem:
+1. Take the following code (ads.cs):
+
+    // Create an AppDomainSetup instance
+    using System;
+    using NUnit.Framework;
+
+    [TestFixture]
+    public class R {
+      [SetUp]
+      public void Test ()
+      {
+        AppDomainSetup ads = new AppDomainSetup ();
+        Console.WriteLine ("finished");
+      }
+    }
+
+2. Compile it (will require modification) as:
+
+    mcs -t:library -r:<path-to-nunit20/>/NUnit.Framework.dll ads.cs
+
+3. Run under mono:
+
+jon@melchior:tmp$ MONO_PATH=<path-to-nunit20/>:.
+<path-to-nunit20/>/nunit-console.exe ads.dll
+NUnit version 2.0.9
+Copyright (C) 2002 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
+Copyright (C) 2000-2002 Philip Craig.
+All Rights Reserved.
+.
+** ERROR **: file appdomain.c: line 177
+(ves_icall_System_AppDomainSetup_InitAppDomainSetup): assertion failed:
+(assembly)
+aborting...
+Aborted
+
+
+Actual Results:
+
+As seen above, mono generates an assertion.
+
+Expected Results:
+
+No assertion should be generated, and "finished" should be printed to
+standard output.
+
+How often does this happen? 
+
+All the time.
+
+Additional Information:
+
+This happens with current CVS and the CVS version of NUnit 2.0.  I haven't
+tried any other version of NUnit.