Skip to content
Tcl Source Code Artifact [11c618ba05]
Login

Artifact [11c618ba05]

Artifact 11c618ba0598a2cb42318d2a95159c6d0a868051babc99ed5ec59894ac45bdab:

Ticket change [11c618ba05] - Ticket [d402ffe76f90c650|d402ffe76f] <i>Win32 potential crash when using main()</i> status still Closed with 6 other changes by anonymous on 2026-11-10 18:10:43.
D 2026-11-10T18:10:43.677
J closedate 2461355.2574499655
J closer anonymous
J icomment This\sissue\sstill\sexists\sin\s9.0\sdue\sto\sTclFinalizeIOSubsystem()\scalling\sTclGetEnv()\saround\sline\s598\sof\stclIO.c.\r\n\r\nIt's\spossible\sfor\strivial\sapps\sto\sinitialise\sand\sfinalise\sand\shit\sthis\spath.\sI\sencountered\sthis\screating\sa\sminimal\srepro\sfor\sa\sbuild\sissue\swith\sCPython.\s\r\n\r\nThe\sfix\sI'd\ssuggest\sis\sto\shave\sTclpFindVariable\s(in\stclWinInit.c)\scheck\sfor\sa\sNULL\s_wenviron\sand\sdo\san\sarbitrary\s_wgetenv\sto\sinitialise\sbefore\scontinuing.\sI\sassume\sthere's\ssome\sreason\sfor\sdoing\syour\sown\ssearch\srather\sthan\susing\s_wgetenv\s(or\s_wgetenv_s),\sbut\sif\snot,\sswitching\sto\sthat\sfor\sthe\ssearch\sought\sto\sbe\sfine\stoo.
J login anonymous
J mimetype text/plain
J username [email protected]
K d402ffe76f90c650bcf18d5b5c58a0b77770ed48
U anonymous
Z b80b5ef7dbe6248962bbce78b72eebe0