.
D 2021-09-21T08:33:23.635
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment The\sitcl\sinitialization\scode\shas\sroom\sfor\simprovement.\r\n\r\nThe\sworst\sproblem\sis\sthat\sit\sis\svery\seasy\sto\strigger\sa\sTcl\spanic\sby\strying\sto\sload\sthe\sItcl\spackage:\sit\ssuffices\sto\screate\sthe\sitcl\snamespace\sbeforehand.\sThis\scode\sis\salso\sreached\sfrom\sItcl_SafeInit\sso\sit\scan\seven\sbe\sused\sto\scrash\sTcl\sfrom\sa\ssafe\sinterpreter:\r\n\r\n\s\s/$\sbin/tclsh8.6\r\n\s\s%\snamespace\seval\sitcl\s{\sset\ssome\svariable\s}\r\n\s\svariable\r\n\s\s%\spackage\sreq\sitcl\r\n\s\sItcl:\scannot\screate\snamespace:\s"::itcl"\r\n\s\s\r\n\s\sAborted\s(core\sdumped)\r\n\r\nA\ssecond\spoint\sis\sthat\sit\sseems\sunnecessarily\sdifficult\sto\sget\sthe\slocation\sof\sthe\s"itcl.tcl"\sinitialization\sfile\sright.\s\sI\sbelieve\sthe\s"itcl.tcl"\sshould\sreside\snext\sto\sthe\slibrary\sthat\sneeds\sit,\sso\sits\slocation\scould\s(=\sshould)\sbe\sset\sin\sthe\spkgIndex.tcl\sfile,\susing\se.g.\r\n\r\n\s\spackage\sifneeded\sitcl\s4.2.1\s"[list\sset\s::env(ITCL_LIBRARY)\s$dir];[list\sload\s[file\sjoin\s$dir\s"libitcl4.2.1.so"]\sItcl]"
J foundin Itcl\s4.2.1
J is_private 0
J login christian.nassau
J priority 5\sMedium
J private_contact 3b279cda57135cd36d2c32c66396637342913651
J resolution None
J severity Severe
J status Open
J submitter christian.nassau
J subsystem 81.\sBundled\sPackages
J title Tcl_Panic\sfrom\sItcl_SafeInit
J type Bug
K ba7491332a89da45d62f583e4ac848afcc89dd57
U christian.nassau
Z 844ac08358f26d5dc3dba04a27c72534