dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.27k stars 4.73k forks source link

Error with running or building on 7.0.401/2 #93325

Closed swasheck closed 1 year ago

swasheck commented 1 year ago

Description

dotnet run or dotnet build fail with Fatal error. Internal CLR error. (0x80131506)

Reproduction Steps

Expected behavior

Expect an output of:

Hello, World!

Actual behavior

C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : Fatal error. Internal CLR error. (0x80131506) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.NetCore.Analyzers.InteropServices.PlatformCompatibilityAnalyzer+<>c__DisplayClass34_0.<AnalyzeOperat 
ionBlock>b__1(Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor+<>c__54`1[[System.__Canon, System.Private.CoreLib, Version 
=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<ExecuteBlockActions>b__54_1(System.ValueTuple`2<System.Action`1<Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext>,Microsoft.Co 
deAnalysis.Diagnostics.OperationBlockAnalysisContext>) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[[System.ValueTuple`2[[Syste 
m.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext, Microsoft.CodeAnalysis, Version=4.7 
.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, 
 System.Action`1<System.ValueTuple`2<System.__Canon,Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext>>, System.ValueTuple`2<System.__Canon,Microsoft.CodeAnalysis.Diagnostics.OperationBlock 
AnalysisContext>, System.Nullable`1<Microsoft.CodeAnalysis.Diagnostics.AnalysisContextInfo>, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows[[System.ValueTuple`2[[System.__Can 
on, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext, Microsoft.CodeAnalysis, Version=4.7.0.0, C 
ulture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, System 
.Action`1<System.ValueTuple`2<System.__Canon,Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext>>, System.ValueTuple`2<System.__Canon,Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysi 
sContext>, System.Nullable`1<Microsoft.CodeAnalysis.Diagnostics.AnalysisContextInfo>, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteBlockActions[[System.__Canon, System.Private.CoreLi 
b, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Microsoft.CodeAnalysis.PooledObjects.PooledHashSet`1<System.__Canon>, Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.ISymb 
ol, Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, Microsoft.CodeAnalysis.SemanticModel, System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.IOperation>, System.Action`1<Microsoft 
.CodeAnalysis.Diagnostic>, System.Func`3<Microsoft.CodeAnalysis.Diagnostic,System.Threading.CancellationToken,Boolean>, System.Nullable`1<Microsoft.CodeAnalysis.Text.TextSpan>, Boolean, System.Threading.C 
ancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteBlockActionsCore[[System.__Canon, System.Private.Co 
reLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, Syste 
m.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.In 
t32, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.__Canon>, System.Collections.Generic.IEnumerable`1<System._ 
_Canon>, System.Collections.Generic.IEnumerable`1<System.__Canon>, Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.ISymbol, System.Collecti 
ons.Immutable.ImmutableArray`1<System.__Canon>, System.Func`2<System.Collections.Immutable.ImmutableArray`1<System.__Canon>,System.Collections.Generic.IEnumerable`1<System.__Canon>>, Microsoft.CodeAnalysi 
s.SemanticModel, System.Func`2<Microsoft.CodeAnalysis.SyntaxNode,Int32>, System.Nullable`1<Microsoft.CodeAnalysis.Text.TextSpan>, Boolean, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin 
\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver`1+<>c__DisplayClass11_0[[Microsoft.CodeAnalysis.CSharp.Synta 
xKind, Microsoft.CodeAnalysis.CSharp, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].<ExecuteDeclaringReferenceActions>g__executeOperationsBlockActions|6(System.Collections.Immutable. 
ImmutableArray`1<Microsoft.CodeAnalysis.IOperation>, System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.IOperation>, System.Collections.Generic.IEnumerable`1<ExecutableCodeBlockAnalyzerA 
ctions<Microsoft.CodeAnalysis.CSharp.SyntaxKind>>) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver`1+<>c__DisplayClass11_0[[Microsoft.CodeAnalysis.CSharp.Synta 
xKind, Microsoft.CodeAnalysis.CSharp, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].<ExecuteDeclaringReferenceActions>g__executeExecutableCodeActions|2() [C:\Users\MyUser\code\dbadmi 
n\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver`1[[Microsoft.CodeAnalysis.CSharp.SyntaxKind, Microsoft.CodeA 
nalysis.CSharp, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].ExecuteDeclaringReferenceActions(Microsoft.CodeAnalysis.SyntaxReference, Microsoft.CodeAnalysis.Diagnostics.SymbolDeclar 
edCompilationEvent, Microsoft.CodeAnalysis.Diagnostics.AnalysisScope, GroupedAnalyzerActions<Microsoft.CodeAnalysis.CSharp.SyntaxKind>, GroupedAnalyzerActions<Microsoft.CodeAnalysis.CSharp.SyntaxKind>, Bo 
olean, Boolean, Boolean, Boolean, Boolean, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver`1[[Microsoft.CodeAnalysis.CSharp.SyntaxKind, Microsoft.CodeA 
nalysis.CSharp, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].ExecuteDeclaringReferenceActions(Microsoft.CodeAnalysis.Diagnostics.SymbolDeclaredCompilationEvent, Microsoft.CodeAnalys 
is.Diagnostics.AnalysisScope, Boolean, IGroupedAnalyzerActions, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+<TryProcessSymbolDeclaredAsync>d__137.MoveNext() [C:\Users\s 
washe\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDrive 
r+<TryProcessSymbolDeclaredAsync>d__137, Microsoft.CodeAnalysis, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<TryProcessSymbolDeclaredAsync>d__137 ByRef) [C:\Users\MyUser\code\dbad 
min\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.TryProcessSymbolDeclaredAsync(Microsoft.CodeAnalysis.Diagnos 
tics.SymbolDeclaredCompilationEvent, Microsoft.CodeAnalysis.Diagnostics.AnalysisScope, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+<TryProcessEventCoreAsync>d__136.MoveNext() [C:\Users\MyUser 
\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDrive 
r+<TryProcessEventCoreAsync>d__136, Microsoft.CodeAnalysis, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<TryProcessEventCoreAsync>d__136 ByRef) [C:\Users\MyUser\code\dbadmin\dbadmi 
n.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.TryProcessEventCoreAsync(Microsoft.CodeAnalysis.Diagnostics.
CompilationEvent, Microsoft.CodeAnalysis.Diagnostics.AnalysisScope, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+<ProcessEventAsync>d__134.MoveNext() [C:\Users\MyUser\code\d 
badmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDrive 
r+<ProcessEventAsync>d__134, Microsoft.CodeAnalysis, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<ProcessEventAsync>d__134 ByRef) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]      
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.ProcessEventAsync(Microsoft.CodeAnalysis.Diagnostics.Compila 
tionEvent, Microsoft.CodeAnalysis.Diagnostics.AnalysisScope, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+<ProcessCompilationEventsCoreAsync>d__133.MoveNext() [C:\Use 
rs\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.Exec 
utionContext, System.Threading.ContextCallback, System.Object) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Privat 
e.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+<ProcessCompilationEventsCoreAsync>d__133, Microsoft.CodeAnalysis, Version= 
4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext(System.Threading.Thread) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Threading.ThreadPoolWorkQueue.Dispatch() [C:\Users\MyUser\code\dbadmin\dbadmin.csproj]
C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() [C:\Users\MyUser\code\dbadmin\dbadmin.csp 
roj]

The build failed. Fix the build errors and run again.

Regression?

No response

Known Workarounds

No response

Configuration

Windows 11 Enterprise (Version 10.0.22621 Build 22621) dotnet --version: 7.0.402 x64

Other information

No response

swasheck commented 1 year ago

I mistyped my dotnet version. I've tried both

ghost commented 1 year ago

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch See info in area-owners.md if you want to be subscribed.

Issue Details
### Description `dotnet run` or `dotnet build` fail with `Fatal error. Internal CLR error. (0x80131506) ` ### Reproduction Steps * Install dotnet sdk via winget or download installer * `mkdir dbadmin` (or any project name) * `cd dbadmin` * `dotnet new console --use-program-main` * `dotnet run`/`dotnet build` ### Expected behavior Expect an output of: Hello, World! ### Actual behavior ``` C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : Fatal error. Internal CLR error. (0x80131506) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.NetCore.Analyzers.InteropServices.PlatformCompatibilityAnalyzer+<>c__DisplayClass34_0.b__1(Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor+<>c__54`1[[System.__Canon, System.Private.CoreLib, Version =7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].b__54_1(System.ValueTuple`2,Microsoft.Co deAnalysis.Diagnostics.OperationBlockAnalysisContext>) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[[System.ValueTuple`2[[Syste m.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext, Microsoft.CodeAnalysis, Version=4.7 .0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, System.Action`1>, System.ValueTuple`2, System.Nullable`1, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows[[System.ValueTuple`2[[System.__Can on, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext, Microsoft.CodeAnalysis, Version=4.7.0.0, C ulture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, System .Action`1>, System.ValueTuple`2, System.Nullable`1, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteBlockActions[[System.__Canon, System.Private.CoreLi b, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Microsoft.CodeAnalysis.PooledObjects.PooledHashSet`1, Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.ISymb ol, Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, Microsoft.CodeAnalysis.SemanticModel, System.Collections.Immutable.ImmutableArray`1, System.Action`1, System.Func`3, System.Nullable`1, Boolean, System.Threading.C ancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteBlockActionsCore[[System.__Canon, System.Private.Co reLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, Syste m.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.In t32, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1, System.Collections.Generic.IEnumerable`1, System.Collections.Generic.IEnumerable`1, Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.ISymbol, System.Collecti ons.Immutable.ImmutableArray`1, System.Func`2,System.Collections.Generic.IEnumerable`1>, Microsoft.CodeAnalysi s.SemanticModel, System.Func`2, System.Nullable`1, Boolean, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin \dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver`1+<>c__DisplayClass11_0[[Microsoft.CodeAnalysis.CSharp.Synta xKind, Microsoft.CodeAnalysis.CSharp, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].g__executeOperationsBlockActions|6(System.Collections.Immutable. ImmutableArray`1, System.Collections.Immutable.ImmutableArray`1, System.Collections.Generic.IEnumerable`1>) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver`1+<>c__DisplayClass11_0[[Microsoft.CodeAnalysis.CSharp.Synta xKind, Microsoft.CodeAnalysis.CSharp, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].g__executeExecutableCodeActions|2() [C:\Users\MyUser\code\dbadmi n\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver`1[[Microsoft.CodeAnalysis.CSharp.SyntaxKind, Microsoft.CodeA nalysis.CSharp, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].ExecuteDeclaringReferenceActions(Microsoft.CodeAnalysis.SyntaxReference, Microsoft.CodeAnalysis.Diagnostics.SymbolDeclar edCompilationEvent, Microsoft.CodeAnalysis.Diagnostics.AnalysisScope, GroupedAnalyzerActions, GroupedAnalyzerActions, Bo olean, Boolean, Boolean, Boolean, Boolean, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver`1[[Microsoft.CodeAnalysis.CSharp.SyntaxKind, Microsoft.CodeA nalysis.CSharp, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].ExecuteDeclaringReferenceActions(Microsoft.CodeAnalysis.Diagnostics.SymbolDeclaredCompilationEvent, Microsoft.CodeAnalys is.Diagnostics.AnalysisScope, Boolean, IGroupedAnalyzerActions, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+d__137.MoveNext() [C:\Users\s washe\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDrive r+d__137, Microsoft.CodeAnalysis, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](d__137 ByRef) [C:\Users\MyUser\code\dbad min\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.TryProcessSymbolDeclaredAsync(Microsoft.CodeAnalysis.Diagnos tics.SymbolDeclaredCompilationEvent, Microsoft.CodeAnalysis.Diagnostics.AnalysisScope, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+d__136.MoveNext() [C:\Users\MyUser \code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDrive r+d__136, Microsoft.CodeAnalysis, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](d__136 ByRef) [C:\Users\MyUser\code\dbadmin\dbadmi n.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.TryProcessEventCoreAsync(Microsoft.CodeAnalysis.Diagnostics. CompilationEvent, Microsoft.CodeAnalysis.Diagnostics.AnalysisScope, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+d__134.MoveNext() [C:\Users\MyUser\code\d badmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDrive r+d__134, Microsoft.CodeAnalysis, Version=4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](d__134 ByRef) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.ProcessEventAsync(Microsoft.CodeAnalysis.Diagnostics.Compila tionEvent, Microsoft.CodeAnalysis.Diagnostics.AnalysisScope, System.Threading.CancellationToken) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+d__133.MoveNext() [C:\Use rs\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.Exec utionContext, System.Threading.ContextCallback, System.Object) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Privat e.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+d__133, Microsoft.CodeAnalysis, Version= 4.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext(System.Threading.Thread) [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at System.Threading.ThreadPoolWorkQueue.Dispatch() [C:\Users\MyUser\code\dbadmin\dbadmin.csproj] C:\Program Files\dotnet\sdk\7.0.401\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() [C:\Users\MyUser\code\dbadmin\dbadmin.csp roj] The build failed. Fix the build errors and run again. ``` ### Regression? _No response_ ### Known Workarounds _No response_ ### Configuration Windows 11 Enterprise (Version 10.0.22621 Build 22621) dotnet --version: 7.0.402 x64 ### Other information _No response_
Author: swasheck
Assignees: -
Labels: `area-CodeGen-coreclr`, `untriaged`, `needs-area-label`
Milestone: -
kevingosse commented 1 year ago

Same error but with 7.0.309:

Microsoft (R) .NET SDK version 7.0.309
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error : Fatal error. Internal CLR error
. (0x80131506) [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.NetCore.Analyze
rs.InteropServices.PlatformCompatibilityAnalyzer+<>c__DisplayClass34_0.<AnalyzeOperationBlock>b__1(Microsoft.CodeAnalys
is.Diagnostics.OperationBlockAnalysisContext) [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerExecutor+<>c__60`1[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicK
eyToken=7cec85d7bea7798e]].<ExecuteBlockActions>b__60_1(System.ValueTuple`2<System.Action`1<Microsoft.CodeAnalysis.Diag
nostics.OperationBlockAnalysisContext>,Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext>) [C:\git\dd-tr
ace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib,
 Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.Diagnostics.OperationBlockA
nalysisContext, Microsoft.CodeAnalysis, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Pri
vate.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Microsoft.CodeAnalysis.Diagnostics.Di
agnosticAnalyzer, System.Action`1<System.ValueTuple`2<System.__Canon,Microsoft.CodeAnalysis.Diagnostics.OperationBlockA
nalysisContext>>, System.ValueTuple`2<System.__Canon,Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext>,
 System.Nullable`1<Microsoft.CodeAnalysis.Diagnostics.AnalysisContextInfo>) [C:\git\dd-trace-dotnet\tracer\build\_build
\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Versio
n=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysis
Context, Microsoft.CodeAnalysis, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.Co
reLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Microsoft.CodeAnalysis.Diagnostics.Diagnosti
cAnalyzer, System.Action`1<System.ValueTuple`2<System.__Canon,Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysis
Context>>, System.ValueTuple`2<System.__Canon,Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext>, System
.Nullable`1<Microsoft.CodeAnalysis.Diagnostics.AnalysisContextInfo>) [C:\git\dd-trace-dotnet\tracer\build\_build\_build
.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerExecutor.ExecuteBlockActions[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutra
l, PublicKeyToken=7cec85d7bea7798e]](Microsoft.CodeAnalysis.PooledObjects.PooledHashSet`1<System.__Canon>, Microsoft.Co
deAnalysis.SyntaxNode, Microsoft.CodeAnalysis.ISymbol, Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, Microsoft
.CodeAnalysis.SemanticModel, System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.IOperation>, System.A
ction`1<Microsoft.CodeAnalysis.Diagnostic>, System.Func`2<Microsoft.CodeAnalysis.Diagnostic,Boolean>, Boolean) [C:\git\
dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerExecutor.ExecuteBlockActionsCore[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=ne
utral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, Publ
icKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=
7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea
7798e],[System.Int32, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Syste
m.Collections.Generic.IEnumerable`1<System.__Canon>, System.Collections.Generic.IEnumerable`1<System.__Canon>, System.C
ollections.Generic.IEnumerable`1<System.__Canon>, Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, Microsoft.Code
Analysis.SyntaxNode, Microsoft.CodeAnalysis.ISymbol, System.Collections.Immutable.ImmutableArray`1<System.__Canon>, Sys
tem.Func`2<System.Collections.Immutable.ImmutableArray`1<System.__Canon>,System.Collections.Generic.IEnumerable`1<Syste
m.__Canon>>, Microsoft.CodeAnalysis.SemanticModel, System.Func`2<Microsoft.CodeAnalysis.SyntaxNode,Int32>, Boolean) [C:
\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver`1[[Microsoft.CodeAnalysis.CSharp.SyntaxKind, Microsoft.CodeAnalysis.CSharp, Version=4.6.0.0, C
ulture=neutral, PublicKeyToken=31bf3856ad364e35]].<ExecuteDeclaringReferenceActions>g__executeOperationsBlockActions|11
_6(System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.IOperation>, System.Collections.Immutable.Immut
ableArray`1<Microsoft.CodeAnalysis.IOperation>, System.Collections.Generic.IEnumerable`1<ExecutableCodeBlockAnalyzerAct
ions<Microsoft.CodeAnalysis.CSharp.SyntaxKind>>, <>c__DisplayClass11_0<Microsoft.CodeAnalysis.CSharp.SyntaxKind> ByRef)
 [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver`1[[Microsoft.CodeAnalysis.CSharp.SyntaxKind, Microsoft.CodeAnalysis.CSharp, Version=4.6.0.0, C
ulture=neutral, PublicKeyToken=31bf3856ad364e35]].<ExecuteDeclaringReferenceActions>g__executeExecutableCodeActions|11_
2(<>c__DisplayClass11_0<Microsoft.CodeAnalysis.CSharp.SyntaxKind> ByRef) [C:\git\dd-trace-dotnet\tracer\build\_build\_b
uild.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver`1[[Microsoft.CodeAnalysis.CSharp.SyntaxKind, Microsoft.CodeAnalysis.CSharp, Version=4.6.0.0, C
ulture=neutral, PublicKeyToken=31bf3856ad364e35]].ExecuteDeclaringReferenceActions(Microsoft.CodeAnalysis.SyntaxReferen
ce, Microsoft.CodeAnalysis.Diagnostics.SymbolDeclaredCompilationEvent, Microsoft.CodeAnalysis.Diagnostics.AnalysisScope
, GroupedAnalyzerActions<Microsoft.CodeAnalysis.CSharp.SyntaxKind>, GroupedAnalyzerActions<Microsoft.CodeAnalysis.CShar
p.SyntaxKind>, Boolean, Boolean, Boolean, Boolean, Boolean, System.Threading.CancellationToken) [C:\git\dd-trace-dotnet
\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver`1[[Microsoft.CodeAnalysis.CSharp.SyntaxKind, Microsoft.CodeAnalysis.CSharp, Version=4.6.0.0, C
ulture=neutral, PublicKeyToken=31bf3856ad364e35]].ExecuteDeclaringReferenceActions(Microsoft.CodeAnalysis.Diagnostics.S
ymbolDeclaredCompilationEvent, Microsoft.CodeAnalysis.Diagnostics.AnalysisScope, Boolean, IGroupedAnalyzerActions, Syst
em.Threading.CancellationToken) [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver+<TryProcessSymbolDeclaredAsync>d__137.MoveNext() [C:\git\dd-trace-dotnet\tracer\build\_build\_
build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Runtime.CompilerSe
rvices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+<TryProcessSymbolDeclaredAsync>d
__137, Microsoft.CodeAnalysis, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<TryProcessSymbolDec
laredAsync>d__137 ByRef) [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver.TryProcessSymbolDeclaredAsync(Microsoft.CodeAnalysis.Diagnostics.SymbolDeclaredCompilationEven
t, Microsoft.CodeAnalysis.Diagnostics.AnalysisScope, System.Threading.CancellationToken) [C:\git\dd-trace-dotnet\tracer
\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver+<TryProcessEventCoreAsync>d__136.MoveNext() [C:\git\dd-trace-dotnet\tracer\build\_build\_build
.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Runtime.CompilerSe
rvices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+<TryProcessEventCoreAsync>d__136
, Microsoft.CodeAnalysis, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<TryProcessEventCoreAsync
>d__136 ByRef) [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver.TryProcessEventCoreAsync(Microsoft.CodeAnalysis.Diagnostics.CompilationEvent, Microsoft.CodeAn
alysis.Diagnostics.AnalysisScope, System.Threading.CancellationToken) [C:\git\dd-trace-dotnet\tracer\build\_build\_buil
d.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver+<ProcessEventAsync>d__134.MoveNext() [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj
]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Runtime.CompilerSe
rvices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+<ProcessEventAsync>d__134, Micro
soft.CodeAnalysis, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<ProcessEventAsync>d__134 ByRef)
 [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver.ProcessEventAsync(Microsoft.CodeAnalysis.Diagnostics.CompilationEvent, Microsoft.CodeAnalysis.
Diagnostics.AnalysisScope, System.Threading.CancellationToken) [C:\git\dd-trace-dotnet\tracer\build\_build\_build.cspro
j]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver+<ProcessCompilationEventsCoreAsync>d__133.MoveNext() [C:\git\dd-trace-dotnet\tracer\build\_bui
ld\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Runtime.CompilerSe
rvices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+<ProcessCompilationEventsCoreAsy
nc>d__133, Microsoft.CodeAnalysis, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<ProcessCompilat
ionEventsCoreAsync>d__133 ByRef) [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver.ProcessCompilationEventsCoreAsync(Microsoft.CodeAnalysis.Diagnostics.AnalysisScope, Boolean, S
ystem.Threading.CancellationToken) [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver+<>c__DisplayClass132_0+<<ProcessCompilationEventsAsync>b__2>d.MoveNext() [C:\git\dd-trace-dotn
et\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Runtime.CompilerSe
rvices.AsyncMethodBuilderCore.Start[[Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver+<>c__DisplayClass132_0+<<Process
CompilationEventsAsync>b__2>d, Microsoft.CodeAnalysis, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e3
5]](<<ProcessCompilationEventsAsync>b__2>d ByRef) [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at Microsoft.CodeAnalysis.Di
agnostics.AnalyzerDriver+<>c__DisplayClass132_0.<ProcessCompilationEventsAsync>b__2() [C:\git\dd-trace-dotnet\tracer\bu
ild\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Threading.Tasks.Ta
sk`1[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Inner
Invoke() [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Threading.Executio
nContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.Con
textCallback, System.Object) [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Threading.Tasks.Ta
sk.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread) [C:\git\dd-trace-dotnet\tracer\bu
ild\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Threading.ThreadPo
olWorkQueue.Dispatch() [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
C:\Program Files\dotnet\sdk\7.0.309\Roslyn\Microsoft.CSharp.Core.targets(80,5): error :    at System.Threading.Portable
ThreadPool+WorkerThread.WorkerThreadStart() [C:\git\dd-trace-dotnet\tracer\build\_build\_build.csproj]
$ dotnet --list-sdks
7.0.309 [C:\Program Files\dotnet\sdk]
7.0.401 [C:\Program Files\dotnet\sdk]
8.0.100-preview.5.23303.2 [C:\Program Files\dotnet\sdk]
8.0.100-preview.7.23376.3 [C:\Program Files\dotnet\sdk]
kevingosse commented 1 year ago

Access violation in coreclr!FixupPrecode::Init:

 # Child-SP          RetAddr               Call Site
00 (Inline Function) --------`--------     coreclr!FixupPrecode::Init+0xf [D:\a\_work\1\s\src\coreclr\vm\precode.cpp @ 676] 
01 (Inline Function) --------`--------     coreclr!Precode::Init+0x9c [D:\a\_work\1\s\src\coreclr\vm\precode.cpp @ 284] 
02 (Inline Function) --------`--------     coreclr!Precode::AllocateTemporaryEntryPoints+0x6e3 [D:\a\_work\1\s\src\coreclr\vm\precode.cpp @ 482] 
03 (Inline Function) --------`--------     coreclr!MethodDescChunk::CreateTemporaryEntryPoints+0x6e3 [D:\a\_work\1\s\src\coreclr\vm\method.cpp @ 2940] 
04 (Inline Function) --------`--------     coreclr!MethodDescChunk::EnsureTemporaryEntryPointsCreated+0x6e3 [D:\a\_work\1\s\src\coreclr\vm\method.hpp @ 2209] 
05 000000eb`51bf16d0 00007fff`83b51f43     coreclr!MethodTableBuilder::SetupMethodTable2+0xe5e [D:\a\_work\1\s\src\coreclr\vm\methodtablebuilder.cpp @ 10672] 
06 000000eb`51bf1c00 00007fff`83b4c761     coreclr!MethodTableBuilder::BuildMethodTableThrowing+0x1e73 [D:\a\_work\1\s\src\coreclr\vm\methodtablebuilder.cpp @ 1776] 
07 000000eb`51bf21c0 00007fff`83bb6fed     coreclr!ClassLoader::CreateTypeHandleForTypeDefThrowing+0x761 [D:\a\_work\1\s\src\coreclr\vm\methodtablebuilder.cpp @ 12431] 
08 000000eb`51bf25f0 00007fff`83bb7f7f     coreclr!ClassLoader::CreateTypeHandleForTypeKey+0x195 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2943] 
09 (Inline Function) --------`--------     coreclr!ClassLoader::DoIncrementalLoad+0x47 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2883] 
0a 000000eb`51bf26d0 00007fff`83bb744b     coreclr!ClassLoader::LoadTypeHandleForTypeKey_Body+0x50f [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 3559] 
0b 000000eb`51bf3490 00007fff`83b2c62d     coreclr!ClassLoader::LoadTypeHandleForTypeKey+0xdb [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 3278] 
0c 000000eb`51bf3520 00007fff`83b2ca68     coreclr!ClassLoader::LoadTypeDefThrowing+0x1dd [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2258] 
0d 000000eb`51bf3650 00007fff`83b2af19     coreclr!ClassLoader::LoadTypeDefOrRefThrowing+0x388 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2428] 
0e 000000eb`51bf3750 00007fff`83b4c313     coreclr!ClassLoader::LoadApproxTypeThrowing+0x1a9 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2755] 
0f (Inline Function) --------`--------     coreclr!ClassLoader::LoadApproxParentThrowing+0x8e [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2828] 
10 000000eb`51bf3800 00007fff`83bb6fed     coreclr!ClassLoader::CreateTypeHandleForTypeDefThrowing+0x313 [D:\a\_work\1\s\src\coreclr\vm\methodtablebuilder.cpp @ 12159] 
11 000000eb`51bf3c30 00007fff`83bb7f7f     coreclr!ClassLoader::CreateTypeHandleForTypeKey+0x195 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2943] 
12 (Inline Function) --------`--------     coreclr!ClassLoader::DoIncrementalLoad+0x47 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2883] 
13 000000eb`51bf3d10 00007fff`83bb744b     coreclr!ClassLoader::LoadTypeHandleForTypeKey_Body+0x50f [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 3559] 
14 000000eb`51bf4ad0 00007fff`83b2c62d     coreclr!ClassLoader::LoadTypeHandleForTypeKey+0xdb [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 3278] 
15 000000eb`51bf4b60 00007fff`83b2ca68     coreclr!ClassLoader::LoadTypeDefThrowing+0x1dd [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2258] 
16 000000eb`51bf4c90 00007fff`83b2af19     coreclr!ClassLoader::LoadTypeDefOrRefThrowing+0x388 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2428] 
17 000000eb`51bf4d90 00007fff`83b4c313     coreclr!ClassLoader::LoadApproxTypeThrowing+0x1a9 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2755] 
18 (Inline Function) --------`--------     coreclr!ClassLoader::LoadApproxParentThrowing+0x8e [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2828] 
19 000000eb`51bf4e40 00007fff`83bb6fed     coreclr!ClassLoader::CreateTypeHandleForTypeDefThrowing+0x313 [D:\a\_work\1\s\src\coreclr\vm\methodtablebuilder.cpp @ 12159] 
1a 000000eb`51bf5270 00007fff`83bb7f7f     coreclr!ClassLoader::CreateTypeHandleForTypeKey+0x195 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2943] 
1b (Inline Function) --------`--------     coreclr!ClassLoader::DoIncrementalLoad+0x47 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2883] 
1c 000000eb`51bf5350 00007fff`83bb744b     coreclr!ClassLoader::LoadTypeHandleForTypeKey_Body+0x50f [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 3559] 
1d 000000eb`51bf6110 00007fff`83b2c62d     coreclr!ClassLoader::LoadTypeHandleForTypeKey+0xdb [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 3278] 
1e 000000eb`51bf61a0 00007fff`83b2ca68     coreclr!ClassLoader::LoadTypeDefThrowing+0x1dd [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2258] 
1f 000000eb`51bf62d0 00007fff`83b2af19     coreclr!ClassLoader::LoadTypeDefOrRefThrowing+0x388 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2428] 
20 000000eb`51bf63d0 00007fff`83b4c313     coreclr!ClassLoader::LoadApproxTypeThrowing+0x1a9 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2755] 
21 (Inline Function) --------`--------     coreclr!ClassLoader::LoadApproxParentThrowing+0x8e [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2828] 
22 000000eb`51bf6480 00007fff`83bb6fed     coreclr!ClassLoader::CreateTypeHandleForTypeDefThrowing+0x313 [D:\a\_work\1\s\src\coreclr\vm\methodtablebuilder.cpp @ 12159] 
23 000000eb`51bf68b0 00007fff`83bb7f7f     coreclr!ClassLoader::CreateTypeHandleForTypeKey+0x195 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2943] 
24 (Inline Function) --------`--------     coreclr!ClassLoader::DoIncrementalLoad+0x47 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2883] 
25 000000eb`51bf6990 00007fff`83bb744b     coreclr!ClassLoader::LoadTypeHandleForTypeKey_Body+0x50f [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 3559] 
26 000000eb`51bf7750 00007fff`83b2c62d     coreclr!ClassLoader::LoadTypeHandleForTypeKey+0xdb [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 3278] 
27 000000eb`51bf77e0 00007fff`83b2ca68     coreclr!ClassLoader::LoadTypeDefThrowing+0x1dd [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2258] 
28 000000eb`51bf7910 00007fff`83b2add4     coreclr!ClassLoader::LoadTypeDefOrRefThrowing+0x388 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2428] 
29 000000eb`51bf7a10 00007fff`83b4c313     coreclr!ClassLoader::LoadApproxTypeThrowing+0x64 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2782] 
2a (Inline Function) --------`--------     coreclr!ClassLoader::LoadApproxParentThrowing+0x8e [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2828] 
2b 000000eb`51bf7ac0 00007fff`83bb6fed     coreclr!ClassLoader::CreateTypeHandleForTypeDefThrowing+0x313 [D:\a\_work\1\s\src\coreclr\vm\methodtablebuilder.cpp @ 12159] 
2c 000000eb`51bf9f20 00007fff`83bb7f7f     coreclr!ClassLoader::CreateTypeHandleForTypeKey+0x195 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2943] 
2d (Inline Function) --------`--------     coreclr!ClassLoader::DoIncrementalLoad+0x47 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2883] 
2e 000000eb`51bfa000 00007fff`83bb744b     coreclr!ClassLoader::LoadTypeHandleForTypeKey_Body+0x50f [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 3559] 
2f 000000eb`51bfadc0 00007fff`83b2c62d     coreclr!ClassLoader::LoadTypeHandleForTypeKey+0xdb [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 3278] 
30 000000eb`51bfae50 00007fff`83b2ca68     coreclr!ClassLoader::LoadTypeDefThrowing+0x1dd [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2258] 
31 000000eb`51bfaf80 00007fff`83b2eb93     coreclr!ClassLoader::LoadTypeDefOrRefThrowing+0x388 [D:\a\_work\1\s\src\coreclr\vm\clsload.cpp @ 2428] 
32 000000eb`51bfb080 00007fff`83b2b240     coreclr!SigPointer::GetTypeHandleThrowing+0x1933 [D:\a\_work\1\s\src\coreclr\vm\siginfo.cpp @ 1480] 
33 000000eb`51bfb1f0 00007fff`83b8f855     coreclr!CEEInfo::ConvToJitSig+0x270 [D:\a\_work\1\s\src\coreclr\vm\jitinterface.cpp @ 476] 
34 (Inline Function) --------`--------     coreclr!CEEInfo::getMethodSigInternal+0x4d3 [D:\a\_work\1\s\src\coreclr\vm\jitinterface.cpp @ 8310] 
35 000000eb`51bfb290 00007fff`a739b380     coreclr!CEEInfo::getCallInfo+0x28c5 [D:\a\_work\1\s\src\coreclr\vm\jitinterface.cpp @ 5348] 
36 (Inline Function) --------`--------     clrjit!Compiler::eeGetCallInfo+0x4b [D:\a\_work\1\s\src\coreclr\jit\ee_il_dll.hpp @ 36] 
37 000000eb`51bfbb00 00007fff`a73381c7     clrjit!Compiler::impImportBlockCode+0x2850 [D:\a\_work\1\s\src\coreclr\jit\importer.cpp @ 15297] 
38 000000eb`51bfc2a0 00007fff`a7337dd6     clrjit!Compiler::impImportBlock+0xb7 [D:\a\_work\1\s\src\coreclr\jit\importer.cpp @ 18532] 
39 000000eb`51bfc3f0 00007fff`a733997e     clrjit!Compiler::impImport+0x416 [D:\a\_work\1\s\src\coreclr\jit\importer.cpp @ 19540] 
3a 000000eb`51bfc460 00007fff`a7387a13     clrjit!Compiler::fgImport+0xe [D:\a\_work\1\s\src\coreclr\jit\flowgraph.cpp @ 615] 
3b (Inline Function) --------`--------     clrjit!Phase::Run+0x1b [D:\a\_work\1\s\src\coreclr\jit\phase.cpp @ 61] 
3c (Inline Function) --------`--------     clrjit!DoPhase+0x4a [D:\a\_work\1\s\src\coreclr\jit\phase.h @ 136] 
3d 000000eb`51bfc490 00007fff`a7396492     clrjit!Compiler::compCompile+0x163 [D:\a\_work\1\s\src\coreclr\jit\compiler.cpp @ 4374] 
3e 000000eb`51bfcc70 00007fff`a7397152     clrjit!Compiler::compCompileHelper+0x9d2 [D:\a\_work\1\s\src\coreclr\jit\compiler.cpp @ 6767] 
3f 000000eb`51bfcd50 00007fff`a73375b5     clrjit!Compiler::compCompile+0x532 [D:\a\_work\1\s\src\coreclr\jit\compiler.cpp @ 5930] 
40 000000eb`51bfce10 00007fff`a73b6743     clrjit!jitNativeCode+0x265 [D:\a\_work\1\s\src\coreclr\jit\compiler.cpp @ 7413] 
41 000000eb`51bfcfb0 00007fff`83b68675     clrjit!CILJit::compileMethod+0x83 [D:\a\_work\1\s\src\coreclr\jit\ee_il_dll.cpp @ 264] 
42 (Inline Function) --------`--------     coreclr!invokeCompileMethodHelper+0x7e [D:\a\_work\1\s\src\coreclr\vm\jitinterface.cpp @ 12331] 
43 (Inline Function) --------`--------     coreclr!invokeCompileMethod+0xb3 [D:\a\_work\1\s\src\coreclr\vm\jitinterface.cpp @ 12394] 
44 000000eb`51bfd020 00007fff`83b67d45     coreclr!UnsafeJitFunction+0x785 [D:\a\_work\1\s\src\coreclr\vm\jitinterface.cpp @ 12867] 
45 000000eb`51bfd500 00007fff`83b67ab2     coreclr!MethodDesc::JitCompileCodeLocked+0x209 [D:\a\_work\1\s\src\coreclr\vm\prestub.cpp @ 952] 
46 000000eb`51bfd6d0 00007fff`83b6783c     coreclr!MethodDesc::JitCompileCodeLockedEventWrapper+0xbe [D:\a\_work\1\s\src\coreclr\vm\prestub.cpp @ 823] 
47 000000eb`51bfd830 00007fff`83b6736b     coreclr!MethodDesc::JitCompileCode+0x2ac [D:\a\_work\1\s\src\coreclr\vm\prestub.cpp @ 763] 
48 000000eb`51bfd8e0 00007fff`83b667b6     coreclr!MethodDesc::PrepareILBasedCode+0x6f [D:\a\_work\1\s\src\coreclr\vm\prestub.cpp @ 434] 
49 (Inline Function) --------`--------     coreclr!MethodDesc::PrepareCode+0x12 [D:\a\_work\1\s\src\coreclr\vm\prestub.cpp @ 323] 
4a 000000eb`51bfd930 00007fff`83afa684     coreclr!MethodDesc::PrepareInitialCode+0x4e [D:\a\_work\1\s\src\coreclr\vm\prestub.cpp @ 314] 
4b 000000eb`51bfd9c0 00007fff`83afa29b     coreclr!MethodDesc::DoPrestub+0x2b4 [D:\a\_work\1\s\src\coreclr\vm\prestub.cpp @ 2150] 
4c 000000eb`51bfdae0 00007fff`83c410d5     coreclr!PreStubWorker+0x21b [D:\a\_work\1\s\src\coreclr\vm\prestub.cpp @ 1938] 
4d 000000eb`51bfdc80 00007fff`7edff41a     coreclr!ThePreStub+0x55
4e 000000eb`51bfdd30 00007fff`2602bc2f     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__54<System.__Canon>.<ExecuteBlockActions>b__54_1+0x2a
4f 000000eb`51bfddd0 00007fff`2602b948     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock<System.ValueTuple<System.__Canon,Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext>>+0x3f [_/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerExecutor.cs @ 1177] 
50 000000eb`51bfde20 00007fff`7ee4ec97     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows<System.ValueTuple<System.Action<Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext>,Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalysisContext>>+0x2e8 [_/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerExecutor.cs @ 1158] 
51 000000eb`51bfdfc0 00007fff`2602a87e     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteBlockActions<Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalyzerAction>+0x817 [_/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerExecutor.cs @ 883] 
52 000000eb`51bfe5c0 00007fff`26029205     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteBlockActionsCore<Microsoft.CodeAnalysis.Diagnostics.OperationBlockStartAnalyzerAction,Microsoft.CodeAnalysis.Diagnostics.OperationBlockAnalyzerAction,Microsoft.CodeAnalysis.Diagnostics.OperationAnalyzerAction,Microsoft.CodeAnalysis.IOperation,int>+0x13fe [_/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerExecutor.cs @ 863] 
53 000000eb`51bfeb00 00007fff`2535ef6a     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver<Microsoft.CodeAnalysis.CSharp.SyntaxKind>.<>c__DisplayClass11_0.<ExecuteDeclaringReferenceActions>g__executeOperationsBlockActions|6+0x385 [_/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerDriver.cs @ 2697] 
54 000000eb`51bfec90 00007fff`2534dc9e     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver<Microsoft.CodeAnalysis.CSharp.SyntaxKind>.<>c__DisplayClass11_0.<ExecuteDeclaringReferenceActions>g__executeExecutableCodeActions|2+0x18a [_/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerDriver.cs @ 2617] 
55 000000eb`51bfed00 00007fff`2534baa0     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver<Microsoft.CodeAnalysis.CSharp.SyntaxKind>.ExecuteDeclaringReferenceActions+0x18e [_/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerDriver.cs @ 2521] 
56 000000eb`51bfed70 00007fff`7ed8e59f     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver<Microsoft.CodeAnalysis.CSharp.SyntaxKind>.ExecuteDeclaringReferenceActions+0x3e0 [_/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerDriver.cs @ 2437] 
57 000000eb`51bfef30 00007fff`253486d7     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.<TryProcessSymbolDeclaredAsync>d__137.MoveNext+0x21f [_/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerDriver.cs @ 1699] 
58 000000eb`51bff080 00007fff`7ed0d8c2     System_Private_CoreLib!System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<<TryProcessSymbolDeclaredAsync>d__137>+0x57 [/_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncMethodBuilderCore.cs @ 38] 
59 000000eb`51bff0e0 00007fff`7ed8e188     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.TryProcessSymbolDeclaredAsync+0x82
5a 000000eb`51bff180 00007fff`25347ee7     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.<TryProcessEventCoreAsync>d__136.MoveNext+0xe8
5b 000000eb`51bff230 00007fff`7ed0d812     0x00007fff`25347ee7
5c 000000eb`51bff290 00007fff`7ed8debe     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.TryProcessEventCoreAsync+0x82
5d 000000eb`51bff330 00007fff`25347267     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.<ProcessEventAsync>d__134.MoveNext+0x7e
5e 000000eb`51bff3f0 00007fff`7ed0d6be     0x00007fff`25347267
5f 000000eb`51bff450 00007fff`7ed8dc72     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.ProcessEventAsync+0x6e
60 000000eb`51bff4f0 00007fff`832cd1d2     Microsoft_CodeAnalysis!Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver.<ProcessCompilationEventsCoreAsync>d__133.MoveNext+0x1f2 [_/src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerDriver.cs @ 1548] 
61 000000eb`51bff5e0 00007fff`2535500a     System_Private_CoreLib!System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop+0x42 [/_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs @ 268] 
62 000000eb`51bff630 00007fff`832d6035     System_Private_CoreLib!System.Runtime.CompilerServices.AsyncTaskMethodBuilder<Microsoft.CodeAnalysis.Diagnostics.CompilationCompletedEvent>.AsyncStateMachineBox<<ProcessCompilationEventsCoreAsync>d__133>.MoveNext+0x13a [/_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs @ 332] 
63 000000eb`51bff6b0 00007fff`832df687     System_Private_CoreLib!System.Threading.ThreadPoolWorkQueue.Dispatch+0x325 [/_/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolWorkQueue.cs @ 919] 
64 000000eb`51bff740 00007fff`83c3fd93     System_Private_CoreLib!System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart+0x177 [/_/src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WorkerThread.cs @ 77] 
65 000000eb`51bff850 00007fff`83b40e68     coreclr!CallDescrWorkerInternal+0x83
66 000000eb`51bff890 00007fff`83c306e3     coreclr!DispatchCallSimple+0x60 [D:\a\_work\1\s\src\coreclr\vm\callhelpers.cpp @ 221] 
67 000000eb`51bff920 00007fff`83b82165     coreclr!ThreadNative::KickOffThread_Worker+0x63 [D:\a\_work\1\s\src\coreclr\vm\comsynchronizable.cpp @ 158] 
68 (Inline Function) --------`--------     coreclr!ManagedThreadBase_DispatchInner+0xd [D:\a\_work\1\s\src\coreclr\vm\threads.cpp @ 7298] 
69 000000eb`51bff980 00007fff`83b8207b     coreclr!ManagedThreadBase_DispatchMiddle+0x85 [D:\a\_work\1\s\src\coreclr\vm\threads.cpp @ 7342] 
6a 000000eb`51bffa60 00007fff`83b815c9     coreclr!ManagedThreadBase_DispatchOuter+0xab [D:\a\_work\1\s\src\coreclr\vm\threads.cpp @ 7501] 
6b (Inline Function) --------`--------     coreclr!ManagedThreadBase_FullTransition+0x2d [D:\a\_work\1\s\src\coreclr\vm\threads.cpp @ 7546] 
6c (Inline Function) --------`--------     coreclr!ManagedThreadBase::KickOff+0x2d [D:\a\_work\1\s\src\coreclr\vm\threads.cpp @ 7581] 
6d 000000eb`51bffb00 00007ff8`43cb7344     coreclr!ThreadNative::KickOffThread+0x79 [D:\a\_work\1\s\src\coreclr\vm\comsynchronizable.cpp @ 230] 
6e 000000eb`51bffb60 00007ff8`43ea26b1     kernel32!BaseThreadInitThunk+0x14
6f 000000eb`51bffb90 00000000`00000000     ntdll!RtlUserThreadStart+0x21

I have a memory dump available if needed.

kevingosse commented 1 year ago

Just noticed it's a duplicate: https://github.com/dotnet/runtime/issues/91695

DOTNET_TieredCompilation is mysteriously set to 0 by powershell. Setting it to 1 fixes the issue.

janvorli commented 1 year ago

This is weird how many reports of this mysterious setting of DOTNET_TieredCompilation has been recently reported. @kevingosse does it happen when you run dotnet from cmd.exe instead of powershell? If it is powershell specific, then I'd ping the powershell developers to see if they have any idea on what's going on.

kevingosse commented 1 year ago

@janvorli Only Powershell v7

The environment variable is set when coreclr.dll is loaded.

SentinelOne (InProcessClient64) is in the callstack leading to SetEnvironmentVariable, but it could be just hooking the syscall:

# Child-SP          RetAddr               Call Site
00 000000bc`de98e108 00007ff8`410e582d     KERNEL32!SetEnvironmentVariableWStub
01 000000bc`de98e110 00007ff8`410bfd65     InProcessClient64+0x15582d
02 000000bc`de98e2f0 00007ff8`410c28b5     InProcessClient64+0x12fd65
03 000000bc`de98e3a0 00007ff8`40fe0345     InProcessClient64+0x1328b5
04 000000bc`de98e3e0 00007ff8`40fe159e     InProcessClient64+0x50345
05 000000bc`de98e550 00007ff8`40fd9ddb     InProcessClient64+0x5159e
06 000000bc`de98e590 00007ff8`40fe2093     InProcessClient64+0x49ddb
07 000000bc`de98e810 00007ff8`40fe21b9     InProcessClient64+0x52093
08 000000bc`de98e8a0 00007ff8`40fe1feb     InProcessClient64+0x521b9
09 000000bc`de98e8e0 00007ff8`43e8ddf7     InProcessClient64+0x51feb
0a 000000bc`de98e920 00007ff8`43e8dcd7     ntdll!LdrpSendDllNotifications+0x87
0b 000000bc`de98e980 00007ff8`43e8dbb4     ntdll!LdrpSendPostSnapNotifications+0xcb
0c 000000bc`de98e9f0 00007ff8`43e8d8fb     ntdll!LdrpNotifyLoadOfGraph+0x30
0d 000000bc`de98ea20 00007ff8`43e6fbae     ntdll!LdrpPrepareModuleForExecution+0x73
0e 000000bc`de98ea60 00007ff8`43e673e4     ntdll!LdrpLoadDllInternal+0x19a
0f 000000bc`de98eae0 00007ff8`43e66af4     ntdll!LdrpLoadDll+0xa8
10 000000bc`de98ec90 00007ff8`4101ec93     ntdll!LdrLoadDll+0xe4
11 000000bc`de98ed80 00007ff8`4101edd8     InProcessClient64+0x8ec93
12 000000bc`de98ede0 00007ff8`4101ebc4     InProcessClient64+0x8edd8
13 000000bc`de98ee10 00007ff8`418c56b2     InProcessClient64+0x8ebc4
14 000000bc`de98eed0 00007fff`d9d95cf8     KERNELBASE!LoadLibraryExW+0x162
15 000000bc`de98ef40 00007fff`d9d7396e     hostpolicy!pal::load_library+0xe8 [D:\a\_work\1\s\src\native\corehost\hostmisc\pal.windows.cpp @ 187] 
16 (Inline Function) --------`--------     hostpolicy!coreclr_resolver_t::resolve_coreclr+0x29 [D:\a\_work\1\s\src\native\corehost\hostpolicy\standalone\coreclr_resolver.cpp @ 16] 
17 000000bc`de98efc0 00007fff`d9d73d34     hostpolicy!`anonymous namespace'::coreclr_bind+0x3e [D:\a\_work\1\s\src\native\corehost\hostpolicy\coreclr.cpp @ 18] 
18 000000bc`de98f020 00007fff`d9d88888     hostpolicy!coreclr_t::create+0x44 [D:\a\_work\1\s\src\native\corehost\hostpolicy\coreclr.cpp @ 37] 
19 000000bc`de98f1a0 00007fff`d9d8a62f     hostpolicy!`anonymous namespace'::create_coreclr+0x158 [D:\a\_work\1\s\src\native\corehost\hostpolicy\hostpolicy.cpp @ 81] 
1a 000000bc`de98f200 00007fff`d9f1b800     hostpolicy!corehost_main+0x12f [D:\a\_work\1\s\src\native\corehost\hostpolicy\hostpolicy.cpp @ 426] 
1b 000000bc`de98f3b0 00007fff`d9f1e48a     hostfxr!execute_app+0x330 [D:\a\_work\1\s\src\native\corehost\fxr\fx_muxer.cpp @ 146] 
1c 000000bc`de98f4b0 00007fff`d9f20746     hostfxr!`anonymous namespace'::read_config_and_execute+0xaa [D:\a\_work\1\s\src\native\corehost\fxr\fx_muxer.cpp @ 533] 
1d 000000bc`de98f5b0 00007fff`d9f1eaf4     hostfxr!fx_muxer_t::handle_exec_host_command+0x166 [D:\a\_work\1\s\src\native\corehost\fxr\fx_muxer.cpp @ 1018] 
1e 000000bc`de98f660 00007fff`d9f185c3     hostfxr!fx_muxer_t::execute+0x494 [D:\a\_work\1\s\src\native\corehost\fxr\fx_muxer.cpp @ 579] 
1f 000000bc`de98f7a0 00007ff7`62432a4f     hostfxr!hostfxr_main_startupinfo+0xb3 [D:\a\_work\1\s\src\native\corehost\fxr\hostfxr.cpp @ 61] 
20 000000bc`de98f8a0 00007ff7`62432dcb     pwsh_exe!exe_start+0x8ff [D:\a\_work\1\s\src\native\corehost\corehost.cpp @ 251] 
21 000000bc`de98fa70 00007ff7`62434278     pwsh_exe!wmain+0xab [D:\a\_work\1\s\src\native\corehost\corehost.cpp @ 322] 
22 (Inline Function) --------`--------     pwsh_exe!invoke_main+0x22 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 90] 
23 000000bc`de98faa0 00007ff8`43cb7344     pwsh_exe!__scrt_common_main_seh+0x10c [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288] 
24 000000bc`de98fae0 00007ff8`43ea26b1     KERNEL32!BaseThreadInitThunk+0x14
25 000000bc`de98fb10 00000000`00000000     ntdll!RtlUserThreadStart+0x21

Still, it would be interesting to see if the other affected people are using SentinelOne.

swasheck commented 1 year ago

We're using SentinelOne so this checks out

On Thu, Oct 12, 2023 at 8:48 AM Kevin Gosse @.***> wrote:

@janvorli https://github.com/janvorli Only Powershell v7

The environment variable is set when coreclr.dll is loaded.

SentinelOne is in the callstack leading to SetEnvironmentVariable, but it could be just hooking the syscall:

Child-SP RetAddr Call Site

00 000000bcde98e108 00007ff8410e582d KERNEL32!SetEnvironmentVariableWStub 01 000000bcde98e110 00007ff8410bfd65 InProcessClient64+0x15582d 02 000000bcde98e2f0 00007ff8410c28b5 InProcessClient64+0x12fd65 03 000000bcde98e3a0 00007ff840fe0345 InProcessClient64+0x1328b5 04 000000bcde98e3e0 00007ff840fe159e InProcessClient64+0x50345 05 000000bcde98e550 00007ff840fd9ddb InProcessClient64+0x5159e 06 000000bcde98e590 00007ff840fe2093 InProcessClient64+0x49ddb 07 000000bcde98e810 00007ff840fe21b9 InProcessClient64+0x52093 08 000000bcde98e8a0 00007ff840fe1feb InProcessClient64+0x521b9 09 000000bcde98e8e0 00007ff843e8ddf7 InProcessClient64+0x51feb 0a 000000bcde98e920 00007ff843e8dcd7 ntdll!LdrpSendDllNotifications+0x87 0b 000000bcde98e980 00007ff843e8dbb4 ntdll!LdrpSendPostSnapNotifications+0xcb 0c 000000bcde98e9f0 00007ff843e8d8fb ntdll!LdrpNotifyLoadOfGraph+0x30 0d 000000bcde98ea20 00007ff843e6fbae ntdll!LdrpPrepareModuleForExecution+0x73 0e 000000bcde98ea60 00007ff843e673e4 ntdll!LdrpLoadDllInternal+0x19a 0f 000000bcde98eae0 00007ff843e66af4 ntdll!LdrpLoadDll+0xa8 10 000000bcde98ec90 00007ff84101ec93 ntdll!LdrLoadDll+0xe4 11 000000bcde98ed80 00007ff84101edd8 InProcessClient64+0x8ec93 12 000000bcde98ede0 00007ff84101ebc4 InProcessClient64+0x8edd8 13 000000bcde98ee10 00007ff8418c56b2 InProcessClient64+0x8ebc4 14 000000bcde98eed0 00007fffd9d95cf8 KERNELBASE!LoadLibraryExW+0x162 15 000000bcde98ef40 00007fffd9d7396e hostpolicy!pal::load_library+0xe8 [D:\a_work\1\s\src\native\corehost\hostmisc\pal.windows.cpp @ 187] 16 (Inline Function) ---------------- hostpolicy!coreclr_resolver_t::resolve_coreclr+0x29 [D:\a\_work\1\s\src\native\corehost\hostpolicy\standalone\coreclr_resolver.cpp @ 16] 17 000000bcde98efc0 00007fffd9d73d34 hostpolicy!anonymous namespace'::coreclr_bind+0x3e [D:\a_work\1\s\src\native\corehost\hostpolicy\coreclr.cpp @ 18] 18 000000bcde98f020 00007fffd9d88888 hostpolicy!coreclr_t::create+0x44 [D:\a_work\1\s\src\native\corehost\hostpolicy\coreclr.cpp @ 37] 19 000000bcde98f1a0 00007fffd9d8a62f hostpolicy!anonymous namespace'::create_coreclr+0x158 [D:\a\_work\1\s\src\native\corehost\hostpolicy\hostpolicy.cpp @ 81] 1a 000000bcde98f200 00007fffd9f1b800 hostpolicy!corehost_main+0x12f [D:\a\_work\1\s\src\native\corehost\hostpolicy\hostpolicy.cpp @ 426] 1b 000000bcde98f3b0 00007fffd9f1e48a hostfxr!execute_app+0x330 [D:\a\_work\1\s\src\native\corehost\fxr\fx_muxer.cpp @ 146] 1c 000000bcde98f4b0 00007fffd9f20746 hostfxr!anonymous namespace'::read_config_and_execute+0xaa [D:\a_work\1\s\src\native\corehost\fxr\fx_muxer.cpp @ 533] 1d 000000bcde98f5b0 00007fffd9f1eaf4 hostfxr!fx_muxer_t::handle_exec_host_command+0x166 [D:\a_work\1\s\src\native\corehost\fxr\fx_muxer.cpp @ 1018] 1e 000000bcde98f660 00007fffd9f185c3 hostfxr!fx_muxer_t::execute+0x494 [D:\a_work\1\s\src\native\corehost\fxr\fx_muxer.cpp @ 579] 1f 000000bcde98f7a0 00007ff762432a4f hostfxr!hostfxr_main_startupinfo+0xb3 [D:\a_work\1\s\src\native\corehost\fxr\hostfxr.cpp @ 61] 20 000000bcde98f8a0 00007ff762432dcb pwsh_exe!exe_start+0x8ff [D:\a_work\1\s\src\native\corehost\corehost.cpp @ 251] 21 000000bcde98fa70 00007ff762434278 pwsh_exe!wmain+0xab [D:\a_work\1\s\src\native\corehost\corehost.cpp @ 322] 22 (Inline Function) ---------------- pwsh_exe!invoke_main+0x22 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 90] 23 000000bcde98faa0 00007ff843cb7344 pwsh_exe!__scrt_common_main_seh+0x10c [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288] 24 000000bcde98fae0 00007ff843ea26b1 KERNEL32!BaseThreadInitThunk+0x14 25 000000bcde98fb10 00000000`00000000 ntdll!RtlUserThreadStart+0x21

Still, it would be interesting to see if the other affected people are using SentinelOne.

— Reply to this email directly, view it on GitHub https://github.com/dotnet/runtime/issues/93325#issuecomment-1759761577, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACATC227RG2K2WDZCEYVQLX677NRANCNFSM6AAAAAA53IGOWQ . You are receiving this because you authored the thread.Message ID: @.***>

tlewers-fhb commented 1 year ago

This is weird how many reports of this mysterious setting of DOTNET_TieredCompilation has been recently reported. @kevingosse does it happen when you run dotnet from cmd.exe instead of powershell? If it is powershell specific, then I'd ping the powershell developers to see if they have any idea on what's going on.

I have the same issue and in my instance it was if ran from cmd or just a normal powershell window but fails if ran from my build server or from a powershell for visual studio 2022.

stevebelskie commented 1 year ago

I can add another case of running into this issue + using Sentinel One. Removing the offending environment variable DOTNET_TieredCompilation in the powershell profile appears to alleviate the issue.

mangod9 commented 1 year ago

Closing as dupe of https://github.com/dotnet/runtime/issues/91695