Skip to content

Handle createdump race during self-collection - #6042

Merged
max-charlamb merged 1 commit into
mainfrom
max-charlamb/selfcollect-createdump-race
Sep 16, 2026
Merged

max-charlamb merged 1 commit into
mainfrom
max-charlamb/selfcollect-createdump-race

Conversation

@max-charlamb

Copy link
Copy Markdown
Member

Summary

  • apply the existing .NET 8 and 9 Linux createdump permission-race skip to self-collected snapshots
  • share the skip classification between crash capture and self-collection
  • drain and report both target output streams so the nested createdump diagnostic can be recognized

Testing

  • built src/tests/SOS.Tests/SOS.Tests.csproj in Release
  • ran TestConfigValidityTests directly through the xUnit v3 runner: 23 passed

CI failure

Addresses the Alpine dump collection failure in build 1598637, result 100330:

open(/proc/59/mem) FAILED Permission denied (13)

This is the runtime race fixed by dotnet/runtime#120000 for newer runtimes, but .NET 8 and 9 remain affected.

Apply the existing .NET 8 and 9 Linux createdump permission-race skip to self-collected snapshots, and capture both child output streams for classification and diagnostics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 2d5c60f7-9c89-42e6-b9fc-04ef78c8f8d8
Copilot AI lite review requested due to automatic review settings September 16, 2026 20:18
@max-charlamb
max-charlamb requested a review from a team as a code owner September 16, 2026 20:18
@max-charlamb
max-charlamb enabled auto-merge (squash) September 16, 2026 20:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The reviewed changes are covered by tests and no blocking issues were identified.

Pull request overview

Updates SOS snapshot capture to handle known .NET 8/9 Linux createdump permission races during crash and self-collection.

Changes:

  • Shares permission-race detection across capture paths.
  • Drains and reports both output streams.
  • Updates validity tests for skip behavior.
File summaries
File Description
src/tests/SOS.Tests/TestConfigValidityTests.cs Verifies supported and unsupported skip conditions.
src/tests/SOS.TestHarness/SnapshotStore.cs Applies shared race handling and captures both output streams.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@max-charlamb

Copy link
Copy Markdown
Member Author

/ba-g osx timeout

@max-charlamb
max-charlamb merged commit b47b81f into main Sep 16, 2026
9 of 13 checks passed
@max-charlamb
max-charlamb deleted the max-charlamb/selfcollect-createdump-race branch September 16, 2026 21:14
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