Skip to content

Add C# stacktrace info to CRTDBG leak reporting. #1125

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 3 commits into from
Closed

Add C# stacktrace info to CRTDBG leak reporting. #1125

wants to merge 3 commits into from

Conversation

jeffhostetler
Copy link
Contributor

This change extends the CRTDBG memory leak stack trace to include C# stack frames (the context of the PInvoke). This code depends upon: libgit2/libgit2#3202

@nulltoken I've guarded this code with LEAKS_CRTDBG similar to your other LEAKS_ definitions. I was able to run this within VS in debug mode, but had issues with the build.libgit2sharp.cmd unpacking the nuget package and overwriting my locally built version of libgit2.dll, so I'm wondering if there's something I need to do different to run the suite from the command line, but that's another conversation. Anyway, could you give this a spin and see if the results make sense to you? Thanks!

@nulltoken
Copy link
Member

@jeffhostetler Could you please tweak the appveyor.yml build script to populate the ExtraDefine property with "LEAKS_IDENTIFYING;LEAKS_CRTDBG"?

@bording bording closed this Apr 21, 2019
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.

3 participants