[Mono-bugs] [Bug 75974][Cos] New - PEVerify screams about duplicate MemberRefs in mono-sre-created assembly

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Sep 3 09:00:53 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 malekith at pld-linux.org.

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

--- shadow/75974	2005-09-03 09:00:53.000000000 -0400
+++ shadow/75974.tmp.30226	2005-09-03 09:00:53.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 75974
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: amd64 pld linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: malekith at pld-linux.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: PEVerify screams about duplicate MemberRefs in mono-sre-created assembly
+
+Description of Problem:
+method_encode_methodspec doesn't do any caching, so each time you use
+some_method<int,int>() a new MethodSpec is created. This wastes space in
+the generated PE images and causes PEVerify to emit warnings.
+
+
+Steps to reproduce the problem:
+1. compile with gmcs
+
+class T {
+  void bar<T> () {}
+  void u1 () { bar<int> (); }
+  void u2 () { bar<int> (); }
+  public static void Main ()
+  {
+  }
+}
+
+2. run PEVerify on it
+
+Actual Results:
+Microsoft (R) .NET Framework PE Verifier.  Version  2.0.50727.7
+Copyright (c) Microsoft Corporation.  All rights reserved.
+
+[MD]: Warning: MemberRef has a duplicate, token=0x0a000003. [token:0x0A000002]
+[MD]: Warning: MemberRef has a duplicate, token=0x0a000002. [token:0x0A000003]
+All Classes and Methods in foo.exe Verified.
+(2 Warnings)
+
+
+Expected Results:
+No warnings.
+
+
+How often does this happen? 
+Always.
+
+Additional Information:
+I'm running mono svn.


More information about the mono-bugs mailing list