Skip to content
Tcl Source Code Artifact [867ce3ac5d]
Login

Artifact [867ce3ac5d]

Artifact 867ce3ac5d5e7c2788a17e1d491ad6a525078185ad384736edd8651b00de2e15:

Ticket change [867ce3ac5d] - Ticket [40b1814b93e50b4a|40b1814b93] <i>App verifier shows user-after-free on ThreadSpecificData for Windows sockets</i> status still Open with 3 other changes by apnadkarni on 2025-06-14 05:37:49.
D 2025-06-14T05:37:49.739
J icomment Also,\suse-after-free\sof\ssocket\shandle\s[here](https://core.tcl-lang.org/tcl/file?ci=d2bd980da407586f&name=win/tclWinSock.c&ln=2308)\son\ssocket_inet-2.9.\r\n\r\n\r\nThe\stsdPtr\sbug\sappears\sto\sbe\scaused\sby\suse\sof\sthe\ssame\sevent\shandle\sto\scommunicate\ssocket\snotifications\sand\sworker\sthread\scompletion\sto\sthe\smain\sthread.\sThe\smain\sthread\swaits\sfor\scompletion\sof\sworker\sto\sensure\sits\sTSD\sis\sstill\savailable\sbut\smistakenly\sconfuses\sa\spending\ssocket\snotification\sfor\sthread\scompletion\sas\sthey\suse\sthe\ssame\sevent\sand\sfrees\sthe\sTSD\simmediately\swhile\sthe\sworker\sthread\sis\sstill\sactive.\r\n\r\n\r\nProposed\sfix\sfor\sboth\sis\sin\scommit\s[bug-40b1814b93](https://core.tcl-lang.org/tcl/info/bbb565eca787dfad).\sThe\stsdPtr\sbug\sis\sfixed\sby\swaiting\son\sthe\sworker\sthread\shandle\srather\sthan\sthe\snotification\sevent\shandle.\sThe\ssocket\shandle\sbug\sis\sa\ssimple\sfailure\sto\smark\ssocket\sclosed\sin\sa\sloop\serror\sand\sthen\sattempting\sto\sclose\sit\sagain.
J login apnadkarni
J mimetype text/x-markdown
K 40b1814b93e50b4a9627e6651184880233d63616
U apnadkarni
Z c468b3e7106ba855b64510e22d8178ea