[Mono-bugs] [Bug 77470][Nor] Changed - mono_thread_attach/mono_thread_detach can cause deadlock/segfault on OS X

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jun 24 23:37:55 EDT 2007


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 patperry at stanford.edu.

http://bugzilla.ximian.com/show_bug.cgi?id=77470

--- shadow/77470	2006-04-21 14:20:50.000000000 -0400
+++ shadow/77470.tmp.30881	2007-06-24 23:37:55.000000000 -0400
@@ -272,6 +272,21 @@
 #9  0x00305758 in GC_thread_register_foreign (base_addr=0xf19b4de8) at 
 pthread_support.c:1310
 #10 0x002d5f48 in mono_thread_attach (domain=0x58f00) at threads.c:427
 #11 0x000028a0 in thread_function ()
 #12 0x9002ba68 in _pthread_body ()   
 
+
+------- Additional Comments From patperry at stanford.edu  2007-06-24 23:37 -------
+With GC_ASSERTIONS turned on in libgc/pthread_support.c, an assertion
+fails when running Allan's code.  
+
+Assertion failure: pthread_support.c:299
+
+The assertion is in the last line listed below:
+
+void GC_destroy_thread_local(GC_thread p)
+{
+    /* We currently only do this from the thread itself or from	*/
+    /* the fork handler for a child process.			*/
+#   ifndef HANDLE_FORK
+      GC_ASSERT(GC_getspecific(GC_thread_key) == (void *)p);


More information about the mono-bugs mailing list