Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix minidump generation - missing IP for exception stack frames #115025

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

Merged
merged 2 commits into from
Apr 25, 2025

Conversation

mikem8361
Copy link
Member

This was caused by changes in PR #114582 where Exception::GetStackTrace called GetThread() which throws an error exception in the DAC. Changed the enummem.cpp code in ClrDataAccess::DumpManagedExcepObject() to call the GetStackTrace overload that allows a NULL pCurrentThread parameter to be passed.

This was caused by changes in PR dotnet#114582 where
Exception::GetStackTrace called GetThread() which throws an error exception in the
DAC. Changed the enummem.cpp code in ClrDataAccess::DumpManagedExcepObject() to call
the GetStackTrace overload that allows a NULL pCurrentThread parameter to be passed.
@mikem8361 mikem8361 requested a review from davidwrighton April 24, 2025 23:05
@mikem8361 mikem8361 self-assigned this Apr 24, 2025
@Copilot Copilot AI review requested due to automatic review settings April 24, 2025 23:05
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue in minidump generation by updating the call to GetStackTrace to use the overload that accepts a NULL pCurrentThread parameter, ensuring that exception stack frames include the proper IP.

  • Updated call to GetStackTrace to include additional parameters
  • Ensured compatibility with changes in the DAC error handling

@mikem8361
Copy link
Member Author

@hoyosjs I found the dump generation problem that were caused the SOS tests to fail in dotnet/diagnostics#5461

Copy link
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

@mikem8361 mikem8361 merged commit 143bd05 into dotnet:main Apr 25, 2025
93 checks passed
@mikem8361 mikem8361 deleted the fix_dump_gen branch April 25, 2025 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants