Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cb75d0cb3c369614f134ceec1cb426890a634092
Ticket: 710649ffffffffffffffffffffffffffffffffff
Thread-unsafe handling of cwdPathPtr
User & Date: vasiljevic on 2003-03-27 10:52:39
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The new pluggable filesystem code located in
    generic/tclIOUtils.c naively plays with global
    Tcl_Obj*, passing them between threads
    per-reference and neglecting the proper locks
    for all except write operations. 
    The spot in question is the global Tcl_Obj *cwdPathPtr.
    
    The net-effect is that paths passed to the OS-calls 
    gets garbled, memory is being trashed leading to
    process exitus and whole bunch of other ugly things
    is happening.
    
    I think this has to be entirely revised, as one can not
    simply share Tcl_Objs between threads. One has to 
    always make a deep-copy (w/o internal references) 
    of the object before passing it to some other thread.
    
    I have some ideas on how to solve this, but it is 
    really not that straight-forward, since few of design
    issues have to be modified.
    
    This bug is really a show-stopper for MT-apps
    therefore the highest priority.
    
  4. foundin changed to: "obsolete: 8.4.2"
  5. priority changed to: "9 Immediate"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vasiljevic"
  9. subsystem changed to: "36. Pathname Management"
  10. title changed to: "Thread-unsafe handling of cwdPathPtr"
  11. type changed to: "Bug"