[Mono-bugs] [Bug 43190][Nor] Changed - MCS generates invalid IL when creating IntPtr []

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 26 May 2003 14:54:23 -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 miguel@ximian.com.

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

--- shadow/43190	Fri May 16 18:17:27 2003
+++ shadow/43190.tmp.4247	Mon May 26 14:54:23 2003
@@ -30,6 +30,36 @@
 
 Expected Results:
 Should run without exception.
 
 How often does this happen? 
 Always
+
+------- Additional Comments From miguel@ximian.com  2003-05-26 14:54 -------
+Some extra data:
+
+Code generated:
+	.locals init (
+		native int[]	V_0,
+		native int[]	V_1,
+		native int	V_2)
+	IL_0000: ldc.i4.1 
+	IL_0001: newarr [mscorlib]System.IntPtr
+	IL_0006: stloc.1 
+	IL_0007: ldloc.1 
+	IL_0008: ldc.i4.0 
+	IL_0009: ldelema [mscorlib]System.IntPtr
+	IL_000e: ldloca.s 2
+	IL_0010: initobj [mscorlib]System.IntPtr
+	IL_0016: ldloc.2 
+	IL_0017: stelem.i 
+	IL_0018: ldloc.1 
+	IL_0019: stloc.0 
+	IL_001a: ret 
+
+Peverify reports:
+[IL]: Error: [g:\mono\u.exe : Bug::Main] [offset 0x00000017] [opcode
+stelem.i] Stack underflow.
+[IL]: Error: [g:\mono\u.exe : Bug::Main]  [HRESULT 0x80004005] -
+Unspecified error
+
+Will check this from the office.