Overview
| Artifact ID: | 77fa662c8f06a027f193e3becf802182df154fa4 |
|---|---|
| Ticket: | 1505810fffffffffffffffffffffffffffffffff
init.tcl not found in thread interpreter |
| User & Date: | cnassau on 2006-06-14 06:39:31 |
Changes
- assignee changed to: "vasiljevic"
- cmimetype changed to: "text/plain"
- comment changed to:
We are using the thread extension in combination with an application specific tcl_library path (in other words, in this installation *only* the tcl_library variable knows where to find a usable "init.tcl"). With thread-2.6.3, when we spawn a new thread using "thread::create" that new thread does not find the "init.tcl" and is thus slightly handicapped; we currently have to manually do the following to get a functional thread: thread::send $tid [list set tcl_library $tcl_library] thread::send $tid { source [file join $tcl_library init.tcl] } This feels like a hack that better ought to be fixed in the thread package itself. Inspecting the code one finds that threadCmd.c executes interp = Tcl_CreateInterp(); result = Tcl_Init(interp); in NewThread(clientData). It seems that "result" is currently not used, so any failure at that stage remains unnoticed. I would suggest to always initialize the thread's tcl_library with the parent's tcl_library before calling Tcl_Init(). - foundin changed to: "obsolete: 8.4.13"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "cnassau"
- subsystem changed to: "80. Thread Package"
- title changed to: "init.tcl not found in thread interpreter "
- type changed to: "Bug"