Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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.
    
  5. foundin changed to: "8.5.14 and 8.6.0, probably in all recent versions"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "500c9a7a4e11b3ea0441850610e04006941c0cf3"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "01. Notifier"
  15. title changed to: "Tcl_SetNotifier on Mac causes Tcl to crash"
  16. type changed to: "Bug"