Artifacts Associated With Ticket 3b9b6e7d08810a5d
Ticket change [5f2b320514] (rid 133908) by anonymous on 2013-09-15 06:48:28:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In macosx/tclMacOSXNotify.c, Tcl_Sleep makes use of the local ThreadSpecificData *tsdPtr, which is effectively private data belonging to the notifier. However, Tcl_Sleep itself is not part of the notifier. If I then use Tcl_SetNotifier to replace the notifier, then Tcl crashes because Tcl_Sleep still tries to use the original notifier, which has not been initialized (so tsdPtr is invalid). The solution to this bug is to either include Tcl_Sleep in the notifier (i.e., in Tcl_NotifierProcs), or rewrite Tcl_Sleep on Mac OS X such that it does not use data private to the notifier.
- foundin initialized to: "8.5.14 and 8.6.0, probably in all recent versions"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "500c9a7a4e11b3ea0441850610e04006941c0cf3"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "01. Notifier"
- title initialized to: "Tcl_SetNotifier on Mac causes Tcl to crash"
- type initialized to: "Bug"
Ticket change [f6df86bc48] (rid 133914) by jan.nijtmans on 2013-09-15 17:09:40:
- assignee changed to: "kevin_walzer"
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [41ddddea98] (rid 133916) by dgp on 2013-09-15 19:49:27:
- icomment:
Is this a regression? If so, what was the last release of Tcl that worked correctly?
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [429d8ec0bf] (rid 133917) by jan.nijtmans on 2013-09-15 21:33:09:
- icomment:
The Tcl_Sleep() function was added in the MacOSX Notifier in [7a6749806adf6447], just before the release of 8.5.7. It appears that 8.5.6 worked correctly.
- login: "jan.nijtmans"
- mimetype: "text/plain"
- icomment:
Ticket change [2eeae04984] (rid 133918) by jan.nijtmans on 2013-09-15 21:57:48:
- icomment:
Actually, I think this bug report is invalid. tsdPtr is always initialized, if it wasn't already then the TCL_TSD_INIT(&dataKey) in Tcl_Sleep will do it. Further on, the Tcl_Sleep function properly tests for tsdPtr->runLoop and tsdPtr->runLoopTimer being non-NULL before using them. I would really like to have a look at a stack-trace first, before doing anything here. It's more likely that the replacement notifier does something wrong.
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Pending"
- icomment:
Ticket change [715a2c0f6a] (rid 135570) by dkf on 2013-11-12 14:40:29:
- closedate changed to: "2456609.11144894"
- closer changed to: "dkf"
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Closed"