platform/core/dotnet/diagnostics.git
2 years agoUpdate dependencies from https://github.com/microsoft/clrmd build 20230316.2 (#3759)
dotnet-maestro[bot] [Fri, 17 Mar 2023 13:28:45 +0000 (13:28 +0000)]
Update dependencies from https://github.com/microsoft/clrmd build 20230316.2 (#3759)

[main] Update dependencies from microsoft/clrmd

2 years agoUpdate dependencies from https://github.com/dotnet/aspnetcore build 20230317.1 (...
dotnet-maestro[bot] [Fri, 17 Mar 2023 13:27:29 +0000 (13:27 +0000)]
Update dependencies from https://github.com/dotnet/aspnetcore build 20230317.1 (#3758)

[main] Update dependencies from dotnet/aspnetcore

2 years agoUpdate dependencies from https://github.com/microsoft/clrmd build 20230315.1 (#3754)
dotnet-maestro[bot] [Thu, 16 Mar 2023 15:26:58 +0000 (08:26 -0700)]
Update dependencies from https://github.com/microsoft/clrmd build 20230315.1 (#3754)

Microsoft.Diagnostics.Runtime , Microsoft.Diagnostics.Runtime.Utilities
 From Version 3.0.0-beta.23164.1 -> To Version 3.0.0-beta.23165.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Thu, 16 Mar 2023 13:44:22 +0000 (13:44 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230315.1 (#3755)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/aspnetcore build 20230315.6 (...
dotnet-maestro[bot] [Thu, 16 Mar 2023 13:21:59 +0000 (13:21 +0000)]
Update dependencies from https://github.com/dotnet/aspnetcore build 20230315.6 (#3753)

[main] Update dependencies from dotnet/aspnetcore

2 years agoAdd AssemblyLoadContext for loading extensions (#3649)
Mike McLaughlin [Wed, 15 Mar 2023 22:46:08 +0000 (15:46 -0700)]
Add AssemblyLoadContext for loading extensions (#3649)

* Add AssemblyLoadContext for loading extensions

Add and use ServiceManager.NotifyExtensionLoadFailure event.

Replace Provider scope with ProviderExport attribute

Removing the DAC or DBI check in GetLocalPath() keeps invalid DACs or DBIs
from being loaded if in the current directory. The download path will find
a DAC in the same directory as the core dump when under dotnet-dump.

Update extensibility doc

* Update to 7.0.3 and 6.0.14

* Change the context service ordering to prevent creating runtimes if not needed

* Fix analyzer issues

* Fix overflow in WebApp tests

* Code review feedback

* Fix desktop SOS tests

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Wed, 15 Mar 2023 13:52:17 +0000 (13:52 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230314.1 (#3752)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years ago[main] Update dependencies from dotnet/aspnetcore (#3744)
dotnet-maestro[bot] [Wed, 15 Mar 2023 13:24:47 +0000 (13:24 +0000)]
[main] Update dependencies from dotnet/aspnetcore (#3744)

[main] Update dependencies from dotnet/aspnetcore

2 years agoAdd a way to filter !eeheap (#3750)
Lee Culver [Wed, 15 Mar 2023 00:49:46 +0000 (17:49 -0700)]
Add a way to filter !eeheap (#3750)

* Add a way to filter !eeheap

- !eeheap now only operates on the currently selected runtime (again)
- Maoni requested a feature where we can give filters to !eeheap, as its output can be too long and detailed on larger dumps
- Added the same -segment, -heap, and [memory, range] arguments to !eeheap to filter the output down to the requested ranges, segments, or heaps.
- Loader/Modules heaps will also be filtered by "[memory, range]" (not not -heap and -segment).
- Changed "Total" to "Partial" whenever we filter the heap.  e.g. 'Total bytes consumed by CLR' -> 'Partial bytes consumed by CLR'.

* Add DML to !eeheap -gc

* Fix format mistake

2 years agoImprove/reimplement !listnearobj and !gcwhere (#3748)
Lee Culver [Wed, 15 Mar 2023 00:49:20 +0000 (17:49 -0700)]
Improve/reimplement !listnearobj and !gcwhere (#3748)

* Update ClrMD version

* Add !gcwhere, !listnearobj commands

* Update ListNearObjCommand.cs

* Use C# versions, remove dead code

* Fix command name

* Output fixes

* Fix build warning

* Test fixes

2 years agoUpdate dependencies from https://github.com/microsoft/clrmd build 20230313.4 (#3745)
dotnet-maestro[bot] [Tue, 14 Mar 2023 17:46:55 +0000 (17:46 +0000)]
Update dependencies from https://github.com/microsoft/clrmd build 20230313.4 (#3745)

[main] Update dependencies from microsoft/clrmd

2 years agoReimplement !dumpheap and !verifyheap in C# (#3738)
Lee Culver [Tue, 14 Mar 2023 17:30:22 +0000 (10:30 -0700)]
Reimplement !dumpheap and !verifyheap in C# (#3738)

* C# !verifyheap implementation

* Bump ClrMD version

* Add DML support to TableOutput

* Add Segment filter, clean up parsing

* Cleanups

* Allow cancellation

* Remove test code, cleanup

* Add SimulateGCHeapCorruption

* Output improvements

* Update VerifyHeapCommand.cs

* Add class to filter segments and objects

* Initial DumpHeap command

* Initial !dumpheap implementation

Still needs -thinlocks and -string.

* Cleanups and timer output

* Add -strings support

* Update C++ commands to use C# verify/dump heap

* CodeFormatting fixes

* Better Sanitize method

Co-authored-by: Günther Foidl <gue@korporal.at>
* Fix Span issue

Co-authored-by: Günther Foidl <gue@korporal.at>
* Fix a few warnings

* Use pattern matching in FileLoggingConsoleService

* Update ClrMD version

* Remove accidental include

* Implement !dumpheap -thinlock

* Fix CommandLine parsing

* Handle invalid objects

* Test fixes

* Add back MINIDUMP_NOT_SUPPORTED

* Fix concurrent dictionary tests

* Fix DECVAL

* Fix DECVAL again

* Fix !verifyheap failures

* Fix coding style

* Code review feedback

* Fix !dumpobj format

* Fix DML issues

---------

Co-authored-by: Günther Foidl <gue@korporal.at>
2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Tue, 14 Mar 2023 13:48:08 +0000 (13:48 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230313.2 (#3747)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/symstore build 20230313.1 (#3746)
dotnet-maestro[bot] [Tue, 14 Mar 2023 13:22:59 +0000 (13:22 +0000)]
Update dependencies from https://github.com/dotnet/symstore build 20230313.1 (#3746)

[main] Update dependencies from dotnet/symstore

2 years agoUpdate dependencies from https://github.com/microsoft/clrmd build 20230311.5 (#3740)
dotnet-maestro[bot] [Sun, 12 Mar 2023 18:49:44 +0000 (18:49 +0000)]
Update dependencies from https://github.com/microsoft/clrmd build 20230311.5 (#3740)

[main] Update dependencies from microsoft/clrmd

2 years agoUpdate dependencies from https://github.com/dotnet/aspnetcore build 20230310.17 ...
dotnet-maestro[bot] [Sat, 11 Mar 2023 14:20:06 +0000 (14:20 +0000)]
Update dependencies from https://github.com/dotnet/aspnetcore build 20230310.17 (#3739)

[main] Update dependencies from dotnet/aspnetcore

2 years agoAdd analyzers, fix issues detected by them, style enforcement, and some misc bugs...
Juan Hoyos [Sat, 11 Mar 2023 01:00:25 +0000 (17:00 -0800)]
Add analyzers, fix issues detected by them, style enforcement, and some misc bugs in SOSRunner (#3721)

Enforcement of style to be consistent with dotnet/runtime.
Enable more analyzers that are compliant with SDL requirements.
Misc bug fixes around sync contexts and async IO.
Use some utility methods available in .NET 6 when possible.

2 years agoUpdate dependencies from https://github.com/microsoft/clrmd build 20230309.7 (#3734)
dotnet-maestro[bot] [Fri, 10 Mar 2023 19:25:10 +0000 (19:25 +0000)]
Update dependencies from https://github.com/microsoft/clrmd build 20230309.7 (#3734)

[main] Update dependencies from microsoft/clrmd

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Fri, 10 Mar 2023 18:47:29 +0000 (18:47 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230309.2 (#3735)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/aspnetcore build 20230309.10 ...
dotnet-maestro[bot] [Fri, 10 Mar 2023 18:43:45 +0000 (18:43 +0000)]
Update dependencies from https://github.com/dotnet/aspnetcore build 20230309.10 (#3733)

[main] Update dependencies from dotnet/aspnetcore

2 years agoUpdate dependencies from https://github.com/dotnet/aspnetcore build 20230309.2 (...
dotnet-maestro[bot] [Thu, 9 Mar 2023 14:36:16 +0000 (14:36 +0000)]
Update dependencies from https://github.com/dotnet/aspnetcore build 20230309.2 (#3731)

[main] Update dependencies from dotnet/aspnetcore

2 years agoUpdate dependencies from https://github.com/microsoft/clrmd build 20230309.1 (#3732)
dotnet-maestro[bot] [Thu, 9 Mar 2023 14:26:18 +0000 (14:26 +0000)]
Update dependencies from https://github.com/microsoft/clrmd build 20230309.1 (#3732)

[main] Update dependencies from microsoft/clrmd

2 years ago[main] Update dependencies from microsoft/clrmd (#3723)
dotnet-maestro[bot] [Thu, 9 Mar 2023 04:57:27 +0000 (20:57 -0800)]
[main] Update dependencies from microsoft/clrmd (#3723)

* Update dependencies from https://github.com/microsoft/clrmd build 20230306.2

Microsoft.Diagnostics.Runtime , Microsoft.Diagnostics.Runtime.Utilities
 From Version 3.0.0-beta.23155.1 -> To Version 3.0.0-beta.23156.2

* Updates for ClrMD 3.0 changes

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Lee Culver <leculver@microsoft.com>
2 years ago[Dotnet Monitor] Adding `SystemDiagnosticsMetrics` Trigger (#3697)
kkeirstead [Wed, 8 Mar 2023 22:03:30 +0000 (14:03 -0800)]
[Dotnet Monitor] Adding `SystemDiagnosticsMetrics` Trigger (#3697)

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Wed, 8 Mar 2023 14:37:46 +0000 (14:37 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230307.4 (#3729)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/aspnetcore build 20230307.27 ...
dotnet-maestro[bot] [Wed, 8 Mar 2023 14:22:18 +0000 (14:22 +0000)]
Update dependencies from https://github.com/dotnet/aspnetcore build 20230307.27 (#3728)

[main] Update dependencies from dotnet/aspnetcore

2 years agoHandle exception in System.Console.SetCursorPosition in some environments for dotnet...
Hyungju Lee [Wed, 8 Mar 2023 10:11:48 +0000 (19:11 +0900)]
Handle exception in System.Console.SetCursorPosition in some environments for dotnet-* tools (#3678)

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Tue, 7 Mar 2023 14:54:17 +0000 (14:54 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230306.5 (#3725)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/aspnetcore build 20230307.1 (...
dotnet-maestro[bot] [Tue, 7 Mar 2023 14:36:20 +0000 (14:36 +0000)]
Update dependencies from https://github.com/dotnet/aspnetcore build 20230307.1 (#3722)

[main] Update dependencies from dotnet/aspnetcore

2 years agoUpdate dependencies from https://github.com/dotnet/symstore build 20230306.2 (#3724)
dotnet-maestro[bot] [Tue, 7 Mar 2023 14:22:18 +0000 (14:22 +0000)]
Update dependencies from https://github.com/dotnet/symstore build 20230306.2 (#3724)

[main] Update dependencies from dotnet/symstore

2 years agoRename COMPlus_ to DOTNET_ (#3712)
Adeel Mujahid [Mon, 6 Mar 2023 22:23:10 +0000 (00:23 +0200)]
Rename COMPlus_ to DOTNET_ (#3712)

* Rename COMPlus_ to DOTNET_

* Add WithRuntimeConfiguration

* Add a comment

* Update documentation/FAQ.md

2 years ago[main] Update dependencies from dotnet/installer (#3719)
dotnet-maestro[bot] [Mon, 6 Mar 2023 21:10:38 +0000 (21:10 +0000)]
[main] Update dependencies from dotnet/installer (#3719)

[main] Update dependencies from dotnet/installer

 - Update single-file runtime version

2 years ago[main] Update dependencies from microsoft/clrmd (#3717)
dotnet-maestro[bot] [Mon, 6 Mar 2023 20:22:47 +0000 (20:22 +0000)]
[main] Update dependencies from microsoft/clrmd (#3717)

[main] Update dependencies from microsoft/clrmd

 - ClrMD 3.0 interface fixes

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Mon, 6 Mar 2023 18:24:51 +0000 (18:24 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230306.1 (#3720)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/aspnetcore build 20230305.1 (...
dotnet-maestro[bot] [Mon, 6 Mar 2023 14:26:30 +0000 (14:26 +0000)]
Update dependencies from https://github.com/dotnet/aspnetcore build 20230305.1 (#3716)

[main] Update dependencies from dotnet/aspnetcore

2 years agoUpdate dependencies from https://github.com/dotnet/runtime build 20230305.1 (#3713)
dotnet-maestro[bot] [Sun, 5 Mar 2023 14:11:20 +0000 (14:11 +0000)]
Update dependencies from https://github.com/dotnet/runtime build 20230305.1 (#3713)

[main] Update dependencies from dotnet/runtime

2 years agoUpdate dependencies from https://github.com/dotnet/aspnetcore build 20230303.9 (...
dotnet-maestro[bot] [Sat, 4 Mar 2023 17:36:56 +0000 (09:36 -0800)]
Update dependencies from https://github.com/dotnet/aspnetcore build 20230303.9 (#3709)

Microsoft.AspNetCore.App.Ref , Microsoft.AspNetCore.App.Ref.Internal
 From Version 8.0.0-preview.3.23153.6 -> To Version 8.0.0-preview.3.23153.9

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Sat, 4 Mar 2023 17:36:39 +0000 (09:36 -0800)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230303.4 (#3711)

Microsoft.SourceBuild.Intermediate.source-build-reference-packages
 From Version 8.0.0-alpha.1.23152.1 -> To Version 8.0.0-alpha.1.23153.4

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2 years agoUpdate to ClrMD 3.0, ISOSDacInterface13 (#3675)
Lee Culver [Sat, 4 Mar 2023 17:15:28 +0000 (09:15 -0800)]
Update to ClrMD 3.0, ISOSDacInterface13 (#3675)

* Update dependencies from https://github.com/microsoft/clrmd build 20230219.1

Microsoft.Diagnostics.Runtime , Microsoft.Diagnostics.Runtime.Utilities
 From Version 2.3.411802 -> To Version 2.4.411901

* Use new ClrMD native heap enumeration code

* Clean up a few x86 issues

- Fixed !address header parsing on x86.
- Removed "Description" from DescribedRegion.  We now use .Usage instead.
- Added a "PrevRevionName" for heuristic tagging.

* Remove test code

* Update native SOS to work with ISOSDacInterface13

* Remove OrderBy

Removed test code.

* Use IsRuntimeVersion

* initial managed !eeheap implementation

* Remove native eeheap code

* Print total size of all heaps

* Reorder code

* Memory formatting

* Add original !eeheap args

* Minor compile issues

* Update ClrMD

* Fix minor build issues

* Fix parameter issue

* Output fixes

* GC Output Cleanup

* Fix width

* Fix reserve memory output

Accidently deleted .ReserveMemory when refactoring earlier.

* Rename EEHeap -> EEHeapCommand

* Remove uses of var

* Reuse runtimes

* Return ArrayPool buffer

* Update to ClrMD 3.0-beta

* Fix minor build issue

* Fix tests

* Update ClrMD version

* Fix a few command issues.

* Fix mismatched tag

* Fix pinned heap

* Fix ClrMD issue with .net 8 heaps pre-ISOSDacInterface13

* Fix ClrMD issue

* More version nonsense

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2 years agoUpdate dependencies from https://github.com/dotnet/runtime build 20230304.1 (#3710)
dotnet-maestro[bot] [Sat, 4 Mar 2023 14:13:45 +0000 (14:13 +0000)]
Update dependencies from https://github.com/dotnet/runtime build 20230304.1 (#3710)

[main] Update dependencies from dotnet/runtime

2 years agoUpdate dependencies from https://github.com/dotnet/aspnetcore build 20230303.6 (...
dotnet-maestro[bot] [Sat, 4 Mar 2023 00:35:28 +0000 (00:35 +0000)]
Update dependencies from https://github.com/dotnet/aspnetcore build 20230303.6 (#3708)

[main] Update dependencies from dotnet/aspnetcore

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Fri, 3 Mar 2023 14:38:15 +0000 (14:38 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230302.1 (#3707)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/runtime build 20230303.1 (#3706)
dotnet-maestro[bot] [Fri, 3 Mar 2023 14:27:09 +0000 (14:27 +0000)]
Update dependencies from https://github.com/dotnet/runtime build 20230303.1 (#3706)

[main] Update dependencies from dotnet/runtime

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Thu, 2 Mar 2023 15:04:30 +0000 (15:04 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230301.1 (#3704)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/runtime build 20230302.1 (#3703)
dotnet-maestro[bot] [Thu, 2 Mar 2023 14:32:53 +0000 (14:32 +0000)]
Update dependencies from https://github.com/dotnet/runtime build 20230302.1 (#3703)

[main] Update dependencies from dotnet/runtime

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Wed, 1 Mar 2023 17:37:00 +0000 (17:37 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230228.1 (#3702)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/runtime build 20230228.7 (#3701)
dotnet-maestro[bot] [Wed, 1 Mar 2023 17:31:21 +0000 (17:31 +0000)]
Update dependencies from https://github.com/dotnet/runtime build 20230228.7 (#3701)

[main] Update dependencies from dotnet/runtime

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Tue, 28 Feb 2023 19:02:37 +0000 (19:02 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230227.2 (#3695)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/runtime build 20230227.10 (#3694)
dotnet-maestro[bot] [Tue, 28 Feb 2023 14:47:00 +0000 (14:47 +0000)]
Update dependencies from https://github.com/dotnet/runtime build 20230227.10 (#3694)

[main] Update dependencies from dotnet/runtime

2 years agoUpdate dependencies from https://github.com/dotnet/symstore build 20230227.1 (#3693)
dotnet-maestro[bot] [Tue, 28 Feb 2023 14:46:47 +0000 (14:46 +0000)]
Update dependencies from https://github.com/dotnet/symstore build 20230227.1 (#3693)

[main] Update dependencies from dotnet/symstore

2 years agoFix the runtime version for single-file apps (#3688)
Mike McLaughlin [Tue, 28 Feb 2023 01:43:35 +0000 (17:43 -0800)]
Fix the runtime version for single-file apps (#3688)

Fallback to parsing the embeded version string for single-file apps if
ClrInfo.Version is null or invalid.

2 years agoFix build target architecture passing (#3692)
Juan Hoyos [Tue, 28 Feb 2023 00:50:52 +0000 (16:50 -0800)]
Fix build target architecture passing (#3692)

2 years ago[main] Update dependencies from dotnet/installer (#3691)
dotnet-maestro[bot] [Mon, 27 Feb 2023 22:06:27 +0000 (22:06 +0000)]
[main] Update dependencies from dotnet/installer (#3691)

[main] Update dependencies from dotnet/installer

 - Update single-file version

2 years ago[main] Update dependencies from dotnet/runtime (#3689)
dotnet-maestro[bot] [Mon, 27 Feb 2023 17:36:55 +0000 (17:36 +0000)]
[main] Update dependencies from dotnet/runtime (#3689)

[main] Update dependencies from dotnet/runtime

2 years agoSmall change to dev container setup. (#3686)
Jarret Shook [Sat, 25 Feb 2023 18:13:26 +0000 (10:13 -0800)]
Small change to dev container setup. (#3686)

Updates it to work with the newer vs code releases, and in addition, adds --priviledged to allow debugging SOS under the devcontainer.

Note: for arm64 macs, running x64 container images can be run with:

devcontainer.json:
"runArgs": ["--platform=linux/amd64" ]

and `FROM --platform=linux/amd64 `
in the dockerfile

2 years ago[main] Update dependencies from dotnet/installer (#3673)
dotnet-maestro[bot] [Sat, 25 Feb 2023 06:59:49 +0000 (22:59 -0800)]
[main] Update dependencies from dotnet/installer (#3673)

* Update dependencies from https://github.com/dotnet/installer build 20230217.18

Microsoft.Dotnet.Sdk.Internal
 From Version 8.0.100-preview.2.23113.1 -> To Version 8.0.100-preview.2.23117.18

* Update 8.0 single-file

* Update runtime versions

* Update installer version

* Fix dcd command for .NET 8.0

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Fri, 24 Feb 2023 14:49:08 +0000 (14:49 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230223.2 (#3685)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoFix propogating BuildArch. (#3684)
Jarret Shook [Thu, 23 Feb 2023 22:57:39 +0000 (14:57 -0800)]
Fix propogating BuildArch. (#3684)

This will place the bin folder for arm64/arm/x86 builds in the correct path.

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Thu, 23 Feb 2023 14:39:49 +0000 (14:39 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230222.2 (#3683)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Wed, 22 Feb 2023 14:40:09 +0000 (14:40 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230221.2 (#3680)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/symstore build 20230221.1 (#3679)
dotnet-maestro[bot] [Wed, 22 Feb 2023 14:24:02 +0000 (14:24 +0000)]
Update dependencies from https://github.com/dotnet/symstore build 20230221.1 (#3679)

[main] Update dependencies from dotnet/symstore

2 years agoEnable per provider filtering (#3639)
Wiktor Kopec [Wed, 22 Feb 2023 01:00:26 +0000 (17:00 -0800)]
Enable per provider filtering (#3639)

* Enable per provider filtering

* Pr feedback

* Remove unnecessary using directives

2 years agoUpdate dependencies from https://github.com/dotnet/symstore build 20230220.1 (#3676)
dotnet-maestro[bot] [Tue, 21 Feb 2023 18:43:45 +0000 (18:43 +0000)]
Update dependencies from https://github.com/dotnet/symstore build 20230220.1 (#3676)

[main] Update dependencies from dotnet/symstore

2 years agoAdd sosreset/sosflush commands/aliases (#3650)
Mike McLaughlin [Tue, 21 Feb 2023 17:38:45 +0000 (09:38 -0800)]
Add sosreset/sosflush commands/aliases (#3650)

* Add sosreset/sosflush commands/aliases

* Code review feedback: remove sosreset

* Add export

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Tue, 21 Feb 2023 14:47:18 +0000 (14:47 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230220.2 (#3677)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Mon, 20 Feb 2023 19:17:52 +0000 (19:17 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230220.1 (#3674)

[main] Update dependencies from dotnet/source-build-reference-packages

 - Merge branch 'main' into darc-main-94f0c455-b19b-4ace-9fde-8fe43445c8b3

2 years agoUpdate dependencies from https://github.com/dotnet/arcade build 20230218.1 (#3671)
dotnet-maestro[bot] [Mon, 20 Feb 2023 14:22:10 +0000 (14:22 +0000)]
Update dependencies from https://github.com/dotnet/arcade build 20230218.1 (#3671)

[main] Update dependencies from dotnet/arcade
- Coherency Updates:
  - Microsoft.SourceLink.GitHub: from 1.2.0-beta-23109-02 to 1.2.0-beta-23117-02 (parent: Microsoft.DotNet.Arcade.Sdk)

2 years agoUpdate dependencies from https://github.com/microsoft/clrmd build 20230218.2 (#3670)
dotnet-maestro[bot] [Sun, 19 Feb 2023 21:15:03 +0000 (13:15 -0800)]
Update dependencies from https://github.com/microsoft/clrmd build 20230218.2 (#3670)

Microsoft.Diagnostics.Runtime , Microsoft.Diagnostics.Runtime.Utilities
 From Version 2.3.411301 -> To Version 2.3.411802

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Sat, 18 Feb 2023 14:36:32 +0000 (14:36 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230217.1 (#3669)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Fri, 17 Feb 2023 18:36:27 +0000 (18:36 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230216.3 (#3668)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agomaddress: Work around .Net 7 LoaderHeap traversal issue (#3666)
Lee Culver [Thu, 16 Feb 2023 23:26:43 +0000 (15:26 -0800)]
maddress: Work around .Net 7 LoaderHeap traversal issue (#3666)

* Work around issue with .Net 7 LoaderHeap traversal

Fixes an issue introduced in https://github.com/dotnet/runtime/pull/67885.

.Net 7 will treat LoaderHeaps as ExplicitControlLoaderHeap, which is only true for the loader heaps used for the JIT.  Currently we only check for .Net 7, because I'm hoping we can put a fix in for .Net 8.

We don't have direct usage of these APIs in ClrMD, but since we now have to work around this behavior it'll be better to put this logic directly into ClrMD instead of having multiple copies of this workaround floating around.

Since I'm not doing ClrMD feature work right now, I'm directly working around this issue here.

* Slightly better tracing to find issues

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Thu, 16 Feb 2023 14:58:10 +0000 (14:58 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230215.1 (#3664)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoMissing memory improvements (#3662)
Lee Culver [Thu, 16 Feb 2023 02:36:26 +0000 (18:36 -0800)]
Missing memory improvements (#3662)

* Improve native memory commands when missing memory

I made a few improvements from using this on a couple of investigations.

We now print a warning when we notice that regions we know exist in memory are missing from IMemoryRegionService.  This shouldn't happen on Windows, but in ELF dumps we do not have a debug stream describing memory...we only use what was put into the coredump as the known memory regions.

We now split up VirtualAlloc regions when we go to tag CLR memory regions.  CLR might VirtualAlloc one big chunk and sub-divide it into its own regions.  Note that MAddress isn't actually trying to show VirtualAlloc/memmap addresses (just use !address for that), instead it's trying to take what !address knows and annotate more information.

* Add [] around MEM_RESERVE and MEM_FREE to better distinguish them

* Remove Index

Remove some dead code.

* Documentation edits

2 years agoUpdate dependencies from https://github.com/dotnet/symstore build 20230214.1 (#3660)
dotnet-maestro[bot] [Wed, 15 Feb 2023 19:07:04 +0000 (19:07 +0000)]
Update dependencies from https://github.com/dotnet/symstore build 20230214.1 (#3660)

[main] Update dependencies from dotnet/symstore

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Wed, 15 Feb 2023 18:28:25 +0000 (18:28 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230214.2 (#3661)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoAllow larger single file apps debugging in DbgShim (#3659)
mikelle-rogers [Wed, 15 Feb 2023 01:38:58 +0000 (17:38 -0800)]
Allow larger single file apps debugging in DbgShim (#3659)

Remove check in dbgshim.cpp to ensure the file is less than 100 MB. This allows single file apps with larger sizes to be debugged under a managed debugger.

2 years agoStackFrame.cs null handling (#3653)
Igor Bagdamyan [Tue, 14 Feb 2023 19:42:38 +0000 (22:42 +0300)]
StackFrame.cs null handling (#3653)

* StackFrame.cs null handling

* CR: account for a case where Method can be null and remove null check

2 years agoUpdate dependencies from https://github.com/microsoft/clrmd build 20230213.1 (#3655)
dotnet-maestro[bot] [Tue, 14 Feb 2023 18:15:45 +0000 (18:15 +0000)]
Update dependencies from https://github.com/microsoft/clrmd build 20230213.1 (#3655)

[main] Update dependencies from microsoft/clrmd

2 years agoAdd native memory analysis helper commands (#3647)
Lee Culver [Tue, 14 Feb 2023 17:42:26 +0000 (09:42 -0800)]
Add native memory analysis helper commands (#3647)

* Define and implement IMemoryRegionService

* Add !maddress

Added !maddress and the helpers used to implement it.

* Add MAddressCommand help and helpers

* Add !gctonative

* Add argument checks

* Fix Width

* Remove empty line

* Add !findpointersin

* Initial code review feedback

* Use CommandBase instead of ExtensionCommandBase

* Split MAddressCommand into two clases

- One class for the command.
- One class for shared components.

* Fix help invoke

* Command fixes

- Added MAddressCommand's missing property.
- Added sealed to a few classes

* Fix !findpointersin perf

* Add IModuleSymbol.GetSymbolStatus

- Remove reference to SOSHosting from ExtensionCommands.
- No longer provide IDebug* services.

* Don't use IDataReader

Code review feedback, use built in services.

* Use DebuggerServices.DebugClient

Avoid double COM startup.

* Add missing file from last commit

DebuggerServices was not saved.

* Use ServiceExport/Import for NativeAddressHelper

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Tue, 14 Feb 2023 15:05:43 +0000 (15:05 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230213.1 (#3657)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/symstore build 20230213.1 (#3656)
dotnet-maestro[bot] [Tue, 14 Feb 2023 14:37:38 +0000 (14:37 +0000)]
Update dependencies from https://github.com/dotnet/symstore build 20230213.1 (#3656)

[main] Update dependencies from dotnet/symstore

2 years agoUpdate dependencies from https://github.com/dotnet/arcade build 20230210.3 (#3651)
dotnet-maestro[bot] [Mon, 13 Feb 2023 18:36:56 +0000 (18:36 +0000)]
Update dependencies from https://github.com/dotnet/arcade build 20230210.3 (#3651)

[main] Update dependencies from dotnet/arcade
- Coherency Updates:
  - Microsoft.SourceLink.GitHub: from 1.2.0-beta-23066-01 to 1.2.0-beta-23109-02 (parent: Microsoft.DotNet.Arcade.Sdk)

2 years agoUpdate dependencies from https://github.com/dotnet/installer build 20230213.1 (#3652)
dotnet-maestro[bot] [Mon, 13 Feb 2023 14:30:07 +0000 (14:30 +0000)]
Update dependencies from https://github.com/dotnet/installer build 20230213.1 (#3652)

[main] Update dependencies from dotnet/installer

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Sat, 11 Feb 2023 14:45:57 +0000 (14:45 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230210.3 (#3648)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoAdd service manager and reflection based service discovery (#3448)
Mike McLaughlin [Sat, 11 Feb 2023 02:19:30 +0000 (18:19 -0800)]
Add service manager and reflection based service discovery (#3448)

* Add service manager and reflection based service discovery

Add GetTargetId to native ITarget

Load service and command assemblies from directory.

Add LoadExtensions

Add IRuntimeProvider interface that allows IRuntime implementations to be added to the IRuntimeService.

Support multiple service instances for IRuntimeProvider. Added IServiceProvider.GetServices() extension method to get them.

Added the ContextService.ContextServiceProvider to deal with the context service's special needs.

Added the ServiceImportAttribute support. There are Utilities helper functions that process this attribute.

Add IHost.OnTargetCreate event. Removed IHost.DestroyTarget and add ITarget.Destroy. Allows the context and other services
to managed state when targets come, go and flush. Makes target destruction more explicit by the implementations.

Use the ServiceImportAttribute in commands. Add "Optional" ServiceImportAttribute flag.

Add IServiceProviderManager interface to abstract the ServiceProvider functions.

Add as a service the PEModule wrapper around PEReader, ElfModule around ElfFile and MachOModule around MachOFile.

Pass IServiceProvider to constructors instead of using ITarget.Services. This removes the recursion from the ImageMappingMemoryService and MetdataMappingMemoryService.

Update extensibility doc

Add starting runtime id to runtime providers

Add native type/field interfaces/impls

Add WriteLine() to CommandBase and console service extensions.

Fix module Version property.

Fix testasset xml generation and repackaging scripts

Update symstore version

Update test assets version

* Add switch by id to `runtimes` command

* Catch load exceptions

* Change to loading extensions from the tool/host install directory

* Code review feedback

* Undo some of the code review feedback

* Code review feedback

Removed weird this parameter from IServiceContainer.DisposeServices(). Use RemoveServices() to prevent recursion.

Removed IServiceContainer.GetCachedService extension method and call IServiceContainer.TryGetCachedService directly.

* More Code review feedback

* More code review feedback

* More code review changes

* Add provider registration support to service manager

Instead of supporting multiple instances of the same service type, this change allows
services to get "provider" factories registered up the Provider scope.  This simplifies
the service container implementation.

Add EnumerateProviderFactories to IServiceManager.

* Allow ServiceImportAttribute on method and constructor parameters to control the Optional metadata flag.

* Code review feedback

* CR feedback: Better PEModule, ELFModule and MachOModule service implementation

The service container no longer exposes itself to services.

* CR feedback: cleanup service manager's global/context container support

* Refactor IServiceContainer to ServiceContainerFactory and ServiceContainer

Remove interface and put implementations in DebugServices.

* Code review feedback

* Code review

2 years ago[main] Update dependencies from dotnet/arcade (#3592)
dotnet-maestro[bot] [Thu, 9 Feb 2023 21:03:58 +0000 (13:03 -0800)]
[main] Update dependencies from dotnet/arcade (#3592)

* Update dependencies from https://github.com/dotnet/arcade build 20230105.3

Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.22630.1 -> To Version 8.0.0-beta.23055.3

Dependency coherency updates

Microsoft.SourceLink.GitHub
 From Version 1.2.0-beta-22518-02 -> To Version 1.2.0-beta-23054-02 (parent: Microsoft.DotNet.Arcade.Sdk

* Update dependencies from https://github.com/dotnet/arcade build 20230108.1

Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.22630.1 -> To Version 8.0.0-beta.23058.1

Dependency coherency updates

Microsoft.SourceLink.GitHub
 From Version 1.2.0-beta-22518-02 -> To Version 1.2.0-beta-23054-02 (parent: Microsoft.DotNet.Arcade.Sdk

* Update dependencies from https://github.com/dotnet/arcade build 20230113.7

Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.22630.1 -> To Version 8.0.0-beta.23063.7

Dependency coherency updates

Microsoft.SourceLink.GitHub
 From Version 1.2.0-beta-22518-02 -> To Version 1.2.0-beta-23062-02 (parent: Microsoft.DotNet.Arcade.Sdk

* Update dependencies from https://github.com/dotnet/arcade build 20230117.5

Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.22630.1 -> To Version 8.0.0-beta.23067.5

Dependency coherency updates

Microsoft.SourceLink.GitHub
 From Version 1.2.0-beta-22518-02 -> To Version 1.2.0-beta-23066-01 (parent: Microsoft.DotNet.Arcade.Sdk

* Update MicrosoftSourceLinkGitHubVersion version

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Mike McLaughlin <mikem@microsoft.com>
2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Thu, 9 Feb 2023 14:48:00 +0000 (14:48 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230208.1 (#3646)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years ago[main] Update dependencies from dotnet/installer (#3645)
dotnet-maestro[bot] [Thu, 9 Feb 2023 07:14:07 +0000 (23:14 -0800)]
[main] Update dependencies from dotnet/installer (#3645)

* Update dependencies from https://github.com/dotnet/installer build 20230208.9

Microsoft.Dotnet.Sdk.Internal
 From Version 7.0.103-servicing.23073.22 -> To Version 8.0.100-preview.2.23108.9

* Update version files and fix CLI build configuration

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Mike McLaughlin <mikem@microsoft.com>
2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Thu, 9 Feb 2023 01:31:00 +0000 (01:31 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230207.2 (#3643)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoRemove redundant NuGet package dependencies. (#3638)
Theodore Tsirpanis [Wed, 8 Feb 2023 23:21:44 +0000 (01:21 +0200)]
Remove redundant NuGet package dependencies. (#3638)

* Do not reference `Microsoft.Bcl.AsyncInterface` on .NET 6.

2 years agoAdd .NET 8.0 testing (#3633)
Mike McLaughlin [Tue, 7 Feb 2023 18:16:03 +0000 (10:16 -0800)]
Add .NET 8.0 testing (#3633)

* Add .NET 8.0 testing

Enable DumpGen and ConcurrentDictionaries tests on cdb and lldb. This involved some
small changes and hacks (like assuming the cdb prompt is always "0:000>".

Add script to disable DAC signature checks for Windows legs (not used for now).

Add dump generation xunit fixture to set reg key values.

Better card table error message

* Update versions

* Code review feedback

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Tue, 7 Feb 2023 14:33:10 +0000 (14:33 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230206.4 (#3641)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/symstore build 20230206.1 (#3640)
dotnet-maestro[bot] [Tue, 7 Feb 2023 14:21:01 +0000 (14:21 +0000)]
Update dependencies from https://github.com/dotnet/symstore build 20230206.1 (#3640)

[main] Update dependencies from dotnet/symstore

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Sat, 4 Feb 2023 19:02:36 +0000 (19:02 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230203.1 (#3637)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Fri, 3 Feb 2023 14:39:58 +0000 (14:39 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230202.3 (#3636)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate dependencies from https://github.com/dotnet/source-build-reference-packages...
dotnet-maestro[bot] [Thu, 2 Feb 2023 14:42:05 +0000 (14:42 +0000)]
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20230201.3 (#3634)

[main] Update dependencies from dotnet/source-build-reference-packages

2 years agoUpdate major version to 7.0 (#3629)
Juan Hoyos [Wed, 1 Feb 2023 19:34:57 +0000 (11:34 -0800)]
Update major version to 7.0 (#3629)

2 years agoCap node processing at 10mil and log issue (#3628)
Juan Hoyos [Wed, 1 Feb 2023 18:32:31 +0000 (10:32 -0800)]
Cap node processing at 10mil and log issue (#3628)

Return to pre-large heap support cap of 10 million nodes. Prior to #3475 we capped analysis at 10M nodes. After removing the cap, we often find issues in processing data. There's often an imbalance between node's edge count and the number of available edges. The problem is this error yields no gcdump, so we're adding the cap back until the edge imbalance can be figured out or the dumper can be made resilient. This still hides the buggy behavior around large graphs until it gets further investigation.

2 years agoUpdate dependencies from https://github.com/dotnet/symstore build 20230131.1 (#3630)
dotnet-maestro[bot] [Wed, 1 Feb 2023 17:56:11 +0000 (17:56 +0000)]
Update dependencies from https://github.com/dotnet/symstore build 20230131.1 (#3630)

[main] Update dependencies from dotnet/symstore

2 years agoUpdated default runtime version in dotnet-counters and add support up to 8.0 (#3627)
Daniel Ramos [Tue, 31 Jan 2023 22:24:58 +0000 (14:24 -0800)]
Updated default runtime version in dotnet-counters and add support up to 8.0 (#3627)

Co-authored-by: Juan Sebastian Hoyos Ayala <juan.s.hoyos@outlook.com>