Overview
| Artifact ID: | 0734ddfceaa416a4b62fb870457111a5c16ebbf8 |
|---|---|
| Ticket: | 419449ffffffffffffffffffffffffffffffffff
TclInExit returns wrong value. |
| User & Date: | vincentdarley on 2001-04-27 11:05:28 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vincentdarley"
- subsystem changed to: "None"
- title changed to: "TclInExit returns wrong value."
- type changed to: "Bug"