[Mono-bugs] [Bug 79605][Nor] Changed - [MCS] Iterators produce invalid IL code.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Oct 9 20:32:54 EDT 2006


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=79605

--- shadow/79605	2006-10-09 17:08:28.000000000 -0400
+++ shadow/79605.tmp.20779	2006-10-09 20:32:54.000000000 -0400
@@ -71,6 +71,44 @@
 Martin
 
 ------- Additional Comments From marek.safar at seznam.cz  2006-10-09 17:08 -------
 Sorry for misinformation but for some strange reasons GMCS is OK and
 the problem occurs with MCS only.
 The output is OK in terms of Peverify but cannot run it at all.
+
+------- Additional Comments From miguel at ximian.com  2006-10-09 20:32 -------
+The problem is easy to reproduce:
+
+cd mcs/class/corlib
+make run-test-local PROFILE=net_2_0
+
+Let it run, at some point it will hang, you can control-c it at that
+point;  It hangs because of something else now (strtod.c is broken
+with O2).  Anyways, then type this from that directory:
+
+MONO_PATH="../../class/lib/net_2_0::$MONO_PATH"
+/cvs/mono/runtime/mono-wrapper --debug
+../../class/lib/net_2_0/nunit-console.exe 
+/exclude:NotWorking,ValueAdd,CAS,InetAccess
+/fixture:MonoTests.System.ArrayTest corlib_test_net_2_0.dll
+
+It will produce this:
+
+Failures:
+1) MonoTests.System.ArrayTest.ReadOnly_Enumerator :
+System.InvalidProgramException : Invalid IL code in
+<>c__CompilerGenerated1:System.Collections.Generic.IEnumerator<T>.get_Current
+(): IL_0010: newobj    0x060006bc
+
+
+  at <0x00000> <unknown method>
+  at MonoTests.System.ArrayTest.ReadOnly_Enumerator () [0x00033] in
+/home/cvs/mcs/class/corlib/Test/System/ArrayTest.cs:2747
+  at <0x00000> <unknown method>
+  at (wrapper managed-to-native)
+System.Reflection.MonoMethod:InternalInvoke (object,object[])
+  at System.Reflection.MonoMethod.Invoke (System.Object obj,
+BindingFlags invokeAttr, System.Reflection.Binder binder,
+System.Object[] parameters, System.Globalization.CultureInfo culture)
+[0x00056] in
+/home/cvs/mcs/class/corlib/System.Reflection/MonoMethod.cs:143
+


More information about the mono-bugs mailing list