Open
Description
Description
When dumps are being created on Windows 11 and Windows Server 2022 they cannot be always debugged correctly. Most of the time. This only happens when Single File App is being used. Here are my findings:
OS | Type | Behavior |
---|---|---|
W11 | Mini | Works |
W11 | Triage | Does not work |
W11 | Heap | Works |
W11 | Full | Works |
WS2022 | Mini | Does not work |
WS2022 | Triage | Does not work |
WS2022 | Heap | Does not work |
WS2022 | Full | Works |
Reproduction Steps
- Create console app (.NET 8.0.8):
using System.Diagnostics;
using (var process = Process.GetCurrentProcess())
{
Console.WriteLine($"PID: {process.Id}");
}
var mre = new ManualResetEvent(false);
var t = new Thread(() =>
{
Thread.CurrentThread.Name = "Background Work";
mre.WaitOne();
});
t.Start();
Console.WriteLine("Press any key to close...");
Console.ReadLine();
mre.Set();
t.Join();
Console.WriteLine("Done");
- Publish
dotnet publish -c Release /p:PublishSingleFile=true
and run dotnet-dump collect -p PID --type Triage
- Open VS and click
Debug with Managed Only
- In that area we also found: https://developercommunity.visualstudio.com/t/Parallel-Stacks-do-not-display-threads-f/10738338?port=1025&fsid=efce44a5-7c7a-474d-867d-c812b3de1d99
Expected behavior
Should work?
Actual behavior
Does not work
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response