You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dotnet dump creates empty file for process not running managed code #3064
A nit, but it would be more helpful to error with "Process {pid} is not executing managed code." or something similar.
C:\temp> notepad
C:\temp>dotnet dump collect -p 636
Writing full to C:\temp\dump_20220511_104610.dmp
Complete
C:\temp>dir *4610*
Volume in drive C has no label.
Volume Serial Number is 28B3-5CB5
Directory of C:\temp
05/11/2022 10:46 AM 0 dump_20220511_104610.dmp
1 File(s) 0 bytes
0 Dir(s) 98,358,513,664 bytes free
dotnet-dump collect on Windows just calls MiniDumpWriteDump to generate the dump. There isn't a lot we can do to detect that there is no managed code, but there must be something else going on because you should have still have gotten a partial dump anyway even if it isn't a .NET process.
Activity
mikem8361 commentedon May 11, 2022
This is related to improving dotnet-dump's error messages: dotnet/runtime#54521
mikem8361 commentedon May 21, 2022
dotnet-dump collect on Windows just calls MiniDumpWriteDump to generate the dump. There isn't a lot we can do to detect that there is no managed code, but there must be something else going on because you should have still have gotten a partial dump anyway even if it isn't a .NET process.