Skip to content

Issues with memory dumps and Single File App #107344

Open
@ppekrol

Description

@ppekrol

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

  1. 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");
  1. Publish dotnet publish -c Release /p:PublishSingleFile=true and run
  2. dotnet-dump collect -p PID --type Triage
  3. Open VS and click Debug with Managed Only
    image
  4. 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions