Skip to content
Tcl Source Code Artifact [e0925741a7]
Login

Artifact [e0925741a7]

Artifact e0925741a79bfa29ef318429594bf8e66902814afcb48d89ad6cb4650bfade74:

Ticket change [e0925741a7] - Ticket [61c01e0edb08a9ed|61c01e0edb] <i>likely race condition with package require in several threads causing error</i> status still Open with 3 other changes by sebres on 2025-07-17 12:40:11.
D 2025-07-17T12:40:11.191
J icomment It\sdoesn't\slook\slike\sencoding\sissue\sto\sme...\showever\sif\sI\ssee\s"access\sviolation",\sI\sremember\sabout\s[f2ff05fc84],\sso\sthe\squestion\sis\swhether\ssomething\s(C\sor\stcl)\swould\sset\ssystem\sencoding\sin\sthreads\s(even\sif\sit\sset\sto\ssame\svalue).\r\n\r\nAs\sfor\sdifference\sto\s8.6\s-\sit\scan\sbe\sthe\slibrary\sin\szipfs.\r\n\r\nAnyway\sit\slooks\srather\sas\sa\stiming\sissue\sto\sme\sand\snot\snecessarily\sa\srace\scondition.\sAnd\sit\shas\sdefinitely\sto\sdo\swith\sa\sexpanding\sof\sauto_path,\sbecause\sfor\ssome\sreason\sthe\spath\sto\stcllib/math\sis\snot\sthere\sif\serror\soccurs,\showever\sthe\spath\sto\stcllib\swas\sset\s(it\sis\salso\sinteresting\s-\swho\sadd\sthe\spath\sto\stcllib).\r\n\r\nThe\sfirst\squestion\sis\s-\scan\syou\stry\sto\suse\sa\stcl\swithout\szipfs?<br/>\r\nSo\seither\sbuild\sit\swith\s`configure\s--disable-zipfs`.<br/>\r\nOr\scopy\stcl-library\stogether\swith\sall\spackages\sin\ssome\scommon\sdirectory,\sset\senv\s"TCL_LIBRARY"\sto\sthis\sroot\spath\sand\sstart\syour\stest\sfrom\sthat\sshell.<br/>\r\n\r\nAnother\squestion\sis\s-\swho\sadd\s`C:/bawTcl/lib`\sor\s`D:/podcasts/Tcl90/lib`\sin\sauto_path\sinitially?\sAre\sthey\sadded\sby\stcl\sitself,\sor\sby\syou\s(e.g.\ssomewhere\sin\sinit.tcl\sor\sby\ssome\spackage).\r\nI\sguess\sthe\sinit.tcl\smay\sbe\scustomized\sthere\s(e.\sg.\sso\senhancements\sof\sauto_load\sor\sauto_load_index),\sbecause\sby\sdefault\stcl\sdoesn't\ssearch\spkgIndex.tcl\srecursively\s(but\sonly\sin\sfirst\slevel\sof\seach\sdirectory\sin\sauto_path),\sso\sif\ssomething\sadds\spath\sto\stcllib\s"delayed"\sit'd\swork\sexactly\sas\sdescribed\s-\sfirst\stime\sfails\sand\s2nd\sattempt\sto\srequire\sit'd\sload\sit\ssuccessfully.\r\nAlso\sI\sassume,\sit'd\snot\sfail\sanymore\sif\syou'd\sadd\spath\sto\stcllib\sby\syourself,\se.\sg.\ssomewhere\sin\sinit.tcl\sor\swith\s`lappend\sauto_path\sC:/bawTcl/lib/tcllib`.\r\n\r\nSo\sto\sclarify\sthe\sissue,\sone\sneeds\sto\sknow\swhich\schanges\sboth\stcl-editions\shave\sand\show\sit\sis\scustomized\slocally\sand\show\sthe\sauto_load\smechanisms\swork\s(particularly\swho\sadds\stcllib\sto\sauto_path).
J login sebres
J mimetype text/x-fossil-wiki
K 61c01e0edb08a9ed905aefdf17ce113da303c77b
U sebres
Z b2b29a53b3dcc8a7f16a5f007a2ff6cd