[Mono-bugs] [Bug 61694][Nor] New - Image sometimes corrupted wrt. structs

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 17 Jul 2004 19:03:36 -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 martin@ximian.com.


--- shadow/61694	2004-07-17 19:03:36.000000000 -0400
+++ shadow/61694.tmp.12315	2004-07-17 19:03:36.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 61694
+Product: Mono: Runtime
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: martin@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Image sometimes corrupted wrt. structs
+Sometimes we create images which do not work on newer versions on .NET, ie.
+the latest beta from July 15th.
+The problem seems to happen each time you have a local variable whose type
+is a struct which is declared in the same assembly.  PEVerify reports the
+method having zero-size and the same happens in ildasm.
+If you monodis the binary and then ilasm it again, the problem goes away.
+Here's a simple test case:
+using System;
+public struct Foo
+class X
+	static void Main ()
+	{
+		Foo foo;
+	}