Skip to content
Tcl Source Code Artifact [b58fe1f764]
Login

Artifact [b58fe1f764]

Artifact b58fe1f764c3dea1000840ac6f88904af806ea7c3c868f513dc81a8229919ce5:

Ticket change [b58fe1f764] - Ticket [c35e347c6fb8df66|c35e347c6f] <i>Concurrent Tcl_Init calls race in Unix locale initialization, causing crashes on OpenBSD</i> status still Open with 3 other changes by gustafn3 on 2026-10-20 08:55:06.
D 2026-10-20T08:55:06.261
J icomment Thanks,\sSerhiy\s...\sthis\sresolves\sthe\sperformance\saspect.\sWith\sthe\ssuccessful-initialization\sguard\sin\splace,\sthe\slocale\slock\sis\soutside\sthe\snormal\sinterpreter-creation\spath,\sso\sthe\sconcern\sabout\srepeated\ssynchronization\sis\salready\saddressed\sthere.\r\n\r\nThe\scombination\smakes\ssense\sto\sme:\savoid\srepeated\sinitialization\sonce\sit\shas\ssucceeded,\sand\sprotect\sthe\slocale\soperations\swhen\sexplicitly\sreached\sthrough\sthe\spublic\squery\sfunctions\sor\sduring\sinitialization\sretries.\sCaching\sthe\spublic-query\sresults\swould\sbe\sa\sseparate\sbehavior\schange\sand\sdoes\snot\sseem\snecessary\shere.\r\n\r\nFor\sclarity,\smy\soriginal\sTcl\s9.1.0\sreproducer\scrashed\sduring\sconcurrent\sTcl_Init()\scalls,\swithout\scalling\s[encoding\suser].\sThe\spublic-query\scase\sdemonstrates\swhy\slocking\sremains\srelevant\safter\sthe\sinitialization\schange.
J login gustafn3
J mimetype text/plain
K c35e347c6fb8df66917b1ab6974b3638925b4aa2
U gustafn3
Z 06a73e1afaaf51f5d93b4f2b5188a4cb