Repository navigation
Stabilize SOS stack frame checks - #5952
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 486e1562-b17d-45b4-ad88-9ce540834a11
Contributor
There was a problem hiding this comment.
Pull request overview
This PR stabilizes SOS stack-related unit tests by ensuring SymbolTestApp.Program.Foo2 and Foo4 remain physical managed frames (via NoInlining) and by updating stack verification patterns to require both frames across platforms while treating the , calling <target> suffix as optional.
Changes:
- Added
MethodImplOptions.NoInliningtoFoo2andFoo4inSymbolTestAppto prevent frame elision via inlining. - Updated
StackAndOtherTests.scriptto validateDumpStack,DumpStack -EE, andEEStackoutput by requiring bothFoo4andFoo2frames independently and making the, calling ...portion optional. - Updated various source line expectations in the script(s) to account for the added attributes.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/tests/SOS.UnitTests/Scripts/StackAndOtherTests.script | Adjusts stack verification regexes and expected source line mappings; makes , calling ... optional and verifies both Foo4/Foo2 frames. |
| src/tests/SOS.UnitTests/Debuggees/SymbolTestApp/SymbolTestApp/SymbolTestApp.cs | Adds NoInlining to Foo2 and Foo4 to keep frames present in stack traces consistently. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 486e1562-b17d-45b4-ad88-9ce540834a11
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 486e1562-b17d-45b4-ad88-9ce540834a11
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 486e1562-b17d-45b4-ad88-9ce540834a11
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 486e1562-b17d-45b4-ad88-9ce540834a11
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 486e1562-b17d-45b4-ad88-9ce540834a11
noahfalk
approved these changes
Aug 7, 2026
Member
|
/ba-g Test failures in |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #5839.
Keep
Foo2andFoo4as physical managed frames and require both independently in liveDumpStack,DumpStack -EE, andEEStackoutput. Heap-dump replay still verifies that each command resolves managedMethodDescrecords, but does not require specific raw-stack return-address slots that may be absent after dump-time exception processing. The heuristic, calling ...target remains optional because recognized indirect calls do not always expose a decodable target.Breaking changes: None.