[Mono-bugs] [Bug 58572][Nor] New - ilasm delegate output

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 16 May 2004 08:54:56 -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 ck@carlo-kok.com.

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

--- shadow/58572	2004-05-16 08:54:56.000000000 -0400
+++ shadow/58572.tmp.29887	2004-05-16 08:54:56.000000000 -0400
@@ -0,0 +1,96 @@
+Bug#: 58572
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: IL assembler
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ck@carlo-kok.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ilasm delegate output
+
+Description of Problem:
+ilasm generated delegate doesn't verify with peverify.
+
+Steps to reproduce the problem:
+1. Compile the source under "Additional Information" 
+2. peverify the result
+
+
+Actual Results:
+Z:\>peverify test.exe
+
+Microsoft (R) .NET Framework PE Verifier  Version 1.1.4322.573
+Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
+
+[MD]: .NET Framework Internal error: 0x8013120c  [token:0x01000001]
+[MD]: .NET Framework Internal error: 0x8013120c  [token:0x01000002]
+[MD]: .NET Framework Internal error: 0x8013128d  [token:0x06000003]
+[MD]: .NET Framework Internal error: 0x8013128d  [token:0x06000004]
+4 Errors Verifying test.exe
+
+Expected Results:
+Successful peverify.
+
+
+How often does this happen? 
+Always
+
+Additional Information:
+.assembly extern mscorlib
+{
+  .ver 1:0:3300:0
+}
+.assembly 'test'
+{
+  .hash algorithm 0x00008004
+  .ver  0:0:0:0
+}
+.module 'test.exe' 
+.namespace buf
+{
+  .class public auto ansi beforefieldinit 'test'
+  	extends [mscorlib]System.Object
+  {
+
+    .method public hidebysig  specialname  rtspecialname 
+           instance default void .ctor ()  cil managed 
+    {
+	.maxstack 8
+	ldarg.0 
+	call instance void valuetype [mscorlib]'System.Object'::.ctor()
+	ret 
+    }
+
+    .method public static 
+           default void 'Main' ()  cil managed 
+    {
+	.entrypoint
+	.maxstack 8
+	ret 
+    } 
+  } 
+}
+.namespace buf
+{
+  .class public auto ansi sealed 'vtest'
+  	extends [mscorlib]System.MulticastDelegate
+  {
+    .method public hidebysig  specialname  rtspecialname 
+           instance default void .ctor (object 'object', native int
+'method')  runtime managed 
+    {
+    }
+    .method public virtual  hidebysig 
+           instance default void 'Invoke' (int32 'i')  runtime managed 
+    {
+    }
+  } 
+}