Skip to content

[wasm] IL1005: NRE in processing System.PlatformDetection.GetLinqExpressionsBuiltWithIsInterpretingOnly() #56819

@radical

Description

@radical

Build failed for Build Browser wasm Release AllSubsets_Mono_EAT, PR: #52004

System.Dynamic.Runtime.Tests -> /__w/1/s/artifacts/bin/System.Dynamic.Runtime.Tests/net6.0-Release/browser-wasm/System.Dynamic.Runtime.Tests.dll

##[error]ILLink(0,0): error IL1005: (NETCORE_ENGINEERING_TELEMETRY=Build) System.PlatformDetection: Error processing method 'System.PlatformDetection.GetLinqExpressionsBuiltWithIsInterpretingOnly()' in assembly 'TestUtilities.dll'
  Mono.Linker.LinkerFatalErrorException: ILLink: error IL1005: System.PlatformDetection: Error processing method 'System.PlatformDetection.GetLinqExpressionsBuiltWithIsInterpretingOnly()' in assembly 'TestUtilities.dll'
   ---> System.NullReferenceException: Object reference not set to an instance of an object.
     at Mono.Linker.Steps.DiscoverOperatorsHandler.NonNullableType(TypeReference type) in illink.dll:token 0x6000377+0x2c
     at Mono.Linker.Steps.DiscoverOperatorsHandler.IsOperator(MethodDefinition method, TypeDefinition& otherType) in illink.dll:token 0x6000378+0x552
     at Mono.Linker.Steps.DiscoverOperatorsHandler.ProcessCustomOperators(TypeDefinition type, Boolean mark) in illink.dll:token 0x6000375+0x22
     at Mono.Linker.Steps.DiscoverOperatorsHandler.CheckForLinqExpressions(TypeDefinition type) in illink.dll:token 0x6000373+0x4b
     at Mono.Linker.Steps.DiscoverOperatorsHandler.ProcessType(TypeDefinition type) in illink.dll:token 0x6000372+0x0
     at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference, DependencyInfo reason, Nullable`1 origin) in illink.dll:token 0x6000403+0x16e
     at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference, DependencyInfo reason, Nullable`1 origin) in illink.dll:token 0x6000403+0x1b7
     at Mono.Linker.Steps.MarkStep.MarkTypeVisibleToReflection(TypeReference type, TypeDefinition definition, DependencyInfo& reason) in illink.dll:token 0x60003fd+0x1f
     at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction, MethodDefinition method, Boolean& requiresReflectionMethodBodyScanner) in illink.dll:token 0x6000452+0x195
     at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body) in illink.dll:token 0x600044f+0x131
     at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method, DependencyInfo& reason, Scope& scope) in illink.dll:token 0x6000440+0x34a
     at Mono.Linker.Steps.MarkStep.ProcessQueue() in illink.dll:token 0x60003c9+0x24
     --- End of inner exception stack trace ---
     at Mono.Linker.Steps.MarkStep.ProcessQueue() in illink.dll:token 0x60003c9+0xaa
     at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue() in illink.dll:token 0x60003c6+0xa
     at Mono.Linker.Steps.MarkStep.Process() in illink.dll:token 0x60003c3+0x0
     at Mono.Linker.Steps.MarkStep.Process(LinkContext context) in illink.dll:token 0x60003ba+0x52
     at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step) in illink.dll:token 0x6000288+0x0
     at Mono.Linker.Pipeline.Process(LinkContext context) in illink.dll:token 0x6000287+0xf
     at Mono.Linker.Driver.Run(ILogger customLogger) in illink.dll:token 0x600011a+0x20

cc @eerhardt

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmWebAssembly architecturearea-VM-meta-monodisabled-testThe test is disabled in source code against the issuein-prThere is an active PR which will close this issue when it is mergedtrimming-for-aot`EnableAggressiveTrimming=true` used for running tests with AOT

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions