Overview
| Artifact ID: | a9c63dd97fab6a7f8d60ea6b896e1ae52baa0cd1 |
|---|---|
| Ticket: | 2577420fffffffffffffffffffffffffffffffff
Tcl_GetInterpPath produces invalid path. |
| User & Date: | sbron on 2009-02-07 14:54:54 |
Changes
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- comment changed to:
Tcl_GetInterpPath returns TCL_OK when called form within a Tcl_InterpDeleteProc that runs when the slave interp is deleted, but the path it produces is garbage. The following code prints some strange character when it is registered with Tcl_CallWhenDeleted for some slave interpreter and that interpreter is subsequently deleted. void InterpDelete(ClientData dummy, Tcl_Interp *interp) { Tcl_Interp *master; master = Tcl_GetMaster(interp); if (master != NULL) { Tcl_GetInterpPath(master, interp); printf("Path: %s\n", Tcl_GetStringResult(master)); } } Either the function should produce the correct path, or it should return TCL_ERROR. In the latter case it would also be helpful if the manual page would mention that this function cannot be used when the interp is in the process of being deleted. Problem was found on SuSE linux 11.0. - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "sbron"
- subsystem changed to: "20. [interp]"
- title changed to: "Tcl_GetInterpPath produces invalid path."
- type changed to: "Bug"