Closed akarpovskii closed 6 months ago
@akarpovskii , it looks like path breaks something. See https://github.com/boostorg/stacktrace/pull/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
@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.
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.