[Mono-bugs] [Bug 78767][Nor] Changed - can't load libmono as a module
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Aug 2 14:20:57 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 vargaz at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78767
--- shadow/78767 2006-08-02 13:43:26.000000000 -0400
+++ shadow/78767.tmp.31183 2006-08-02 14:20:57.000000000 -0400
@@ -193,6 +193,21 @@
loading it at runtime is perfectly fine. Also, if I make a simply shared
library which defines a few __thread variables, and link michael's
simple test case against that instead of libmono, it runs. Also, if I
define MONO_TLS_FAST to empty, it still fails. I think this might be
a tricky libc/gcc problem which needs to be tracked down.
+
+------- Additional Comments From vargaz at gmail.com 2006-08-02 14:20 -------
+Here are some further findings: the problem seems to be caused not by
+__thread, but by the MONO_THREAD_VAR_OFFSET macros. Changing them to
+
+#define MONO_THREAD_VAR_OFFSET(var,offset) (offset) = -1
+
+(in the PIC case) makes the crashes go away.
+
+michael, could you try that change with OO ? I.e. change the
+MONO_THREAD_VAR_OFFSET defines in utils/mono-compiler.h to the above ?
+
+
+
+
More information about the mono-bugs
mailing list