Overview
| Artifact ID: | 5f2b3205141f34fb227e16749bddd623e45ae579 |
|---|---|
| Ticket: | 3b9b6e7d08810a5d0f71dc53d92a3e5c809d68ad
Tcl_SetNotifier on Mac causes Tcl to crash |
| User & Date: | anonymous on 2013-09-15 06:48:28 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "8.5.14 and 8.6.0, probably in all recent versions"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "500c9a7a4e11b3ea0441850610e04006941c0cf3"
- resolution changed to: "None"
- severity changed to: "Severe"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "01. Notifier"
- title changed to: "Tcl_SetNotifier on Mac causes Tcl to crash"
- type changed to: "Bug"