Skip to content

System.Text.Json.Serialization.Tests.ConstructorTests_StringTValue.OtherPropertiesAreSet fails with nullref #33928

Closed

Description

@trylek

Build job: Libraries Test Run release mono Linux x64 Release

Example pipeline: https://dev.azure.com/dnceng/public/_build/results?buildId=568935&view=logs&j=3b5945b0-87a7-52cf-843a-406c21a8e27e&t=7eb56c92-15af-5ace-3e2c-14c3e65847f5

Failure log:

  Starting:    System.Text.Json.Tests (parallel test collections = on, max threads = 2)
    System.Text.Json.Serialization.Tests.ConstructorTests_StringTValue.OtherPropertiesAreSet [FAIL]
      System.NullReferenceException : Object reference not set to an instance of an object
      Stack Trace:
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Object/ObjectWithParameterizedConstructorConverter.Small.cs(25,0): at System.Text.Json.Serialization.Converters.SmallObjectWithParameterizedConstructorConverter`5[[System.Text.Json.Serialization.Tests.Point_2D_With_ExtData_Class, System.Text.Json.Tests, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51],[System.Int32, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Object, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].CreateObject(ReadStackFrame& frame)
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Object/ObjectWithParameterizedConstructorConverter.cs(35,0): at System.Text.Json.Serialization.Converters.ObjectWithParameterizedConstructorConverter`1[[System.Text.Json.Serialization.Tests.Point_2D_With_ExtData_Class, System.Text.Json.Tests, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, Point_2D_With_ExtData_Class& value)
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.cs(159,0): at System.Text.Json.Serialization.JsonConverter`1[[System.Text.Json.Serialization.Tests.Point_2D_With_ExtData_Class, System.Text.Json.Tests, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, Point_2D_With_ExtData_Class& value)
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonPropertyInfoOfTTypeToConvert.cs(164,0): at System.Text.Json.JsonPropertyInfo`1[[System.Text.Json.Serialization.Tests.Point_2D_With_ExtData_Class, System.Text.Json.Tests, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader)
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Object/ObjectDefaultConverter.cs(379,0): at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1[[System.Text.Json.Serialization.Tests.Person_Class, System.Text.Json.Tests, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].ReadPropertyValue(Object obj, ReadStack& state, Utf8JsonReader& reader, JsonPropertyInfo jsonPropertyInfo, Boolean useExtensionProperty)
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Object/ObjectWithParameterizedConstructorConverter.cs(67,0): at System.Text.Json.Serialization.Converters.ObjectWithParameterizedConstructorConverter`1[[System.Text.Json.Serialization.Tests.Person_Class, System.Text.Json.Tests, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, Person_Class& value)
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.cs(159,0): at System.Text.Json.Serialization.JsonConverter`1[[System.Text.Json.Serialization.Tests.Person_Class, System.Text.Json.Tests, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, Person_Class& value)
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonConverterOfT.ReadCore.cs(61,0): at System.Text.Json.Serialization.JsonConverter`1[[System.Text.Json.Serialization.Tests.Person_Class, System.Text.Json.Tests, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Read.Helpers.cs(26,0): at System.Text.Json.JsonSerializer.ReadCore[Person_Class](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Read.Helpers.cs(18,0): at System.Text.Json.JsonSerializer.ReadCore[Person_Class](Utf8JsonReader& reader, Type returnType, JsonSerializerOptions options)
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Read.String.cs(116,0): at System.Text.Json.JsonSerializer.Deserialize[Person_Class](String json, Type returnType, JsonSerializerOptions options)
        /_/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializer.Read.String.cs(47,0): at System.Text.Json.JsonSerializer.Deserialize[Person_Class](String json, JsonSerializerOptions options)
        /_/src/libraries/System.Text.Json/tests/Serialization/DeserializationWrapper.cs(26,0): at System.Text.Json.Serialization.Tests.DeserializationWrapper.StringTValueSerializerWrapper.Deserialize[Person_Class](String json, JsonSerializerOptions options)
        /_/src/libraries/System.Text.Json/tests/Serialization/ConstructorTests.ParameterMatching.cs(307,0): at System.Text.Json.Serialization.Tests.ConstructorTests.OtherPropertiesAreSet()
        /_/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(339,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  Finished:    System.Text.Json.Tests
=== TEST EXECUTION SUMMARY ===
   System.Text.Json.Tests  Total: 11731, Errors: 0, Failed: 1, Skipped: 0, Time: 37.764s

Activity

  1. jkotas commented on Mar 22, 2020

    @jkotas
    Member

    Hit again in #33933

  2. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on Mar 22, 2020
  3. self-assigned this
    on Mar 22, 2020
  4. added this to the 5.0 milestone on Mar 22, 2020
  5. ericstj commented on Mar 23, 2020

    @ericstj
    Member

    Here's the data from the last 100 builds:

    Build Kind Console Log
    568452 PR #33852 console.log
    568335 PR #33674 console.log
    568266 Rolling console.log
    567761 PR #33892 console.log
    568935 Rolling console.log
    568318 PR #33911 console.log
    568678 Rolling console.log
    569159 PR #33933 console.log
    568167 Rolling console.log
  6. added
    disabled-testThe test is disabled in source code against the issue
    and removed
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on Mar 24, 2020
  7. added and removed
    untriagedNew issue has not been triaged by the area owner
    on Mar 24, 2020
  8. ghost locked as resolved and limited conversation to collaborators on Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions