-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzers
Description
Description
Running illink on a specific .NET for macOS project crashes illink.
Reproduction Steps
Download and run test.sh.
You'll probably have to open test.sh and modify the DOTNET and ILLINK paths at the top of the file for your local paths.
Expected behavior
Successful execution.
Actual behavior
Fatal error in IL Linker
Unhandled exception. Mono.Linker.InternalErrorException: Type ShareExtensionTest.ShareViewController already has applied All.
at Mono.Linker.Steps.MarkStep.ApplyPreserveInfo(TypeDefinition type) in /Users/rolf/work/dotnet/runtime/src/tools/illink/src/linker/Linker.Steps/MarkStep.cs:line 2798
at Mono.Linker.Steps.MarkStep.ProcessType(TypeDefinition type) in /Users/rolf/work/dotnet/runtime/src/tools/illink/src/linker/Linker.Steps/MarkStep.cs:line 2116
at Mono.Linker.Steps.MarkStep.TypeDefinitionNode.GetStaticDependencies(NodeFactory context) in /Users/rolf/work/dotnet/runtime/src/tools/illink/src/linker/Linker.Steps/MarkStep.TypeDefinitionNode.cs:line 31
at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.GetStaticDependenciesImpl(DependencyNodeCore`1 node) in /Users/rolf/work/dotnet/runtime/src/coreclr/tools/aot/ILCompiler.DependencyAnalysisFramework/DependencyAnalyzer.cs:line 182
at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.GetStaticDependencies(DependencyNodeCore`1 node) in /Users/rolf/work/dotnet/runtime/src/coreclr/tools/aot/ILCompiler.DependencyAnalysisFramework/DependencyAnalyzer.cs:line 222
at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ProcessMarkStack() in /Users/rolf/work/dotnet/runtime/src/coreclr/tools/aot/ILCompiler.DependencyAnalysisFramework/DependencyAnalyzer.cs:line 257
at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ComputeMarkedNodes() in /Users/rolf/work/dotnet/runtime/src/coreclr/tools/aot/ILCompiler.DependencyAnalysisFramework/DependencyAnalyzer.cs:line 308
at Mono.Linker.Steps.MarkStep.Process() in /Users/rolf/work/dotnet/runtime/src/tools/illink/src/linker/Linker.Steps/MarkStep.cs:line 371
at Mono.Linker.Steps.MarkStep.Process(LinkContext context) in /Users/rolf/work/dotnet/runtime/src/tools/illink/src/linker/Linker.Steps/MarkStep.cs:line 245
at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step) in /Users/rolf/work/dotnet/runtime/src/tools/illink/src/linker/Linker/Pipeline.cs:line 178
at Mono.Linker.Pipeline.Process(LinkContext context) in /Users/rolf/work/dotnet/runtime/src/tools/illink/src/linker/Linker/Pipeline.cs:line 167
at Mono.Linker.Driver.Run(ILogger customLogger) in /Users/rolf/work/dotnet/runtime/src/tools/illink/src/linker/Linker/Driver.cs:line 837
at Mono.Linker.Driver.Main(String[] args) in /Users/rolf/work/dotnet/runtime/src/tools/illink/src/linker/Linker/Driver.cs:line 68
at Mono.Linker.Driver.Main(String[] args) in /Users/rolf/work/dotnet/runtime/src/tools/illink/src/linker/Linker/Driver.cs:line 72
Full output is inside the repro zip in testrunwithdebugstatement.txt.
Regression?
Yes.
It started happening in fbb67a6.
CC @jtschuster
Known Workarounds
No response
Configuration
No response
Other information
No response
jtschuster
Metadata
Metadata
Assignees
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzers
Type
Projects
Status
No status