[Mono-bugs] [Bug 77787][Wis] Changed - Mono fails on Itanium-machine
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Mar 21 08:42:56 EST 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 yury at serdyuk.botik.ru.
http://bugzilla.ximian.com/show_bug.cgi?id=77787
--- shadow/77787 2006-03-19 12:31:05.000000000 -0500
+++ shadow/77787.tmp.12430 2006-03-21 08:42:56.000000000 -0500
@@ -72,6 +72,61 @@
I couldn't repro the problem, so I just disabled the GC_stackbottom
setting code for now. Could you try this patch and see if it fixes the
problem for you:
http://lists.ximian.com/archives/public/mono-patches/2006-March/072057.html
+
+------- Additional Comments From Yury at serdyuk.botik.ru 2006-03-21 08:42 -------
+I have applied the above patch - now mini.c
+(appropriate fragment) looks like:
+
+if (getenv ("MONO_DEBUG") != NULL)
+ mini_parse_debug_options ();
+
+ /*
+ * Handle the case when we are called from a thread different from
+the main thread,
+ * confusing libgc.
+ * FIXME: Move this to libgc where it belongs.
+ *
+ * we used to do this only when running on valgrind,
+ * but it happens also in other setups.
+ */
+#if defined(HAVE_BOEHM_GC)
+#if defined(HAVE_PTHREAD_GETATTR_NP) &&
+defined(HAVE_PTHREAD_ATTR_GETSTACK)
+ {
+ size_t size;
+ void *sstart;
+ pthread_attr_t attr;
+ pthread_getattr_np (pthread_self (), &attr);
+ pthread_attr_getstack (&attr, &sstart, &size);
+ /*g_print ("stackbottom pth is: %p\n", (char*)sstart + size);*/
+#ifdef __ia64__
+ /*
+ * The calculation above doesn't seem to work on ia64, also we need
+to set
+ * GC_register_stackbottom as well, but don't know how.
+ */
+#else
+ GC_stackbottom = (char*)sstart + size;
+#endif
+ }
+
+rebuilt Mono, but the situation is the same :
+
+> mcs
+
+** ERROR **: file gc.c: line 138 (object_register_finalizer):
+assertion failed: (GC_base (obj) == (char*)obj - offset)
+aborting...
+Aborted
+
+By the moment, we have on machine:
+~# free
+ total used free shared buffers cached
+Mem: 4068456 4036020 32436 0 1347616 830152
+-/+ buffers/cache: 1858252 2210204
+Swap: 1004052 0 1004052
+
+
More information about the mono-bugs
mailing list