[Mono-bugs] [Bug 72169][Wis] New - mono --compile-all net_2_0/System.dll crashes in emit_marshal_array

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 3 Feb 2005 06:11:52 -0500 (EST)


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 rharinath@novell.com.

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

--- shadow/72169	2005-02-03 06:11:52.000000000 -0500
+++ shadow/72169.tmp.14196	2005-02-03 06:11:52.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 72169
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rharinath@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mono --compile-all net_2_0/System.dll crashes in emit_marshal_array
+
+When I run
+
+  make -C runtime verify_profiles=net_2_0 mcs-compileall
+
+in the mono tree, I get an error
+
+  ** ERROR **: file ../../../../mono/mono/metadata/marshal.c: line 5518
+(emit_marshal_array): should not be reached
+  aborting...
+  /bin/sh: line 1: 28692 Aborted                 ./_tmpinst/bin/mono
+--compile-all $i
+  ../../../mono/../mcs/class/lib/net_2_0/System.dll verification failed
+
+It turns out the reason is near the end of emit_marshal_array.  It looks like:
+
+	case MARSHAL_ACTION_CONV_RESULT:
+		/* fixme: we need conversions here */
+		mono_mb_emit_byte (mb, CEE_STLOC_3);
+
+	default:
+		g_assert_not_reached ();
+	}
+
+Notice that the MARSHAL_ACTION_CONV_RESULT falls thru to the default.  I
+suspect that this fall thru is not intended.  If I add the 'break;' the
+--compile-all succeeds.