[Mono-bugs] [Bug 81466][Nor] Changed - Mono fails to run binaries produced with .NET C# compiler.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 8 12:25:45 EDT 2007


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 massi at ximian.com.

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

--- shadow/81466	2007-08-08 12:15:37.000000000 -0400
+++ shadow/81466.tmp.16228	2007-08-08 12:25:45.000000000 -0400
@@ -179,6 +179,36 @@
 And, since TestImpl implements that interface as well, the call is
 redirected to TestImpl.Test, leading to the infinite recursion.
 
 So, for me the Mono runtime executes the code correctly.
 I just don't understand the MS CLR behavior.
 
+
+------- Additional Comments From massi at ximian.com  2007-08-08 12:25 -------
+BTW, monodis disassembles TestImpl.Test this way:
+
+------------------------------------------------------------------
+    .method public virtual  hidebysig 
+           instance default bool Test ()  cil managed 
+    {
+        // Method begins at RVA 0x2050
+	// Code size 21 (0x15)
+	.maxstack 1
+	.locals init (
+		bool	V_0)
+	IL_0000:  ldstr "TestImpl.Test()"
+	IL_0005:  call void class [mscorlib]System.Console::WriteLine(string)
+	IL_000a:  ldarg.0 
+	IL_000b:  call instance bool class [FaultTestLib]MainSpace.IB::Test()
+	IL_0010:  stloc.0 
+	IL_0011:  br.s IL_0013
+
+	IL_0013:  ldloc.0 
+	IL_0014:  ret 
+    } // end of method TestImpl::Test
+------------------------------------------------------------------
+
+and not as Alex reported above.
+Even the method size is different, so there's something weird here.
+
+I would put this in NEEDINFO until the situation is clarified.
+


More information about the mono-bugs mailing list