<i>App Verifier shows use-after-free on event handle for Windows pipes</i> status still Open with 3 other changes
by
.
D 2025-06-13T11:48:28.818
J icomment Looking\sat\sthe\ssource,\sthe\sevent\shandle\sseems\sto\shave\sbeen\salready\sclosed\s[here](https://core.tcl-lang.org/tcl/file?ci=950d15a307bcbf94&name=win/tclWinPipe.c&ln=2037).\r\n\r\nIt\s*seems*\sto\sme\sthat\sthe\simmediately\spreceding\s`TclPipeThreadStop`\swakes\sup\sthe\sworker\sthread,\stransitioning\sit\sto\sthe\sSTOP\sstate\swhere\sit\sinvokes\sSetEvent().\sIn\sthe\smeanwhile,\sthe\scode\safter\s`TclPipeThreadStop`\simmediately\scloses\sthat\sevent\shandle\sbefore\sthe\sworker\sactually\sruns.\sHence\sthe\sinvalid\shandle\serror.\r\n\r\nI\sdon't\sknow\swhat\sthe\ssynchronization\sprotocol\sis\sbetween\sthe\smain\sand\sworker\sthreads\sso\sleaving\sinvestigation\sand\sfix\sto\sthose\swho\sdo.\r\n\r\nAs\san\saside,\sseems\slike\sthis\sextends\sway\sback\sto\s8.6.
J login apnadkarni
J mimetype text/x-markdown
K 7c2716733a526ba6d08eccbf27b6a07f8b081cff
U apnadkarni
Z c3dcc5f76cce4e03ac2a49458198d028