Skip to content
Tcl Source Code History Of Ticket 3b9b6e7d08810a5d
Login

History Of Ticket 3b9b6e7d08810a5d

Artifacts Associated With Ticket 3b9b6e7d08810a5d

  1. Ticket change [5f2b320514] (rid 133908) by anonymous on 2013-09-15 06:48:28:

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

    1. assignee changed to: "kevin_walzer"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  3. Ticket change [41ddddea98] (rid 133916) by dgp on 2013-09-15 19:49:27:

    1. icomment:
      Is this a regression?  If so, what was the last
      release of Tcl that worked correctly?
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [429d8ec0bf] (rid 133917) by jan.nijtmans on 2013-09-15 21:33:09:

    1. 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.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  5. Ticket change [2eeae04984] (rid 133918) by jan.nijtmans on 2013-09-15 21:57:48:

    1. 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.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
    4. resolution changed to: "Invalid"
    5. status changed to: "Pending"
  6. Ticket change [715a2c0f6a] (rid 135570) by dkf on 2013-11-12 14:40:29:

    1. closedate changed to: "2456609.11144894"
    2. closer changed to: "dkf"
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"