Skip to content
Tcl Source Code Artifact [92e1475569]
Login

Artifact [92e1475569]

Artifact 92e1475569bd99c16dd7147bf9575f2cf9d843705989e4af713e9e5aaac4b34d:

Ticket change [92e1475569] - Ticket [a8e4f76ce498ad64|a8e4f76ce4] <i>load library (dll) from zipfs-library causes a leak in temporary folder</i> status still Open with 3 other changes by apnadkarni on 2024-11-25 06:17:18.
D 2024-11-25T06:17:18.578
J icomment To\srespond\sto\sJan's\spost,\r\n\r\nThe\sissue\sis\snot\swith\sWindows\sPE\sformat\schanging,\sit\shas\sto\sdo\swith\show\sthe\sWindows\sloader\sinterprets\sthe\s*content*\sof\sthe\srecords\sand\sto\swhat\sextent\sMemoryModule\sfaithfully\simplements\sthat\sbehavior.\r\n\r\n-\sDoes\sit\sprocess\sSEH\srecords\sin\sthe\sPE\sto\sset\sup\sexception\shandler\schains?\r\n\r\n-\sDoes\sit\scall\sC++\sconstructors\sfor\sglobals,\sand\sin\sthe\scorrect\sorder?\r\n\r\n-\sDoes\sit\sprocess\s*declared*\sTLS\svariables\s(_declspec(thread)\sdecorations)\sand\sarrange\sfor\smemory\sto\sbe\sallocated\sfor\sthem\sat\severy\sthread\screation?\sWill\sit\spin\sthe\sDLL\sin\smemory\sas\srequired?\r\n\r\n-\sDoes\sit\shandle\smanifest\srecords\sin\sthe\sDLL?\sFor\sexample,\sa\sDLL\smay\srequire\sa\sspecific\sversion\sof\sa\sdependency\sspecified\svia\sa\sside-by-side\sassembly\smanifest\srecord.\r\n\r\n-\sDoes\sit\sdeal\swith\sdifferences\swithin\sWindows\sversions?\sTLS\shandling\sfor\sexample\shas\schanged\sand\sthe\simplementation\sin\sthe\sMemoryModule\swould\shave\sto\spick\sthe\scorrect\sone\sdepending\son\sOS\sversion.\r\n\r\n-\sWhat\shappens\sif\sthe\sDLL\scontains\sresources\saccessed\sby\sthe\scode?\sWill\sLoadResource\saccept\sthe\shandle\spassed\sby\sMemoryModule\sto\sthe\sDLL\sentry\spoint?\r\n\r\nThis\sis\sjust\swhat\sI\scan\sthink\sof\sbased\son\smy\slimited\sknowledge\sof\sWindows\sloaders.\sThere\sare\slikely\sother\sconcerns.\r\n\r\nI\shave\snot\slooked\sat\sthe\sMemoryModule\scode\sand\seven\sif\sI\sdid\sI\sprobably\scould\snot\stell\sif\sit\sdoes\sall\sthe\sabove.\sBased\son\sthe\stickets\sthough,\sI\sthink\sit\sdoes\snone\sof\sit.\r\n\r\nThe\scomments\sregarding\sTcl\sC\sAPI\snot\susing\sSEH\sis\sirrelevant.\sExtensions\scan\sinternally\suse\sSEH.\r\n\r\nFor\sTLS,\susing\sTcl's\sTLS\sAPI\sis\snot\san\salternative.\sEven\signoring\sthe\sperformance\sissues,\sit\swould\srequire\sextensions\sto\s(a)\schange\simplementation\sand\s(b)\snot\seven\sbe\sfeasible\sin\ssome\scases\sas\sthe\sAPI's\sand\ssemantics\sare\snot\sthe\ssame.\sAnd\sas\sa\spractical\smatter,\stclcurl\suses\slibcurl\swhich\sin\sturn\suses\sanother\sdozen\sor\smore\slibraries.\sHow\sis\sit\seven\spossible\sfor\sthese\sto\sbe\schanged\sto\suse\sthe\sTcl\sTLS\sAPI?\r\n\r\nThe\sstance\sthat\sif\sthe\smechanism\sdoes\snot\swork\sfor\ssome\sextension,\swe\scan\sjust\smark\sthe\sbug\sas\snot\ssupported\sdoes\snot\ssit\swell\swith\sme.\sFor\sstarters,\swith\sTLS\sstomping,\sbugs\swould\sshow\sup\sas\smemory\sviolations\s(best\scase)\sor\sdata\scorruption\s(worst\scase).\sJust\stracking\sit\sdown\sand\spinpointing\sMemoryModule\swould\sbe\sconsiderable\swork.\sThink\sabout\sthe\stclcurl\sexample\sabove.\sRemember\sthat\sthe\sinclusion\sof\san\sextension\swithin\sthe\sVFS\sis\snot\swithin\sthe\sextension\swriter's\scontrol\sbut\sthey\sare\sthe\sones\swho\swill\sexpend\seffort\son\sdebugging.\s\r\n\r\nFinally,\sas\sa\smatter\sof\sprinciple\sI\sam\sopposed\sto\sintroducing\sfeatures\sinto\sthe\score\sthat\swill\swork\ssome\sof\sthe\stime\sfor\ssome\sof\sthe\sextensions.\sThat\sis\snot\sa\spath\sto\srobustness.\r\n\r\nI\sunderstand\sthe\srisk/reward\sis\sall\sa\smatter\sof\sopinion\sso\sif\smajority\sof\sfolks\swant\sit,\sso\sbe\sit.\sI\sdo\sthink\ssomething\sof\sthis\snature\sshould\shave\sa\sTIP\s(targeting\s9.1\sand\snot\s9.0.1)\sand\snot\sbe\sjust\streated\sas\san\simplementation\schange\sor\sbug\sfix.\sThat\swill\sallow\sa\sfull\srange\sof\stests.
J login apnadkarni
J mimetype text/x-markdown
K a8e4f76ce498ad648134e0b6867c359949055388
U apnadkarni
Z d1960468b185651fe7e6d64e30de930f