Artifacts Associated With Ticket 419449ffffffffffffffffffffffffffffffffff
Ticket change [0734ddfcea] (rid 89348) by vincentdarley on 2001-04-27 11:05:28:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
If TclInExit is called very late in the finalize sequence, the thread specific data has been freed already, and TclInExit returns the wrong value (and in fact re-initialises the thread specific data). The patch below fixes this problem. TclKit can, under some circumstances, run into this bug. $ diff -r -C3 tcl8.4/generic/tclEvent.c tcl8.4v/generic/tclEvent.c *** tcl8.4/generic/tclEvent.c Sat Mar 31 08:57:31 2001 --- tcl8.4v/generic/tclEvent.c Thu Feb 1 15:21:47 2001 *************** *** 935,942 **** int TclInExit() { ! ThreadSpecificData *tsdPtr = TCL_TSD_INIT (&dataKey); ! return tsdPtr->inExit; } ^L /* --- 935,946 ---- int TclInExit() { ! ThreadSpecificData *tsdPtr = TclThreadDataKeyGet (&dataKey); ! if (tsdPtr == NULL) { ! return inFinalize; ! } else { ! return tsdPtr->inExit; ! } } ^L /* - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "vincentdarley"
- subsystem initialized to: "None"
- title initialized to: "TclInExit returns wrong value."
- type initialized to: "Bug"
Ticket change [edd28e53a1] (rid 103964) by dgp on 2001-04-28 07:34:36:
- icomment:
Logged In: YES user_id=80530 Can you attach the patch, rather than include it in the comment?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [9e0e962bd7] (rid 96411) by andreas_kupries on 2001-09-07 04:06:57:
- assignee changed to: "hobbs"
- subsystem changed to: "02. Event Loops"
Add attachment "tclEvent.patch" [e2153ebd6b] (rid 87561) by vincentdarley on 2001-09-10 23:39:36.
Ticket change [0bbb534d21] (rid 114045) by vincentdarley on 2001-09-10 23:39:36:
- icomment:
File Added - 10604: tclEvent.patch Logged In: YES user_id=32170 Ok, a patch is attached.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [909544330e] (rid 120476) by hobbs on 2001-09-11 08:28:37:
- closedate changed to: "2001-09-11T01:28:37"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 fixed in core-8-3-1-branch and 8.4a4cvs head.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "hobbs"
Add attachment "patch" [0d9cb3fbcc] (rid 114393) by mdejong on 2002-11-07 09:12:18.
Ticket change [80a04834a2] (rid 116897) by mdejong on 2002-11-07 09:12:18:
- closedate changed to: "2002-11-07T02:12:18"
- closer changed to: "mdejong"
- icomment:
File Added - 34814: patch Logged In: YES user_id=90858 Jeff mentioned that this patch was related to the problem I was having. I ended up solving it by splitting the normal and per thread exit status up into two functions so that one could tell when Tcl was finalizing itself in a callback registered by Tcl_CreateExitHandler. The patch I checked in is attached.
- login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"