Ticket UUID: | 7c2716733a526ba6d08eccbf27b6a07f8b081c | |||
Title: | App Verifier shows use-after-free on event handle for Windows pipes | |||
Type: | Bug | Version: | trunk | |
Submitter: | apnadkarni | Created on: | 2025-06-13 11:13:49 | |
Subsystem: | - New Builtin Commands | Assigned To: | nobody | |
Priority: | 5 Medium | Severity: | Important | |
Status: | Closed | Last Modified: | 2025-06-25 16:24:23 | |
Resolution: | Fixed | Closed By: | apnadkarni | |
Closed on: | 2025-06-25 16:24:23 | |||
Description: |
Running the Windows application verifier on trunk shows a use after free on a Windows event handle used for exec pipes. The offending line is here. The This should be afforded the same level of importance as a user-after-free detected by valgrind. | |||
User Comments: |
apnadkarni added on 2025-06-25 16:24:23:
Fixed in [7c2716733a].
apnadkarni added on 2025-06-14 14:31:09: Proposed fix is here. Looking more closely at the code, I did not see why that event handle was needed at all. In summary,
The proposed fix simply expunges all references to the apnadkarni added on 2025-06-13 11:48:28: Looking at the source, the event handle seems to have been already closed here. It seems to me that the immediately preceding I don't know what the synchronization protocol is between the main and worker threads so leaving investigation and fix to those who do. As an aside, seems like this extends way back to 8.6. |
