Overview
| Artifact ID: | f51784e79192a3e35ea94d6cdce744ea2f6c38dc21e170efe846906490c21543 |
|---|---|
| Ticket: | 2577420fffffffffffffffffffffffffffffffff
Tcl_GetInterpPath produces invalid path. |
| User & Date: | jan.nijtmans on 2026-11-27 15:15:32 |
Changes
- assignee changed to: "aku"
- closer changed to: "nobody"
- 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. - icomment:
I'm seeing (both on Windows and Linux: <pre> rename.test Test file error: child killed: segmentation violation </pre> So, something is wrong with this patch.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- severity changed to: "Minor"