Uh oh!
There was an error while loading. Please reload this page.
Emit platform-native line endings in requesting assembly chain - #127945
Conversation
…uction and remove managed ReplaceLineEndings() normalization Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/f53f4e08-76fb-4fb1-bfb2-c79be29bf11e Co-authored-by: MichalStrehovsky <13110571+MichalStrehovsky@users.noreply.github.com>
MichalStrehovsky
commented
May 8, 2026
Size statisticsPull request #127945
|
Tagging subscribers to this area: @agocke, @elinor-fung |
There was a problem hiding this comment.
Pull request overview
This PR makes the requesting-assembly chain string use platform-native newlines at the point it’s constructed in CoreCLR native code, allowing the managed ToString() overrides to emit _requestingAssemblyChain as-is (without later line-ending normalization).
Changes:
- Updated
AppDomain::GetParentAssemblyChainto append\r\non Windows and\non Unix before each" --> "continuation. - Removed
_requestingAssemblyChain.ReplaceLineEndings()fromToString()inBadImageFormatException,FileLoadException, andFileNotFoundException.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/coreclr/vm/appdomain.cpp | Emits platform-native newlines when appending " --> " entries to the requesting-assembly chain. |
| src/libraries/System.Private.CoreLib/src/System/BadImageFormatException.cs | Stops normalizing requesting-chain line endings during ToString(). |
| src/libraries/System.Private.CoreLib/src/System/IO/FileLoadException.cs | Stops normalizing requesting-chain line endings during ToString(). |
| src/libraries/System.Private.CoreLib/src/System/IO/FileNotFoundException.cs | Stops normalizing requesting-chain line endings during ToString(). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
MichalStrehovsky
commented
May 9, 2026
/ba-g filed #127992 on the failure, can't seem to be able to rerun build analysis to pick it up |
Uh oh!
There was an error while loading. Please reload this page.
MichalStrehovsky
commented
May 15, 2026
/ba-g python problem on osx. the test succeeded. |
Uh oh!
There was an error while loading. Please reload this page.
MichalStrehovsky
commented
May 15, 2026
Python problem is dotnet/dnceng#6487. |
appdomain.cppto use\r\non Windows,\non UnixReplaceLineEndings()calls fromBadImageFormatException.ToString(),FileLoadException.ToString(), andFileNotFoundException.ToString()MissingTransitiveDependency_ShowsRequestingAssemblyChaintest - passes (39/39)Original prompt
This pull request was created from Copilot chat.