[Mono-bugs] [Bug 24571] New - GetTypes() from corlib.dll assembly produces error

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
11 May 2002 21:50:17 -0000


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 greg@gregwhelan.com.

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

--- shadow/24571	Sat May 11 17:50:17 2002
+++ shadow/24571.tmp.1487	Sat May 11 17:50:17 2002
@@ -0,0 +1,57 @@
+Bug#: 24571
+Product: Mono/Runtime
+Version: unspecified
+OS: Red Hat 7.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: greg@gregwhelan.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: GetTypes() from corlib.dll assembly produces error
+
+Description of Problem:
+An attempt to GetTypes() from the corlib.dll assembly results in a runtime
+error.
+
+Steps to reproduce the problem:
+Compile and run the following piece of code:
+
+using System;
+using System.Reflection;
+
+public class AssemblyBug {
+
+  public static void Main(string[] args) {
+    Assembly asmbly = Assembly.Load("System.dll");
+    Type[] t = asmbly.GetTypes(); // <--- works just fine with System.dll
+
+    asmbly = Assembly.Load("corlib.dll");
+    t = asmbly.GetTypes(); // <--- error generated here
+  }
+}
+
+
+Actual Results:
+[gregw@zip objpool]$ mono Bug.exe 
+
+** ERROR **: file metadata.c: line 825 (mono_metadata_decode_row):
+assertion failed: (res_size == count)
+aborting...
+Aborted
+
+Expected Results:
+variable t should should hold all the Types in corlib.dll (code fragment
+above would, obviously, produce no output).
+
+How often does this happen? 
+Every time.
+
+Additional Information:
+Linux using mono-0.11_baselabs-20020510.i386.rpm