Repository navigation
[wasm] Linker crashing with System.NotImplementedException: switch #71848
Copy link
Copy link
Closed
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-AssemblyLoader-coreclronly use for closed issuesonly use for closed issuesdisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issuelinkable-frameworkIssues associated with delivering a linker friendly frameworkIssues associated with delivering a linker friendly framework
Description
Failing on an unrelated #71821 build.
ILLink : error IL1012: IL Trimmer has encountered an unexpected error. Please report the issue at https://github.com/dotnet/linker/issues [/__w/1/s/src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/System.Text.RegularExpressions.Tests.csproj]
##[error]ILLink(0,0): error IL1012: (NETCORE_ENGINEERING_TELEMETRY=Build) IL Trimmer has encountered an unexpected error. Please report the issue at https://github.com/dotnet/linker/issues
Fatal error in IL Linker
Unhandled exception. System.NotImplementedException: switch
at Mono.Linker.Steps.UnreachableBlocksOptimizer.BodyReducer.IsConstantBranch(OpCode opCode, Int32 operand)
at Mono.Linker.Steps.UnreachableBlocksOptimizer.BodyReducer.RemoveConditions()
at Mono.Linker.Steps.UnreachableBlocksOptimizer.BodyReducer.RewriteBody()
at Mono.Linker.Steps.UnreachableBlocksOptimizer.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method, DependencyInfo& reason, MessageOrigin& origin)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
at Mono.Linker.Pipeline.Process(LinkContext context)
at Mono.Linker.Driver.Run(ILogger customLogger)
at Mono.Linker.Driver.Main(String[] args)
/__w/1/s/.dotnet/sdk/7.0.100-preview.5.22307.18/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ILLink.targets(110,5): error NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false. [/__w/1/s/src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/System.Text.RegularExpressions.Tests.csproj]
##[error].dotnet/sdk/7.0.100-preview.5.22307.18/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ILLink.targets(110,5): error NETSDK1144: (NETCORE_ENGINEERING_TELEMETRY=Build) Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false.
Interestingly, this is failing only for the wasm/highresource_aot jobs, and not the regular AOT ones.
- highresource_aot: runs some library tests, and run them on the build machine itself
- regular EAT/AOT: runs the tests on helix
Could it be using an older linker?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-AssemblyLoader-coreclronly use for closed issuesonly use for closed issuesdisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issuelinkable-frameworkIssues associated with delivering a linker friendly frameworkIssues associated with delivering a linker friendly framework
Activity
[-]Linker crashing with `System.NotImplementedException: switch`[/-][+][wasm] Linker crashing with `System.NotImplementedException: switch`[/+]lewing commentedon Jul 8, 2022
System.Text.RegularExpressions.Tests is high resource so that makes sense
radical commentedon Jul 9, 2022
System.Text.RegularExpressions.Testsisn't built in EAT, or AOT builds. Only in the highresource_aot .[wasm] Disable tests failing on HighResourceAOT job
pavelsavara commentedon Jul 9, 2022
Another log
[wasm] Disable `S.T.RegularExpressions FunctionalTests` tests failing…
vitek-karas commentedon Jul 12, 2022
dotnet/linker#2889 has a fix to make linker not crash.
[wasm] Re-enable `System.Text.RegularExpressions.Tests.csproj`
[wasm] Re-enable `System.Text.RegularExpressions.Tests.csproj` (#72076)