-
Notifications
You must be signed in to change notification settings - Fork 51
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
Unable to load custom VsDbg extensions in linux/WSL using VS 17.7 Preview #94
Comments
I think I see the issue. Let me get you a private build to confirm. |
Here are the new getvsdbg scripts to test:
|
Thanks @gregg-miskelly - this fixes it for me. Out of curiosity, what was the underlying issue? |
We refactored an initialization code path in the native code that calls this that lead to freeing the native array before we were done processing it. Unfortunately, in our tests, we were getting "lucky" and nothing was reclaiming this memory between the free and use point, so nothing caught the bug. |
Ah, interesting - that may explain why this problem seemed intermittent across different machines/OSs. |
This PR updates the debugger to include a fix for microsoft/ConcordExtensibilitySamples#94. No other changes are included.
aka.ms links have been updated. I will resolve this once it is also inserted into the VS Code C# extension. |
This PR updates the debugger to include a fix for microsoft/ConcordExtensibilitySamples#94. No other changes are included.
This PR updates the debugger to include a fix for microsoft/ConcordExtensibilitySamples#94. No other changes are included.
Using VS 17.7 Preview 1, WSL/Ubuntu linux 22.04. .NET Runtime 6.0.16. VsDbg version.txt 17.6.10401.3 commit:2b6b7003009fd737853b727ff5723629d01c281d
Start WSL debugging from VS gives an immediate fail about launching the debug adapter.
Running ./vsdbg/vsdbg from the linux box gives:
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.SpanHelpers.IndexOf(Char ByRef, Char, Int32)
at System.String.Ctor(Char*)
at VsDbg.EntryPoint.GetAssemblyDirectories(IntPtr)
at VsDbg.EntryPoint.Initialize(IntPtr)
Aborted
It seems that any directory specified in a .link file for VsDbg extensions (e.g. ~/.dotnet/vsdbg-extensions/any.link) will cause this fail as long as the .link file contains a valid absolute directory (the directory itself can be totally empty) so I'm not sure this issue is anything to do with the VsDbg extension itself.
Any help with diagnosing the issue appreciated!
The text was updated successfully, but these errors were encountered: