Captured memory dump of MSIX packaged app, doesn't contain threads and call stack information (again)

オープン
#5,828 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@tommcdon がすでに取り組んでいます。

2026年5月5日 から。

評価

この issue はまだ評価されていません。

説明

bug tracking-external-issue

I am reproducing the same issue as https://github.com/dotnet/diagnostics/issues/4833 (cc @ekalchev):

Mini memory dumps captured with different tools (CrashRpt, dotnet-dump.exe both using MiniDumpWriteDump WINAPI call) of a .NET self-contained MSIX packaged process doesn't have managed thread and managed callstack information, unless Full memory dump is captured.

My 5 cents: I fear this is due to a MSIX "security limitation" that disallows other packaged or unpackaged processes to LoadLibrary DLLs from the MSIX app directory. AFAIK MiniDumpWriteDump tries to load some "DAC DLL" from the app directory, which would normally enrich the dump with the necessary information. If that DLL cannot be loaded, the dump will not get any managed information etc. That's just my first guess, which I hope is not true, because it would mean that is a Windows limitation.

Steps to reproduce:
  1. Install and run a .NET MSIX packaged app
    easy to reproduce: download WinUI 3 Gallery app from Microsoft Store
    otherwise: Deploy the packaged application (do not run it from Visual Studio). It must be deployed in WindowsApp directory
  2. Capture a memory dump with dotnet-dump.exe using any of the following commands
dotnet-dump collect -p <pid> --type mini
dotnet-dump collect -p <pid> --type triage
dotnet-dump collect -p <pid> --type heap
Expected:

Generated memory dumps to show CLR threads and call stacks when loaded in Visual Studio or WinDbg

Actual:

Generated memory dumps doesn't show CLR threads and call stacks

Notes:

This problem is only present when the app is packaged as MSIX. I ran multiple test setups for the same app and the packing type is what triggers this issue. Same app packaged as MSI doesn't have those problems.

Also using dotnet-dump collect -p <pid> --type full resolve the problem but it creates dumps, that are very big andunpractical to use for diagnostic for crashes from client machines.

When I run WinDbg command on one of the memory dumps that suffer from the bug i see this error

!clrthreads
Failed to request ThreadStore

Visual Studio show this error message in the console
The minidump has no heap. Managed minidump debugging will have limited data inspection.

主要言語
C++
スター
1.3k
フォーク
407
平均マージ
21時間 5分
マージ済み PR(30日)
78

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/diagnostics のほかの issue

dotnet/diagnostics の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。