[Mono-bugs] [Bug 79180][Min] New - [Win32] Mono.pc's cflags should include "-mno-cygwin"
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Aug 26 12:55:58 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 robertj at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=79180
--- shadow/79180 2006-08-26 12:55:58.000000000 -0400
+++ shadow/79180.tmp.5625 2006-08-26 12:55:58.000000000 -0400
@@ -0,0 +1,64 @@
+Bug#: 79180
+Product: Mono: Runtime
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: JIT
+AssignedTo: lupus at ximian.com
+ReportedBy: robertj at gmx.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [Win32] Mono.pc's cflags should include "-mno-cygwin"
+
+Cygwin.dll seems to overwrite Mono's SIGSEGV SEH handler.
+This leads to a crash every time a SIGSEGV occurs while
+running jited managed code.
+
+Solution: add -mno-cygwin to mono.pc's cflags in order
+to protect embedders from losing their minds :-)
+
+The bug does *not* affect Mono's binaries, because they are
+actually compiled with -mno-cygwin.
+
+
+Test case:
+
+unmanaged:
+
+/*
+ * gcc mymono.c `pkg-config --cflags --libs mono`
+ */
+#include <mono/metadata/assembly.h>
+
+int
+mono_main (int argc, char **argv);
+
+int
+main (int argc, char **argv)
+{
+ return mono_main (argc, argv);
+}
+
+managed:
+
+/*
+ * nre.cs
+ */
+
+class T {
+ static void Main ()
+ {
+ null.Equals (null);
+ }
+}
+
+run:
+
+1) copy mymono.exe into Mono's bin directory
+2) mymono nre.exe
More information about the mono-bugs
mailing list