Skip to content
Tcl Source Code Artifact [e6d35a9384]
Login

Artifact [e6d35a9384]

Artifact e6d35a93844713346385549c4942dd3f01efcd2bf7d010e55eb545cd42c1e6e8:

Ticket change [e6d35a9384] - Ticket [7c2716733a526ba6|7c2716733a] <i>App Verifier shows use-after-free on event handle for Windows pipes</i> status still Open with 3 other changes by apnadkarni on 2025-06-14 14:31:09.
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