[Gc] race? leads to segfault in GC_suspend_all's call to pthread_kill

Jim Meyering jim at meyering.net
Tue May 10 03:11:26 PDT 2011


Ivan Maidanski wrote:
> Ok. I've added a note to GC_register_my_thread.

That should do the job:

diff -u -p -u -r1.86 -r1.87
--- include/gc.h        7 Apr 2011 20:35:46 -0000       1.86
+++ include/gc.h        10 May 2011 09:58:24 -0000      1.87
@@ -1051,6 +1051,7 @@ GC_API void * GC_CALL GC_call_with_stack
   /* GC_use_threads_discovery() is called at start-up.  Except for the  */
   /* latter case, the explicit call is normally required for threads    */
   /* created by third-party libraries.                                  */
+  /* A manually registered thread requires manual unregistering.        */

Thanks.


More information about the Gc mailing list