[Mono-devel-list] SWF Monostub and Mini

Paolo Molaro lupus at ximian.com
Thu May 1 09:22:57 EDT 2003


On 05/01/03 Alexandre Pigolkine wrote:
> I found that crash in SWF applications happens due to clash between
> InitializeCriticalSection,EnterCriticalSection etc. functions of
> Mono and Wine. The functions are part of Win32 API and Wine implements
> them. At runtime, loader finds them in Wine's libraries and result
> is "Segmentation fault" on the next function call.
> 
> I renamed the functions in Mono and the things look better now.
> ( diff file attached).
> 
> Is it possible to include this in Mono release ?

Nope, it's the wrong fix and would break mono on windows.
Try the included patch (also committed to cvs): I think I added
the same trick to the old jit for the same reason, at the time.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

Index: Makefile.am
===================================================================
RCS file: /cvs/public/mono/mono/mini/Makefile.am,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile.am
--- Makefile.am	30 Apr 2003 13:13:33 -0000	1.10
+++ Makefile.am	1 May 2003 13:21:15 -0000
@@ -24,6 +24,8 @@ genmdesc_CFLAGS = $(AM_CFLAGS)
 
 regtests=basic.exe arrays.exe basic-float.exe basic-long.exe objects.exe basic-calls.exe iltests.exe exceptions.exe bench.exe
 
+libmono_la_LDFLAGS=-Wl,-version-script=$(srcdir)/ldscript
+
 bin_PROGRAMS = mono genmdesc
 
 lib_LTLIBRARIES = libmono.la
@@ -142,6 +144,6 @@ BUILT_SOURCES= inssel.c inssel.h cpu-pen
 CLEANFILES= $(BUILT_SOURCES)
 EXTRA_DIST = emullong.brg inssel-float.brg inssel-long.brg  \
 	inssel-long32.brg inssel-x86.brg inssel.brg jit-icalls.c cprop.c \
-	cpu-pentium.md cpu-g4.md
+	cpu-pentium.md cpu-g4.md ldscript
 
 
Index: ldscript
===================================================================
RCS file: ldscript
diff -N ldscript
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ldscript	1 May 2003 13:21:15 -0000
@@ -0,0 +1,6 @@
+VER_1 {
+      global: 
+              mono_*;
+      local:
+              *;
+};



More information about the Mono-devel-list mailing list