Artifacts Associated With Ticket 1505810
Ticket change [77fa662c8f] (rid 89871) by cnassau on 2006-06-14 06:39:31:
- assignee initialized to: "vasiljevic"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "obsolete: 8.4.13"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "cnassau"
- subsystem initialized to: "80. Thread Package"
- title initialized to: "init.tcl not found in thread interpreter "
- type initialized to: "Bug"
Ticket change [6a14375fb3] (rid 128083) by dgp on 2006-06-14 22:28:44:
- icomment:
Logged In: YES user_id=80530 set ::env(TCL_LIBRARY) $::tcl_library in the master interp should be a work-around for this issue.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c65ea324dd] (rid 121750) by vasiljevic on 2006-09-06 20:49:00:
- closedate changed to: "2006-09-06T13:49:00"
- closer changed to: "vasiljevic"
- icomment:
Logged In: YES user_id=95086 I believe that this is out of the scope of the threading extension code. At the point of ignoring the result of Tcl_Init()... Yes, I know it is ignored. At that point I was pretty unsure what to do as the thread ID has already been reported to the user, so I could'nt just exited the new thread. I do still have this weird thing on my todo list... I will close this ticket with "Won't Fix" but will keep an eye on somehow improving the code to signalize error if the Tcl_Init does not finish properly.
- login: "vasiljevic"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "vasiljevic"