[Mono-bugs] [Bug 75480][Nor] New - Assertion when executing
/clr:pure C++ application
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jul 5 18:50:26 EDT 2005
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 kornelpal at hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75480
--- shadow/75480 2005-07-05 18:50:26.000000000 -0400
+++ shadow/75480.tmp.11223 2005-07-05 18:50:26.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 75480
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: kornelpal at hotmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Assertion when executing /clr:pure C++ application
+
+/clr:pure is said to produce standard CIL code. It seems to be true and
+it contains no native code. But the resulting assembly is platform
+dependent because the CLR code adds a lot of P/Invoke functions from MS
+CRT DLLs and kernel32.dll.
+
+If the resulting code is valid CIL code it should be executed by Mono at
+least on Windows because Windows has the required CRT Dlls.
+
+Source code:
+
+int main(array<System::String ^> ^args)
+{
+ Console::WriteLine(L"Hello World");
+ return 0;
+}
+
+I compiled it using /clr:pure (PureClr.exe) and it produces the following
+assertion:
+
+** ERROR **: file object.c: line 752 (mono_class_create_runtime_vtable):
+assertion failed: (fklass->byval_arg.type == MONO_TYPE_PTR)
+aborting...
+
+When I compile it without CRT but with /clr:pure (PureClrNoCrt.exe) it
+works as expected.
More information about the mono-bugs
mailing list