[Mono-bugs] [Bug 80622][Nor] New - x86-64 throws invalid OverflowException.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 25 15:47:57 EST 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 miguel at ximian.com.

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

--- shadow/80622	2007-01-25 15:47:57.000000000 -0500
+++ shadow/80622.tmp.31511	2007-01-25 15:47:57.000000000 -0500
@@ -0,0 +1,78 @@
+Bug#: 80622
+Product: Mono: Runtime
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: JIT
+AssignedTo: lupus at ximian.com                            
+ReportedBy: miguel at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: x86-64 throws invalid OverflowException.
+
+The following sample runs on x86, but throws an OverflowException on x86-64
+according to Marek Habersack:
+
+.assembly extern mscorlib
+{
+  .ver 1:0:5000:0
+  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
+}
+.assembly 'a'
+{
+  .hash algorithm 0x00008004
+  .ver  0:0:0:0
+}
+.module a.exe // GUID = {F30FC3CE-EB4E-4F8D-AD6F-F5312B7F0510}
+
+
+  .class private auto ansi beforefieldinit X
+        extends [mscorlib]System.Object
+  {
+
+    // method line 1
+    .method private static  hidebysig
+           default void Do (object x)  cil managed
+    {
+        // Method begins at RVA 0x2050
+        // Code size 14 (0xe)
+        .maxstack 8
+        IL_0000:  ldarg.0
+        IL_0001:  unbox unsigned int8
+        IL_0006:  ldobj unsigned int8
+        IL_000b:  conv.ovf.i4.un
+        IL_000c:  pop
+        IL_000d:  ret
+    } // end of method X::Do
+
+    // method line 2
+    .method private static  hidebysig
+           default void Main ()  cil managed
+    {
+        // Method begins at RVA 0x2060
+        .entrypoint
+        // Code size 16 (0x10)
+        .maxstack 8
+        IL_0000:  ldc.i4 255
+        IL_0005:  box unsigned int8
+        IL_000a:  call void class X::Do(object)
+        IL_000f:  ret
+    } // end of method X::Main
+
+    // method line 3
+    .method public hidebysig  specialname  rtspecialname
+           instance default void .ctor ()  cil managed
+    {
+        // Method begins at RVA 0x2074
+        // Code size 7 (0x7)
+        .maxstack 8
+        IL_0000:  ldarg.0
+        IL_0001:  call instance void object::.ctor()
+        IL_0006:  ret
+    } // end of method X::.ctor


More information about the mono-bugs mailing list