Skip to content

End WinDbg session to prevent memory from leaking #124

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

Closed
wants to merge 2 commits into from
Closed

End WinDbg session to prevent memory from leaking #124

wants to merge 2 commits into from

Conversation

akarpovskii
Copy link

If BOOST_STACKTRACE_USE_WINDBG is defined, the implementation of stacktrace::to_string opens a new WinDbg session each time without ending the previous one which results in leaking memory (see #111).

This PR adds the missing EndSession call in the debugging_symbols destructor.

ihm-tswow added a commit to ihm-tswow/bxx that referenced this pull request Sep 11, 2022
@apolukhin
Copy link
Member

@akarpovskii , it looks like path breaks something. See #130 the CI failures

The MSVC STL implementation also does not do the EndSession https://github.com/microsoft/STL/blob/main/stl/src/stacktrace.cpp

@akarpovskii
Copy link
Author

@apolukhin, sorry for leaving the PR unfinished. At the time I didn't have enough expertise to figure this out, and now I don't have access to a Windows machine to finish it.
I hope this pull request will serve as a foundation for future fixes.

@apolukhin
Copy link
Member

Fixed in 27093f2 and f783534

@apolukhin apolukhin closed this Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants