[Mono-bugs] [Bug 61033][Blo] New - JIT crash when passing a delegate into PInvoke that returns another delegate [TESTCASE ATTACHED]
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 1 Jul 2004 19:45:17 -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 grompf@sublimeintervention.com.
http://bugzilla.ximian.com/show_bug.cgi?id=61033
--- shadow/61033 2004-07-01 19:45:17.000000000 -0400
+++ shadow/61033.tmp.4661 2004-07-01 19:45:17.000000000 -0400
@@ -0,0 +1,34 @@
+Bug#: 61033
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details: OSX10.3.4
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: grompf@sublimeintervention.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: JIT crash when passing a delegate into PInvoke that returns another delegate [TESTCASE ATTACHED]
+
+Mono version: v1.0
+
+(NOTE: This testcase will only compile on OSX; as I dont have another 1.0 box to test on. It
+should be easy enough to compile it on Linux/PPC as well)
+
+Compile the source in the attached testcase and run with: mono test.exe
+
+When hitting the line where the delegates are passed into glue the following is printed and mono
+is aborted:
+** ERROR **: file marshal.c: line 2580 (mono_marshal_get_managed_wrapper): assertion failed:
+((klass->flags & TYPE_ATTRIBUTE_LAYOUT_MASK) != TYPE_ATTRIBUTE_AUTO_LAYOUT)
+aborting...
+
+Expected behaviour:
+
+Pass the delegate (like any other) into unmanaged land.