[Mono-bugs] [Bug 75089][Nor] New - extra "<module>" type

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun May 29 09:27:04 EDT 2005


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 dsilva at ccs.neu.edu.

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

--- shadow/75089	2005-05-29 09:27:04.000000000 -0400
+++ shadow/75089.tmp.19538	2005-05-29 09:27:04.000000000 -0400
@@ -0,0 +1,70 @@
+Bug#: 75089
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Mono.Cecil
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: dsilva at ccs.neu.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: extra "<module>" type
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Cecil is reading an extra type that it calls "<module>".
+
+Steps to reproduce the problem:
+
+$ cat CecilTest.cs
+using System;
+using Mono.Cecil;
+
+public class CecilTest {
+
+  public static void Main(string[] args) {
+    IAssemblyDefinition asm = AssemblyFactory.GetAssembly(args[0]);
+    foreach (IModuleDefinition mod in asm.Modules) {
+      Console.WriteLine("Module {0}", mod.Name);
+      foreach (ITypeDefinition t in mod.Types)
+        Console.WriteLine("\tType {0}", t);
+    }
+  }
+
+$ mcs -r:$CECIL/Mono.Cecil.dll CecilTest.cs
+$ export MONO_PATH=$CECIL:$MONO_PATH
+$ mono CecilTest.exe CecilTest.exe
+Module CecilTest.exe
+        Type <Module>
+        Type CecilTest
+$
+
+Actual Results:
+
+Module CecilTest.exe
+        Type <Module>
+        Type CecilTest
+
+Expected Results:
+
+Module CecilTest.exe
+        Type CecilTest
+
+How often does this happen? 
+
+It just started happening.  I don't remember if I upgraded my mono or cecil
+from svn recently, but I'm re-checking out and re-building everything just
+in case.
+
+Additional Information:
+
+I also got a weird bug where an ITypeDefinition's BaseType was itself. 
+This also just started happening, so it might be related.


More information about the mono-bugs mailing list