<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-14T14:31:09.672
J icomment Proposed\sfix\sis\s[here](https://core.tcl-lang.org/tcl/info/e85c44529a9b3d58).\r\n\r\nLooking\smore\sclosely\sat\sthe\scode,\sI\sdid\snot\ssee\swhy\sthat\sevent\shandle\swas\sneeded\sat\sall.\sIn\ssummary,\r\n\r\n*\sthe\shandle\sin\squestion\sis\s`TclPipeThreadInfo.evWakeup`.\sThis\sis\sinitialized\sfrom\sthe\s`readable`\sor\s`writable`\sevent\shandles\sfrom\sthe\schannel\sstructure.\r\n\r\n*\sthe\sworker\sthread\showever\ssignal\sread\sor\swrite\scompletions\sdirectly\susing\sthe\s`readable`/`writable`\shandles\sfrom\sthe\schannel\sstructure,\snot\sevWakeup.\r\n\r\n*\sthe\sonly\stime\s`TclPipeThreadInfo.evWakeup`\sis\ssignalled\sis\son\sworker\sthread\sexit\swhich\sis\swhen\sit\shas\salready\sbeen\sdeallocated\sby\sthe\smain\sthread\scausing\sthe\suse-after-free\serror!\r\n\r\nThe\sproposed\sfix\ssimply\sexpunges\sall\sreferences\sto\sthe\s`TclPipeThreadInfo.evWakeup`.\sThe\stest\ssuite\spasses\sand\sApplication\sVerifier\sno\slonger\scomplains.\sBut\ssomeone\sshould\sreview\sbefore\smerge.
J login apnadkarni
J mimetype text/x-markdown
K 7c2716733a526ba6d08eccbf27b6a07f8b081cff
U apnadkarni
Z c60789590853e0c81f74406ae90ff2bb