Skip to content

ILC crash in CI - NullReferenceException in XPath while processing substitution XML #108743

@vitek-karas

Description

@vitek-karas

Occurred in https://dev.azure.com/dnceng-public/public/_build/results?buildId=836362&view=results - windows-x64 Checked NativeAOT

     ---> ILCompiler.CodeGenerationFailedException: Code generation failed for method '[S.P.Reflection.Execution]Internal.Runtime.CompilerHelpers.LibraryInitializer.InitializeLibrary()'
     ---> ILCompiler.NativeAotFatalErrorException: ILC: error IL1013: Error processing 'name'.
     ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at System.Xml.XPath.XNodeNavigator.MoveToFirstChild() + 0x22
       at MS.Internal.Xml.XPath.XPathChildIterator.MoveNext() + 0x19
       at System.Xml.XPath.XPathNodeIterator.Enumerator.MoveNext() + 0xd6
       at ILCompiler.ProcessLinkerXmlBase.ProcessAssemblies(XPathNavigator) + 0x157
       at ILCompiler.ProcessLinkerXmlBase.ProcessXml(Boolean) + 0xfa
       --- End of inner exception stack trace ---
       at ILCompiler.ProcessLinkerXmlBase.ProcessXml(Boolean) + 0x1d9
       at ILCompiler.SubstitutionProvider.AssemblyFeatureInfo..ctor(EcmaModule, Logger, IReadOnlyDictionary`2, BodyAndFieldSubstitutions) + 0x1ce
       at ILCompiler.SubstitutionProvider.FeatureSwitchHashtable.CreateValueFromKey(EcmaModule) + 0x4e
       at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey) + 0x18
       at ILCompiler.SubstitutionProvider.GetSubstitution(MethodDesc) + 0x77
       at ILCompiler.SubstitutedILProvider.GetMethodIL(MethodDesc) + 0x1b

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions