[Mono-bugs] [Bug 75495][Nor] New - Mono.Cecil.AssemblyFactory.GetAssembly failing?

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jul 6 17:55:21 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.


--- shadow/75495	2005-07-06 17:55:21.000000000 -0400
+++ shadow/75495.tmp.28925	2005-07-06 17:55:21.000000000 -0400
@@ -0,0 +1,96 @@
+Bug#: 75495
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Mono.Cecil
+AssignedTo: mono at evain.net                            
+ReportedBy: dsilva at ccs.neu.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Mono.Cecil.AssemblyFactory.GetAssembly failing?
+The method Mono.Cecil.AssemblyFactory.GetAssembly seems to not be working
+in the latest version of Cecil.
+$ cat foo.cs
+using Mono.Cecil;
+public class App {
+  public static void Main() {
+    Mono.Cecil.IAssemblyDefinition asm =
+  }
+$ mcs -debug -r:/home/dsilva/cvs/mono/cecil/lib/Mono.Cecil.dll foo.cs
+foo.cs(5) warning CS0219: The variable `asm' is assigned but its value is
+never used
+Compilation succeeded - 1 warning(s)
+$ MONO_PATH=/home/dsilva/cvs/mono/cecil/lib:. mono --debug foo.exe
+Unhandled Exception: Mono.Cecil.ReflectionException: Can not disassemble
+assembly ---> System.ArgumentException: Key duplication when adding: hy-AM
+in [0x00150] (at
+System.Collections.Hashtable:PutImpl (System.Object key, System.Object
+value, Boolean overwrite)
+in [0x00004] (at
+System.Collections.Hashtable:Add (System.Object key, System.Object value)
+in [0x00040] (at
+Mono.Cecil.Metadata.CultureUtils:LoadCultures ()
+in [0x00011] (at
+Mono.Cecil.Metadata.CultureUtils:IsValid (System.String culture)
+in [0x0001e] (at
+Mono.Cecil.Implem.AssemblyNameReference:.ctor (System.String name,
+System.String culture, System.Version version)
+in [0x0000c] (at
+Mono.Cecil.Implem.AssemblyNameReference:.ctor ()
+in [0x00001] (at
+Mono.Cecil.Implem.AssemblyNameDefinition:.ctor ()
+in [0x0000e] (at
+Mono.Cecil.AssemblyFactory:GetAssembly (System.String file, LoadingType
+loadType)--- End of inner exception stack trace ---
+in [0x00068] (at
+Mono.Cecil.AssemblyFactory:GetAssembly (System.String file, LoadingType
+in [0x00002] (at
+Mono.Cecil.AssemblyFactory:GetAssembly (System.String file)
+in [0x00005] (at /home/dsilva/code/dotnetcontracts/src/test/foo.cs:6)
+App:Main ()
+Version information:
+~/cvs/mono/cecil/lib$ svn up
+At revision 47018.
+~/cvs/mono/mono$ svn up
+At revision 47018.
+~/cvs/mono/mcs$ svn up
+At revision 47018.
+$ mono --version
+Mono JIT compiler version 1.1.8, (C) 2002-2005 Novell, Inc and
+Contributors. www.mono-project.com
+        TLS:           __thread
+        GC:            Included Boehm (with typed GC)
+        SIGSEGV      : normal
+        Globalization: normal
+$ mcs --version
+Mono C# compiler version

More information about the mono-bugs mailing list