Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vitek-karas opened this issue Oct 10, 2024 · 3 comments

Comments

@vitek-karas
Copy link
Member

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
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Oct 10, 2024
Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

@jkotas
Copy link
Member

jkotas commented Oct 10, 2024

Duplicate of #108031. It should get fixed by updating the LKG toolset to .NET 9 RC2 any day now.

@agocke
Copy link
Member

agocke commented Oct 14, 2024

Closing as duplicate

@agocke agocke closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants