-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All Terminal methods leak memory on Windows #63
Comments
If @retep998 doesn't beat me to it, I'll get around to fixing this after labor day (thesis deadline). |
Is there any news about this? |
Other than it completely fell off my radar? No, sorry. I'll try to fix it tomorrow. If I don't fix it in a few days, please bug me. |
Any updates on this? I'm seeing some weird behavior on windows, and it'd be nice to eliminate this as the cause. |
bugging intensifies edit: For the record, the weird behavior turned out to be caused by unrelated buffering errors, but this amount of leakage still makes me uncomfortable. |
I'm unlikely to get around to fixing this any time soon as I don't have access to a windows machine and debugging with wine is a real pain. If anyone has a Windows machine, I'd be happy to review a patch. |
I'm not familiar with Windows debugging tools, so I had a really "fun" time reproing this on Windows 10. I wasn't able to get UMDH to work, so I followed https://blogs.technet.microsoft.com/yongrhee/2011/12/19/how-to-troubleshoot-a-handle-leak/ . Condensed steps I took, not all of which I'm sure are necessary:
I have a local patch that creates a wrapper struct that calls |
All
WinConsole
methods start by callingconout
, which in turn callskernel32::CreateFileA
, this creates a new file handle that is not destroyed.I've solved this locally by wrapping the handle in a struct that calls
kernel32::CloseHandle
on drop.UMDH log:
Tagging @retep998.
The text was updated successfully, but these errors were encountered: