Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sporadic Roslyn crash with .NET 8.0.404 #110245

Open
pepone opened this issue Nov 28, 2024 · 1 comment
Open

Sporadic Roslyn crash with .NET 8.0.404 #110245

pepone opened this issue Nov 28, 2024 · 1 comment
Labels
area-TypeSystem-coreclr untriaged New issue has not been triaged by the area owner

Comments

@pepone
Copy link
Contributor

pepone commented Nov 28, 2024

We are seeing some sporadic dotnet crash in the CI builds of https://github.com/zeroc-ice/ice using .NET 8.0.404 on macOS

When the crash happens the build log shows this error:

Compiling ../../Test.ice Generating -> generated/Test.cs
2024-11-28T00:19:20.3636190Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error : Unhandled exception. System.MissingMethodException: Method not found: '!!0 Roslyn.Utilities.RoslynLazyInitializer.EnsureInitialized(!!0 ByRef)'. [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3711850Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.Compilation.MarkImportDirectiveAsUsed(SyntaxTree syntaxTree, Int32 position) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3714890Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.Compilation.MarkImportDirectiveAsUsed(SyntaxReference node) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3718030Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.WithUsingNamespacesAndTypesBinder.LookupSymbolsInSingleBinder(LookupResult result, String name, Int32 arity, ConsList`1 basesBeingResolved, LookupOptions options, Binder originalBinder, Boolean diagnose, CompoundUseSiteInfo`1& useSiteInfo) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3721250Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.Binder.LookupSymbolsInternal(LookupResult result, String name, Int32 arity, ConsList`1 basesBeingResolved, LookupOptions options, Boolean diagnose, CompoundUseSiteInfo`1& useSiteInfo) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3777440Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.Binder.LookupAttributeType(LookupResult result, NamespaceOrTypeSymbol qualifierOpt, String name, Int32 arity, ConsList`1 basesBeingResolved, LookupOptions options, Boolean diagnose, CompoundUseSiteInfo`1& useSiteInfo) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3780860Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.Binder.BindNonGenericSimpleNamespaceOrTypeOrAliasSymbol(IdentifierNameSyntax node, BindingDiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics, NamespaceOrTypeSymbol qualifierOpt) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3784250Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeOrAliasSymbol(ExpressionSyntax syntax, BindingDiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3787140Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.Binder.BindTypeOrAlias(ExpressionSyntax syntax, BindingDiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3796050Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.Binder.BindAttributeTypes(ImmutableArray`1 binders, ImmutableArray`1 attributesToBind, Symbol ownerSymbol, NamedTypeSymbol[] boundAttributeTypes, Action`1 beforeAttributePartBound, Action`1 afterAttributePartBound, BindingDiagnosticBag diagnostics) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3804350Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.Symbol.LoadAndValidateAttributes(OneOrMany`1 attributesSyntaxLists, CustomAttributesBag`1& lazyCustomAttributesBag, AttributeLocation symbolPart, Boolean earlyDecodingOnly, Binder binderOpt, Func`2 attributeMatchesOpt, Action`1 beforeAttributePartBound, Action`1 afterAttributePartBound) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3825860Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.Symbols.SourceAssemblySymbol.EnsureAttributesAreBound() [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3837430Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.Symbols.SourceAssemblySymbol.ForceComplete(SourceLocation locationOpt, Predicate`1 filter, CancellationToken cancellationToken) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3843650Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetSourceDeclarationDiagnostics(SyntaxTree syntaxTree, Nullable`1 filterSpanWithinTree, Func`4 locationFilterOpt, Predicate`1 symbolFilter, CancellationToken cancellationToken) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3846840Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetDiagnosticsWithoutSeverityFiltering(CompilationStage stage, Boolean includeEarlierStages, BindingDiagnosticBag builder, Predicate`1 symbolFilter, CancellationToken cancellationToken) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3850300Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetDiagnostics(CompilationStage stage, Boolean includeEarlierStages, DiagnosticBag diagnostics, Predicate`1 symbolFilter, CancellationToken cancellationToken) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3857430Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CommonCompiler.CompileAndEmit(TouchedFileLogger touchedFilesLogger, Compilation& compilation, ImmutableArray`1 analyzers, ImmutableArray`1 generators, ImmutableArray`1 additionalTextFiles, AnalyzerConfigSet analyzerConfigSet, ImmutableArray`1 sourceFileAnalyzerConfigOptions, ImmutableArray`1 embeddedTexts, DiagnosticBag diagnostics, ErrorLogger errorLogger, CancellationToken cancellationToken, CancellationTokenSource& analyzerCts, AnalyzerDriver& analyzerDriver, Nullable`1& generatorTimingInfo) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3866370Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CommonCompiler.RunCore(TextWriter consoleOutput, ErrorLogger errorLogger, CancellationToken cancellationToken) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3872550Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CommonCompiler.Run(TextWriter consoleOutput, CancellationToken cancellationToken) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3878480Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.CommandLine.Csc.<>c__DisplayClass1_0.<Run>b__0(TextWriter tw) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3880830Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.CommandLine.Csc.Run(String[] args, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3883880Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CommandLine.BuildClient.RunCompilation(IEnumerable`1 originalArguments, BuildPaths buildPaths, TextWriter textWriter, String pipeName) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3886690Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CommandLine.BuildClient.Run(IEnumerable`1 arguments, RequestLanguage language, CompileFunc compileFunc, CompileOnServerFunc compileOnServerFunc, ICompilerServerLogger logger) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3888910Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.MainCore(String[] args) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]
2024-11-28T00:19:20.3890880Z /Users/runner/.dotnet/sdk/8.0.404/Roslyn/Microsoft.CSharp.Core.targets(85,5): error :    at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.Main(String[] args) [/Users/runner/work/ice/ice/csharp/test/IceBox/configuration/msbuild/client/client.csproj]

Attached the crash report:

crash-diagnostics-cross-macos-15.zip

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Nov 28, 2024
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TypeSystem-coreclr untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

2 participants