Overview
| Artifact ID: | 8a66cdb9fb6241a090102a1a759725565a74a210 |
|---|---|
| Ticket: | 710642ffffffffffffffffffffffffffffffffff
Thread-unsafe handling of cwdPathPtr |
| User & Date: | vasiljevic on 2003-03-27 10:27:22 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "obsolete: 8.4.2"
- priority changed to: "9 Immediate"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vasiljevic"
- subsystem changed to: "36. Pathname Management"
- title changed to: "Thread-unsafe handling of cwdPathPtr"
- type changed to: "Bug"