<i>Tcl_GetInterpPath produces invalid path.</i> status still Open with 7 other changes
by
.
D 2026-11-27T15:15:32.428
J assignee aku
J closer nobody
J comment Tcl_GetInterpPath\sreturns\sTCL_OK\swhen\scalled\sform\swithin\sa\sTcl_InterpDeleteProc\sthat\sruns\swhen\sthe\sslave\sinterp\sis\sdeleted,\sbut\sthe\spath\sit\sproduces\sis\sgarbage.\r\n\r\nThe\sfollowing\scode\sprints\ssome\sstrange\scharacter\swhen\sit\sis\sregistered\swith\sTcl_CallWhenDeleted\sfor\ssome\sslave\sinterpreter\sand\sthat\sinterpreter\sis\ssubsequently\sdeleted.\r\n\r\nvoid\sInterpDelete(ClientData\sdummy,\sTcl_Interp\s*interp)\r\n{\r\n\s\s\sTcl_Interp\s*master;\r\n\s\s\smaster\s=\sTcl_GetMaster(interp);\r\n\s\s\sif\s(master\s!=\sNULL)\s{\r\n\s\s\s\s\s\sTcl_GetInterpPath(master,\sinterp);\r\n\s\s\s\s\s\sprintf("Path:\s%s\\n",\sTcl_GetStringResult(master));\r\n\s\s\s}\r\n}\r\n\r\nEither\sthe\sfunction\sshould\sproduce\sthe\scorrect\spath,\sor\sit\sshould\sreturn\sTCL_ERROR.\sIn\sthe\slatter\scase\sit\swould\salso\sbe\shelpful\sif\sthe\smanual\spage\swould\smention\sthat\sthis\sfunction\scannot\sbe\sused\swhen\sthe\sinterp\sis\sin\sthe\sprocess\sof\sbeing\sdeleted.\r\n\r\nProblem\swas\sfound\son\sSuSE\slinux\s11.0.
J icomment I'm\sseeing\s(both\son\sWindows\sand\sLinux:\r\n<pre>\r\nrename.test\r\nTest\sfile\serror:\schild\skilled:\ssegmentation\sviolation\r\n</pre>\r\n\r\nSo,\ssomething\sis\swrong\swith\sthis\spatch.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
J severity Minor
K 2577420fffffffffffffffffffffffffffffffff
U jan.nijtmans
Z 66015cc93567eec1858478d842c894fb