Repository navigation
Conversation
Request minidumps through the runtime diagnostics socket instead of invoking createdump directly. Validate the Server/OK response before counting each capture. Co-authored-by: Copilot <[email protected]>
wtgodbe
approved these changes
Sep 2, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The new IPC transport uses nc without any timeout, which can block the cancel-timeout window and prevent reliable dump capture/upload in hang scenarios.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Updates the non-Windows hang-dump capture script to request minidumps via the .NET runtime diagnostics IPC socket, removing the dependency on createdump and handling transport/response validation in-script.
Changes:
- Adds IPC packet construction helpers and a
capture_dumpimplementation that sendsCreateCoreDumpoverdotnet-diagnostic-<pid>-*-socket. - Replaces
createdumpdiscovery/usage (and macOSsudohandling) with required-tool checks foriconv,nc, andod. - Validates the IPC response before counting a dump as captured and emits warnings on failures.
File summaries
| File | Description |
|---|---|
| eng/scripts/CaptureHangDumps.sh | Switches hang dump capture from createdump to diagnostics IPC minidump requests and adds tool/response validation. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Use the timeout utility when available and a Bash watchdog fallback otherwise so stalled diagnostic sockets cannot consume the cancellation window. Co-authored-by: Copilot <[email protected]>
wtgodbe
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update
CaptureHangDumps.shto request minidumps through the runtime diagnostics IPC socket, avoiding dependencies on external tooling.The script now:
dotnet-diagnostic-<pid>-*-socket.CreateCoreDump(0x0101) IPC command usingnc -U.Validation
dotnet-dump analyze, SOS reported three managed threads and resolvedProgram.<Main>on the captured stack.