Skip to content

Test failure: System.Private.Xml.Tests #87506

Closed

Description

@BruceForstall

5 tests fail in System.Private.Xml.Tests under JitStress (and pass without JitStress). Linux/x64.

https://dev.azure.com/dnceng-public/public/_build/results?buildId=304266&view=ms.vss-test-web.build-test-results-tab&runId=6175526&resultId=188814&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab

DOTNET_TieredCompilation=0
DOTNET_JitStress=33c
  Starting:    System.Private.Xml.Tests (parallel test collections = on, max threads = 2)
    System.Xml.XmlSchemaValidatorApiTests.TCXmlSchemaValidatorMisc.NullPointerExceptionInXSDValidation [FAIL]
      System.NullReferenceException : Object reference not set to an instance of an object.
      Stack Trace:
        /_/src/libraries/System.Private.CoreLib/src/System/SpanHelpers.Byte.cs(734,0): at System.SpanHelpers.SequenceEqual(Byte& first, Byte& second, UIntPtr length)
        /_/src/libraries/System.Private.Xml/src/System/Xml/XmlConvert.cs(762,0): at System.Xml.XmlConvert.TryToBoolean(String s, Boolean& result)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs(1538,0): at System.Xml.Schema.Datatype_boolean.TryParseValue(String s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, Object& typedValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidator.cs(1963,0): at System.Xml.Schema.XmlSchemaValidator.CheckElementValue(String stringValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidator.cs(1436,0): at System.Xml.Schema.XmlSchemaValidator.ValidateAtomicValue(String stringValue, XmlSchemaSimpleType& memberType)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidator.cs(1188,0): at System.Xml.Schema.XmlSchemaValidator.InternalValidateEndElement(XmlSchemaInfo schemaInfo, Object typedValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Core/XsdValidatingReader.cs(2132,0): at System.Xml.XsdValidatingReader.ProcessEndElementEvent()
        /_/src/libraries/System.Private.Xml/src/System/Xml/Core/XsdValidatingReader.cs(1414,0): at System.Xml.XsdValidatingReader.Read()
        /_/src/libraries/System.Private.Xml/tests/XmlSchema/XmlSchemaValidatorApi/ValidateMisc.cs(995,0): at System.Xml.XmlSchemaValidatorApiTests.TCXmlSchemaValidatorMisc.NullPointerExceptionInXSDValidation()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(59,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
    System.Xml.XmlSchemaValidatorApiTests.TCValidateEndElement.TestXmlSchemaInfoValuesAfterUnionValidation_Without_With_ValidationEndElementOverload(overload: "first") [FAIL]
      System.NullReferenceException : Object reference not set to an instance of an object.
      Stack Trace:
        /_/src/libraries/System.Private.Xml/src/System/Xml/XmlConvert.cs(762,0): at System.Xml.XmlConvert.TryToBoolean(String s, Boolean& result)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs(1538,0): at System.Xml.Schema.Datatype_boolean.TryParseValue(String s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, Object& typedValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs(1254,0): at System.Xml.Schema.Datatype_union.TryParseValue(String s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, Object& typedValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidator.cs(1963,0): at System.Xml.Schema.XmlSchemaValidator.CheckElementValue(String stringValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidator.cs(1436,0): at System.Xml.Schema.XmlSchemaValidator.ValidateAtomicValue(String stringValue, XmlSchemaSimpleType& memberType)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidator.cs(1188,0): at System.Xml.Schema.XmlSchemaValidator.InternalValidateEndElement(XmlSchemaInfo schemaInfo, Object typedValue)
        /_/src/libraries/System.Private.Xml/tests/XmlSchema/XmlSchemaValidatorApi/ValidateText_EndElement.cs(690,0): at System.Xml.XmlSchemaValidatorApiTests.TCValidateEndElement.TestXmlSchemaInfoValuesAfterUnionValidation_Without_With_ValidationEndElementOverload(String overload)
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(59,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
    System.Xml.XmlSchemaValidatorApiTests.TCValidateEndElement.TestXmlSchemaInfoValuesAfterUnionValidation_Without_With_ValidationEndElementOverload(overload: "second") [FAIL]
      System.NullReferenceException : Object reference not set to an instance of an object.
      Stack Trace:
        /_/src/libraries/System.Private.Xml/src/System/Xml/XmlConvert.cs(762,0): at System.Xml.XmlConvert.TryToBoolean(String s, Boolean& result)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs(1538,0): at System.Xml.Schema.Datatype_boolean.TryParseValue(String s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, Object& typedValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs(1254,0): at System.Xml.Schema.Datatype_union.TryParseValue(String s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, Object& typedValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs(1288,0): at System.Xml.Schema.Datatype_union.TryParseValue(Object value, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, Object& typedValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidator.cs(1462,0): at System.Xml.Schema.XmlSchemaValidator.ValidateAtomicValue(Object parsedValue, XmlSchemaSimpleType& memberType)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidator.cs(1192,0): at System.Xml.Schema.XmlSchemaValidator.InternalValidateEndElement(XmlSchemaInfo schemaInfo, Object typedValue)
        /_/src/libraries/System.Private.Xml/tests/XmlSchema/XmlSchemaValidatorApi/ValidateText_EndElement.cs(693,0): at System.Xml.XmlSchemaValidatorApiTests.TCValidateEndElement.TestXmlSchemaInfoValuesAfterUnionValidation_Without_With_ValidationEndElementOverload(String overload)
           at InvokeStub_TCValidateEndElement.TestXmlSchemaInfoValuesAfterUnionValidation_Without_With_ValidationEndElementOverload(Object, Object, IntPtr*)
           at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
    System.Xml.XmlSchemaTests.TC_SchemaSet_Misc.Dev10_40509 [FAIL]
      System.NullReferenceException : Object reference not set to an instance of an object.
      Stack Trace:
        /_/src/libraries/System.Private.Xml/src/System/Xml/XmlConvert.cs(762,0): at System.Xml.XmlConvert.TryToBoolean(String s, Boolean& result)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs(1538,0): at System.Xml.Schema.Datatype_boolean.TryParseValue(String s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, Object& typedValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidator.cs(1928,0): at System.Xml.Schema.XmlSchemaValidator.CheckAttributeValue(Object value, SchemaAttDef attdef)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidator.cs(631,0): at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String localName, String namespaceUri, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Dom/DocumentSchemaValidator.cs(398,0): at System.Xml.DocumentSchemaValidator.ValidateAttributes(XmlElement elementNode)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Dom/DocumentSchemaValidator.cs(359,0): at System.Xml.DocumentSchemaValidator.ValidateElement()
        /_/src/libraries/System.Private.Xml/src/System/Xml/Dom/DocumentSchemaValidator.cs(365,0): at System.Xml.DocumentSchemaValidator.ValidateElement()
        /_/src/libraries/System.Private.Xml/src/System/Xml/Dom/DocumentSchemaValidator.cs(365,0): at System.Xml.DocumentSchemaValidator.ValidateElement()
        /_/src/libraries/System.Private.Xml/src/System/Xml/Dom/DocumentSchemaValidator.cs(365,0): at System.Xml.DocumentSchemaValidator.ValidateElement()
        /_/src/libraries/System.Private.Xml/src/System/Xml/Dom/DocumentSchemaValidator.cs(164,0): at System.Xml.DocumentSchemaValidator.Validate(XmlNode nodeToValidate)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlDocument.cs(1503,0): at System.Xml.XmlDocument.Validate(ValidationEventHandler validationEventHandler, XmlNode nodeToValidate)
        /_/src/libraries/System.Private.Xml/tests/XmlSchema/XmlSchemaSet/TC_SchemaSet_Misc.cs(1067,0): at System.Xml.XmlSchemaTests.TC_SchemaSet_Misc.Dev10_40509()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(59,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
    System.Xml.XmlSchemaTests.TC_SchemaSet_Misc.v106 [FAIL]
      System.NullReferenceException : Object reference not set to an instance of an object.
      Stack Trace:
        /_/src/libraries/System.Private.Xml/src/System/Xml/XmlConvert.cs(762,0): at System.Xml.XmlConvert.TryToBoolean(String s, Boolean& result)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs(1538,0): at System.Xml.Schema.Datatype_boolean.TryParseValue(String s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, Object& typedValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs(553,0): at System.Xml.Schema.DatatypeImplementation.ParseValue(String s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, Boolean createAtomicValue)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaSetCompiler.cs(2554,0): at System.Xml.Schema.Compiler.SetDefaultFixed(XmlSchemaAttribute xa, SchemaAttDef decl)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaSetCompiler.cs(2502,0): at System.Xml.Schema.Compiler.CompileAttribute(XmlSchemaAttribute xa)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaSetCompiler.cs(2157,0): at System.Xml.Schema.Compiler.CompileLocalAttributes(XmlSchemaComplexType baseType, XmlSchemaComplexType derivedType, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlSchemaDerivationMethod derivedBy)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaSetCompiler.cs(1034,0): at System.Xml.Schema.Compiler.CompileComplexContentExtension(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentExtension complexExtension)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaSetCompiler.cs(829,0): at System.Xml.Schema.Compiler.CompileComplexType(XmlSchemaComplexType complexType)
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaSetCompiler.cs(216,0): at System.Xml.Schema.Compiler.Compile()
        /_/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSet.cs(538,0): at System.Xml.Schema.XmlSchemaSet.Compile()
        /_/src/libraries/System.Private.Xml/tests/XmlSchema/XmlSchemaSet/TC_SchemaSet_Misc.cs(536,0): at System.Xml.XmlSchemaTests.TC_SchemaSet_Misc.v106()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(59,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
  Finished:    System.Private.Xml.Tests

Many more failures with DOTNET_JitStress=38:

https://dev.azure.com/dnceng-public/public/_build/results?buildId=304266&view=ms.vss-test-web.build-test-results-tab&runId=6175528&paneView=debug

Maybe the same issue as #86563?

@dotnet/jit-contrib

Activity

  1. added
    os-linuxLinux OS (any supported distro)
    JitStressCLR JIT issues involving JIT internal stress modes
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    on Jun 13, 2023
  2. added this to the 8.0.0 milestone on Jun 13, 2023
  3. AndyAyersMS commented on Jun 20, 2023

    @AndyAyersMS
    Member

    Building at 8b25fd3, this one was isolated via DOTNET_JitStressRange to

    # 31129: JIT compiled System.Xml.XmlConvert:TryToBoolean(System.String,byref):System.Exception [FullOpts, IL size=131, code size=838, hash=0x8bdadc72 JitStress]
    

    This enables STRESS_PHYSICAL_PROMOTION and the promotion updates also involve QMARKs. So guessing this is the same issue as seen in #87508

    cc @jakobbotsch

  4. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Jun 20, 2023
  5. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Jun 20, 2023
  6. ghost locked as resolved and limited conversation to collaborators on Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

JitStressCLR JIT issues involving JIT internal stress modesarch-x64area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIos-linuxLinux OS (any supported distro)

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions