Skip to content

Sporadic Roslyn crash with .NET 8.0.404 #110245

@pepone

Description

@pepone

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions