Skip to content
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

Implement Thread.getAllStackTraces() for CoreCLR #536

Open
wasabii opened this issue Jun 16, 2024 · 1 comment
Open

Implement Thread.getAllStackTraces() for CoreCLR #536

wasabii opened this issue Jun 16, 2024 · 1 comment

Comments

@wasabii
Copy link
Contributor

wasabii commented Jun 16, 2024

.NET Framework supported new StackTrace(Thread) to get the stack of a different thread. During the initial Core upgrade somebody removed all of this (working) code on Framework, and replaced it with broken code for Core (that returned the wrong array size). That's since been "fixed" in that the Framework code has been restored on Framework, but only empty stack traces are left on CoreCLR.

We could fix this on Core by using the diagnostics event pipe similar to how dotnet-stack works.

@wasabii
Copy link
Contributor Author

wasabii commented Jun 16, 2024

Microsoft.Diagnostics.NETCore.Client is an implementation of a client for the event pipes. Good starting point. I'm unsure if this is a dependency appropriate for the core of IKVM, however. Need to evaluate how large/intrusive it is.

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

No branches or pull requests

1 participant