Skip to content

Commit

Permalink
Merge main into release/stable (#3100)
Browse files Browse the repository at this point in the history
* Update dependencies from https://github.com/dotnet/aspnetcore build 20220406.3 (#2990)

[main] Update dependencies from dotnet/aspnetcore

* Update dependencies from https://github.com/dotnet/runtime build 20220406.5 (#2991)

[main] Update dependencies from dotnet/runtime

* Set the build ID using arcade's scripts instead of retrieving it from another job (#2993)

* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20220328.1 (#2967)

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

* Update dependencies from https://github.com/dotnet/arcade build 20220406.10 (#3000)

[main] Update dependencies from dotnet/arcade

* Update dependencies from https://github.com/dotnet/symstore build 20220410.1 (#3002)

Microsoft.SymbolStore
 From Version 1.0.320401 -> To Version 1.0.321001

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>

* Update dependencies from https://github.com/dotnet/installer build 20220410.6 (#3001)

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.104-servicing.22181.15 -> To Version 6.0.104-servicing.22210.6

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>

* Update dependencies from https://github.com/dotnet/symstore build 20220411.1 (#3007)

[main] Update dependencies from dotnet/symstore

* Update dependencies from https://github.com/dotnet/aspnetcore build 20220411.2 (#3006)

[main] Update dependencies from dotnet/aspnetcore

* Update dependencies from https://github.com/dotnet/runtime build 20220411.4 (#3008)

[main] Update dependencies from dotnet/runtime

* Update dependencies from https://github.com/dotnet/runtime build 20220412.7 (#3011)

[main] Update dependencies from dotnet/runtime

* Update dependencies from https://github.com/dotnet/symstore build 20220412.1 (#3010)

[main] Update dependencies from dotnet/symstore

* Rewrite DumpAsync in C# (#2964)

* Rewrite DumpAsync in C#

This rewrites the dumpasync command as a C# SOS extension.  Doing so makes the code easier to maintain and add features to in the future.  Along with the rewrite, a variety of requests for the feature have been satisfied:
- Added a "coalesced stacks" view (`--coalesce`) that coalesces stacks together to create a high-level view of the state of the process
- Improved filtering so that a specified filter (address, method table, substring) applies to any frame of a stack and not just to the top frame
- Improved stack stitching to always consider task objects from the heap and not just if `--tasks` was specified.  This helps to better connect state machines separated by constructs like Task.Run.
- Added synthesized frames to try to show what's being awaited in the case where the top frame is an async method.
- Added DML links for more things to better navigate through results.

* Fix tests

* Fix tests for DumpAsync on WebApp3

* Skip visiting tasks multiple times

* Special case completion sentinnel

* Only synthesize faux awaiter frame if the task is not completed.

* PR feedback

Co-authored-by: Juan Sebastian Hoyos Ayala <[email protected]>

* Update dependencies from https://github.com/dotnet/runtime build 20220413.11 (#3014)

Microsoft.NETCore.App.Runtime.win-x64 , VS.Redist.Common.NetCore.SharedFramework.x64.6.0
 From Version 6.0.5 -> To Version 6.0.5

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>

* Update dependencies from https://github.com/dotnet/aspnetcore build 20220413.12 (#3013)

[main] Update dependencies from dotnet/aspnetcore

* Use symstore retry changes in tests (#2968)

* Create clear error messages for dotnet-trace (#3012)

* Catch UnauthorizedAccessException, Win32Exception and simplify for loop

* altered to conventional C# style

* Set symstore HTTP retry count in all test cases (#3015)

* Set symstore HTTP retry count in all test cases

* Update src/Microsoft.Diagnostics.DebugServices/ISymbolService.cs

Co-authored-by: Juan Hoyos <[email protected]>

* Code review feedback

Co-authored-by: Juan Hoyos <[email protected]>

* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20220415.1 (#3016)

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

* Update dependencies from https://github.com/dotnet/arcade build 20220415.2 (#3017)

[main] Update dependencies from dotnet/arcade

* Update lldb instuctions (#3020)

Mostly just delete distro versions that are not supported for any supported .NET version.

* Use minipal in more places (#3019)

* Port minipal/getexepath.h from runtime repo

* Use ARRAY_SIZE from minipal in more places

* Fix C4996 warning on windows

* Introspect sys/auxv.h in SOS configuration

* Fix include

* [main] Update dependencies from dotnet/installer (#3018)

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

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.104-servicing.22210.6 -> To Version 6.0.105-servicing.22215.3

* Fix single-file runtime version

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Mike McLaughlin <[email protected]>

* Update dependencies from https://github.com/dotnet/symstore build 20220418.1 (#3022)

[main] Update dependencies from dotnet/symstore

* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20220419.2 (#3023)

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

* Create EventPipeFormat.md (#3024)

* Update dependencies from https://github.com/dotnet/arcade build 20220422.4 (#3027)

[main] Update dependencies from dotnet/arcade

* Update dependencies from https://github.com/dotnet/installer build 20220419.37 (#3028)

[main] Update dependencies from dotnet/installer

* dotent-trace report - account for missing symbol (#3021)

* Update dependencies from https://github.com/microsoft/clrmd build 20220426.1 (#3035)

[main] Update dependencies from microsoft/clrmd

* Write temp files to tempdir (#3031)

* update to use viewport-relative coordinates (#3034)

This fixes some rendering issues of dontet-counters, however, dotnet-counters renders incorrectly when: 
- terminal changes size while the tool is running
- terminal is not wide enough to print the output

As noted in #3036

* Update dependencies from https://github.com/dotnet/installer build 20220429.9 (#3038)

[main] Update dependencies from dotnet/installer

* Update dependencies from https://github.com/dotnet/arcade build 20220425.6 (#3037)

[main] Update dependencies from dotnet/arcade

* Update dependencies from https://github.com/dotnet/symstore build 20220502.1 (#3040)

[main] Update dependencies from dotnet/symstore

* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20220503.1 (#3043)

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

* Update dependencies from https://github.com/dotnet/aspnetcore build 20220503.6 (#3041)

[main] Update dependencies from dotnet/aspnetcore

* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20220504.3 (#3045)

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

* Update dependencies from https://github.com/dotnet/aspnetcore build 20220504.26 (#3044)

[main] Update dependencies from dotnet/aspnetcore

* Update dependencies from https://github.com/dotnet/aspnetcore build 20220505.18 (#3046)

[main] Update dependencies from dotnet/aspnetcore

* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20220505.1 (#3048)

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

* Update dependencies from https://github.com/microsoft/clrmd build 20220505.1 (#3047)

[main] Update dependencies from microsoft/clrmd

* Update EventPipeStress (#3049)

* Update dependencies from https://github.com/dotnet/arcade build 20220505.2 (#3052)

[main] Update dependencies from dotnet/arcade

* Update dependencies from https://github.com/dotnet/installer build 20220504.12 (#3053)

[main] Update dependencies from dotnet/installer

* Update dependencies from https://github.com/microsoft/clrmd build 20220509.1 (#3056)

[main] Update dependencies from microsoft/clrmd

* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20220509.4 (#3058)

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

* Update dependencies from https://github.com/dotnet/symstore build 20220509.1 (#3057)

[main] Update dependencies from dotnet/symstore

* Update dependencies from https://github.com/dotnet/aspnetcore build 20220509.8 (#3055)

[main] Update dependencies from dotnet/aspnetcore

* Port setsymbolserver command to C# (#3050)

* Port setsymbolserver command to C#

Fixes issue: #3032

Removes quite a bit of native and interop code.

Remove some noisy logging in success paths.

Rename ISymbolService.DownloadModule to DownloadModuleFile. Add ISymbolService.DownloadSymbolFile.

Rename some IModule properties to functions. Add IModule.LoadSymbols().

Fix MacOS test failures

Make setsymbolserver a global command

* Update dependencies from https://github.com/dotnet/aspnetcore build 20220510.8 (#3063)

[main] Update dependencies from dotnet/aspnetcore

* Enable SDL required warnings explicitly (#3054)

* Enable SDL required warnings explicitly
* Fix build issues that don't escape on failure properly

* Add devcontainer infra to diagnostics repo (#2986)

* Pass by reference (#3066)

* Update dependencies from https://github.com/dotnet/aspnetcore build 20220512.8 (#3070)

[main] Update dependencies from dotnet/aspnetcore

* Fix Typo (#3071)

* Misc dbgshim and SOS fixes (#3072)

* Fix some issues found with netcoredbg

* Fix some sign-extension issues on alpine arm32

* Fix DbgShim.UnitTest's Microsoft.Diagnostics.DbgShimAPI+NativeRuntimeStartupCallbackDelegate being called after collected by the GC

* Code review feedback

* [main] Update dependencies from dotnet/installer (#3076)

[main] Update dependencies from dotnet/installer


 - Update single-file version

* Update dependencies from https://github.com/dotnet/symstore build 20220516.1 (#3079)

[main] Update dependencies from dotnet/symstore

* Update dependencies from https://github.com/dotnet/arcade build 20220512.8 (#3075)

[main] Update dependencies from dotnet/arcade

* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20220511.1 (#3068)

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

* Update dependencies from https://github.com/dotnet/arcade build 20220519.3 (#3086)

[main] Update dependencies from dotnet/arcade

* Enable shipping dbgshim packages (#3088)

* Add error message to WriteDump response (#3084)

Add error message to WriteDump response

Add the new generate core dump command that can receive error text on failure.

Fix issue #2976

* Use Environment.GetFolderPath to obtain home directory (#3087)

* Use Environment.GetFolderPath to obtain home directory

* Format documents in changeset

* Update dependencies from https://github.com/dotnet/symstore build 20220523.1 (#3091)

[main] Update dependencies from dotnet/symstore

* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20220520.1 (#3085)

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

* SOS fixes for regions (#3062)

Noticed that DacpHeapSegmentData::Request doesn't set the highAllocMark for regions correctly, and that we haven't fixed GCHeapSnapshot::GetGeneration for regions yet.

Moved fix for highAllocMark into the DAC, but keep some logic here so things work correctly for older DACs with segments.

Fix more places where we need to use highAllocMark.

Kudos to @cshung for pointing out the better way to fix this!

* Update dependencies from https://github.com/dotnet/arcade build 20220526.1 (#3096)

[main] Update dependencies from dotnet/arcade

* Update dependencies from https://github.com/dotnet/installer build 20220527.1 (#3097)

[main] Update dependencies from dotnet/installer

* Update dependencies from https://github.com/dotnet/symstore build 20220530.1 (#3098)

[main] Update dependencies from dotnet/symstore

* Fix dbgshim's OpenVirtualProcess on windows arm64 (#3099)

Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Juan Hoyos <[email protected]>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Juan Sebastian Hoyos Ayala <[email protected]>
Co-authored-by: mikelle-rogers <[email protected]>
Co-authored-by: Dan Moseley <[email protected]>
Co-authored-by: Adeel Mujahid <[email protected]>
Co-authored-by: John Salem <[email protected]>
Co-authored-by: Andrew Au <[email protected]>
Co-authored-by: Martin-Molinero <[email protected]>
Co-authored-by: Peter Sollich <[email protected]>
  • Loading branch information
13 people committed Jun 1, 2022
1 parent 4859474 commit ab657cc
Show file tree
Hide file tree
Showing 18 changed files with 236 additions and 160 deletions.
20 changes: 10 additions & 10 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Dependencies>
<ProductDependencies>
<Dependency Name="Microsoft.SymbolStore" Version="1.0.326601">
<Dependency Name="Microsoft.SymbolStore" Version="1.0.328001">
<Uri>https://github.com/dotnet/symstore</Uri>
<Sha>073abc4f492cbc6795989e4a813b0d32017a8623</Sha>
<Sha>1ff51a5afa61af820a14b3aa84b401d1a79bc783</Sha>
</Dependency>
<Dependency Name="Microsoft.Diagnostics.Runtime" Version="2.0.325901">
<Uri>https://github.com/microsoft/clrmd</Uri>
Expand All @@ -12,25 +12,25 @@
<Uri>https://github.com/microsoft/clrmd</Uri>
<Sha>a64d9ac11086f28fbd4b2b2337c19be7826fbfa9</Sha>
</Dependency>
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="7.0.0-alpha.1.22261.1">
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="7.0.0-alpha.1.22270.1">
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
<Sha>c71ce108eda9f657c9f58a613a1fe56b6b08235d</Sha>
<Sha>3dbb19f76474f2f22749b2e64d34c15178381ffb</Sha>
<SourceBuild RepoName="source-build-reference-packages" ManagedOnly="true" />
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.22269.3">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.22276.1">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>0403b0d07aff1b103256cfbe082c97a5c8846d20</Sha>
<Sha>b8b67b243ba93bf9b89390c85b4dee034d3c5609</Sha>
<SourceBuild RepoName="arcade" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="7.0.0-beta.22269.3">
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="7.0.0-beta.22276.1">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>0403b0d07aff1b103256cfbe082c97a5c8846d20</Sha>
<Sha>b8b67b243ba93bf9b89390c85b4dee034d3c5609</Sha>
</Dependency>
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="6.0.106-servicing.22263.13">
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="6.0.106-servicing.22277.1">
<Uri>https://github.com/dotnet/installer</Uri>
<Sha>ee1b7085a6eb99c97851ed67fc3fd52b8bda3ba0</Sha>
<Sha>0632d08f8d604ed2a9ea697e88991b7f2ec68141</Sha>
</Dependency>
<Dependency Name="Microsoft.AspNetCore.App.Ref.Internal" Version="6.0.6-servicing.22262.8">
<Uri>https://github.com/dotnet/aspnetcore</Uri>
Expand Down
6 changes: 3 additions & 3 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<!-- The SDK runtime version used to build single-file apps (currently hardcoded) -->
<SingleFileRuntimeVersion>6.0.5</SingleFileRuntimeVersion>
<!-- Latest symstore version updated by darc -->
<MicrosoftSymbolStoreVersion>1.0.326601</MicrosoftSymbolStoreVersion>
<MicrosoftSymbolStoreVersion>1.0.328001</MicrosoftSymbolStoreVersion>
<!-- Runtime versions to test -->
<MicrosoftNETCoreApp31Version>3.1.18</MicrosoftNETCoreApp31Version>
<MicrosoftAspNetCoreApp31Version>$(MicrosoftNETCoreApp31Version)</MicrosoftAspNetCoreApp31Version>
Expand All @@ -31,7 +31,7 @@
<MicrosoftAspNetCoreAppRefInternalVersion>6.0.6-servicing.22262.8</MicrosoftAspNetCoreAppRefInternalVersion>
<MicrosoftAspNetCoreAppRefVersion>6.0.6</MicrosoftAspNetCoreAppRefVersion>
<!-- dotnet/installer: Testing version of the SDK. Needed for the signed & entitled host. -->
<MicrosoftDotnetSdkInternalVersion>6.0.106-servicing.22263.13</MicrosoftDotnetSdkInternalVersion>
<MicrosoftDotnetSdkInternalVersion>6.0.106-servicing.22277.1</MicrosoftDotnetSdkInternalVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Opt-in/out repo features -->
Expand All @@ -58,7 +58,7 @@
<SystemTextEncodingsWebVersion>4.7.2</SystemTextEncodingsWebVersion>
<SystemTextJsonVersion>4.7.1</SystemTextJsonVersion>
<XUnitAbstractionsVersion>2.0.3</XUnitAbstractionsVersion>
<MicrosoftDotNetRemoteExecutorVersion>7.0.0-beta.22269.3</MicrosoftDotNetRemoteExecutorVersion>
<MicrosoftDotNetRemoteExecutorVersion>7.0.0-beta.22276.1</MicrosoftDotNetRemoteExecutorVersion>
<cdbsosversion>10.0.18362</cdbsosversion>
<NewtonSoftJsonVersion>12.0.2</NewtonSoftJsonVersion>
</PropertyGroup>
Expand Down
4 changes: 4 additions & 0 deletions eng/common/tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,10 @@ function InitializeNativeTools() {
InstallDirectory = "$ToolsDir"
}
}
if (Test-Path variable:NativeToolsOnMachine) {
Write-Host "Variable NativeToolsOnMachine detected, enabling native tool path promotion..."
$nativeArgs += @{ PathPromotion = $true }
}
& "$PSScriptRoot/init-tools-native.ps1" @nativeArgs
}
}
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
},
"msbuild-sdks": {
"Microsoft.Build.NoTargets": "2.0.1",
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.22269.3"
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.22276.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ public string DefaultSymbolCache
}
else
{
_defaultSymbolCache = Path.Combine(Environment.GetEnvironmentVariable("HOME"), ".dotnet", "symbolcache");
_defaultSymbolCache = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".dotnet", "symbolcache");
}
}
return _defaultSymbolCache;
}
set
set
{
_defaultSymbolCache = value;
}
Expand Down Expand Up @@ -182,7 +182,7 @@ void ParseServer(int start)
symbolCachePaths.Add(DefaultSymbolCache);
}
}
else
else
{
symbolCachePaths.Add(parts[i]);
}
Expand Down Expand Up @@ -461,10 +461,10 @@ public ImmutableArray<byte> GetMetadata(string imagePath, uint imageTimestamp, u
}
}
}
catch (Exception ex) when
(ex is UnauthorizedAccessException ||
ex is BadImageFormatException ||
ex is InvalidVirtualAddressException ||
catch (Exception ex) when
(ex is UnauthorizedAccessException ||
ex is BadImageFormatException ||
ex is InvalidVirtualAddressException ||
ex is IOException)
{
Trace.TraceError($"GetMetaData: {ex.Message}");
Expand Down Expand Up @@ -493,7 +493,7 @@ public ISymbolFile OpenSymbolFile(string assemblyPath, bool isFileLayout, Stream
peStream = Utilities.TryOpenFile(assemblyPath);
if (peStream == null)
return null;

options = PEStreamOptions.Default;
}

Expand Down Expand Up @@ -606,7 +606,7 @@ private string DownloadPE(IModule module, KeyTypeFlags flags)
Trace.TraceWarning($"DownLoadPE: no key generated for module {fileName} ");
return null;
}
}
}
else if ((flags & KeyTypeFlags.SymbolKey) != 0)
{
IEnumerable<PdbFileInfo> pdbInfos = module.GetPdbFileInfos();
Expand Down Expand Up @@ -647,7 +647,7 @@ private string DownloadPE(IModule module, KeyTypeFlags flags)
return null;
}
}
else
else
{
throw new ArgumentException($"Key flag not supported {flags}");
}
Expand Down Expand Up @@ -829,7 +829,7 @@ private SymbolFile TryOpenReaderFromCodeView(PEReader peReader, DebugDirectoryEn
string pdbPath = data.Path;
Stream pdbStream = null;

if (assemblyPath != null)
if (assemblyPath != null)
{
try
{
Expand Down Expand Up @@ -916,7 +916,7 @@ private SymbolFile TryOpenReaderFromEmbeddedPdb(PEReader peReader, DebugDirector
public override string ToString()
{
StringBuilder sb = new StringBuilder();
ForEachSymbolStore<Microsoft.SymbolStore.SymbolStores.SymbolStore>((symbolStore) =>
ForEachSymbolStore<Microsoft.SymbolStore.SymbolStores.SymbolStore>((symbolStore) =>
{
if (symbolStore is HttpSymbolStore httpSymbolStore)
{
Expand Down Expand Up @@ -962,7 +962,7 @@ private void SetSymbolStore(Microsoft.SymbolStore.SymbolStores.SymbolStore store
}
}

private bool IsDuplicateSymbolStore<T>(Microsoft.SymbolStore.SymbolStores.SymbolStore symbolStore, Func<T, bool> match)
private bool IsDuplicateSymbolStore<T>(Microsoft.SymbolStore.SymbolStores.SymbolStore symbolStore, Func<T, bool> match)
where T : Microsoft.SymbolStore.SymbolStores.SymbolStore
{
while (symbolStore != null)
Expand Down Expand Up @@ -1006,7 +1006,7 @@ public void ForEachSymbolStore<T>(Action<T> callback)
/// <returns>Last component of path</returns>
internal static string GetFileName(string pathName)
{
int pos = pathName.LastIndexOfAny(new char[] { '/', '\\'});
int pos = pathName.LastIndexOfAny(new char[] { '/', '\\' });
if (pos < 0)
{
return pathName;
Expand All @@ -1019,11 +1019,11 @@ internal static string GetFileName(string pathName)
/// </summary>
private static bool IsPathEqual(string path1, string path2)
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return StringComparer.OrdinalIgnoreCase.Equals(path1, path2);
}
else
else
{
return string.Equals(path1, path2);
}
Expand Down
Loading

0 comments on commit ab657cc

Please sign in to comment.