Overview
| Artifact ID: | f0d4afb4463fbd9a477f76830b2bd8b03115946e |
|---|---|
| Ticket: | 770053ffffffffffffffffffffffffffffffffff
Tcl_CreateThread breaks notifier thread refcount |
| User & Date: | tallniel on 2004-07-12 22:34:42 |
Changes
- icomment:
Logged In: YES user_id=102050 This bug fix may have broken the Tk build on Mac OS X. Wish hangs on startup, and gdb seems to show deadlock. The following summary from Jim Ingham: ----- The problem is that the fix to Tcl bug 770053 causes TclInitNotifier to get called recursively which stalls. The short term fix is to comment out the call to TclInitNotifier in tcl/generic/tclEvent.c. The core-8-4 patch is: Index: tclEvent.c ============================================== ===================== RCS file: /cvsroot/tcl/tcl/generic/tclEvent.c,v retrieving revision 1.28.2.4 diff -p -p -r1.28.2.4 tclEvent.c *** tclEvent.c 22 Jun 2004 11:55:35 -0000 1.28.2.4 --- tclEvent.c 11 Jul 2004 19:44:18 -0000 *************** NewThreadProc(ClientData clientData) *** 1192,1198 **** threadClientData = cdPtr->clientData; Tcl_Free((char*)clientData); /* Allocated in Tcl_CreateThread() */ ! TclInitNotifier(); (*threadProc)(threadClientData); } --- 1192,1198 ---- threadClientData = cdPtr->clientData; Tcl_Free((char*)clientData); /* Allocated in Tcl_CreateThread() */ ! // TclInitNotifier(); (*threadProc)(threadClientData); } The same patch should apply to TOT. I don't think the fix to 770053 is correct, it means that you can't call Tcl_CreateThread inside a call to TclInitNotifier, which doesn't seem right to me. I will send this on to the Tcl Core list. ---- - login: "tallniel"
- mimetype: "text/plain"
- username: "tallniel"