Skip to content

[iOS] [System.Text.Json] Number_AsCollectionElement_RoundTrip test failure on device #66220

Open

Description

@steveisok

The suite will crash when running

RunAsCollectionElementTest(JsonNumberTestData.NullableBytes);

On debug, an assert is triggered at

g_assert (m_class_is_valuetype (mono_object_class (obj)));

Here are the first handful of frames that may help:

 frame #0: 0x0000000100b8397c System.Text.Json.Tests`mono_object_unbox_internal(obj=0x0000000000000001) at object-internals.h:2008:2
    frame #1: 0x0000000100b83898 System.Text.Json.Tests`mono_nullable_init(buf="\U00000001", value=0x0000000000000001, klass=0x000000012c9a3048) at object.c:3461:46
    frame #2: 0x0000000100cf8f0c System.Text.Json.Tests`mono_arch_start_dyn_call(info=0x00000002836ffba0, args=0x000000016fe21ef0, ret="P \xe2o\U00000001", buf="") at mini-arm64.c:1914:6
    frame #3: 0x0000000100cb0910 System.Text.Json.Tests`mono_jit_runtime_invoke(method=0x000000028129eb20, obj=0x0000000119004878, params=0x000000016fe221c8, exc=0x000000016fe21fb0, error=0x000000016fe22148) at mini-runtime.c:3465:3
    frame #4: 0x0000000100b818e4 System.Text.Json.Tests`do_runtime_invoke(method=0x000000028129eb20, obj=0x0000000119004878, params=0x000000016fe221c8, exc=0x0000000000000000, error=0x000000016fe22148) at object.c:2397:11
    frame #5: 0x0000000100b7cda0 System.Text.Json.Tests`mono_runtime_invoke_checked(method=0x000000028129eb20, obj=0x0000000119004878, params=0x000000016fe221c8, error=0x000000016fe22148) at object.c:2565:9
    frame #6: 0x0000000100cbaa08 System.Text.Json.Tests`mono_gsharedvt_constrained_call(mp=0x000000016fe22330, cmethod=0x0000000281292820, klass=0x0000000130ae0dc8, deref_args="\U00000002", args=0x000000016fe221c8) at jit-icalls.c:1473:6
    frame #7: 0x0000000104fd5d18 System.Text.Json.Tests`wrapper_managed_to_native_object___icall_wrapper_mono_gsharedvt_constrained_call_intptr_intptr_intptr_intptr_intptr + 152
    frame #8: 0x000000010695d218 System.Text.Json.Tests`System_Text_Json_Serialization_Converters_ICollectionOfTConverter_2_TCollection_GSHAREDVT_TElement_GSHAREDVT_Add_TElement_GSHAREDVT_modreqSystem_Runtime_InteropServices_InAttribute__System_Text_Json_ReadStack_(this=0x0000000119004238, value=6172058768, state=6172059824) at <unknown>:1
    frame #9: 0x00000001050e8a1c System.Text.Json.Tests`gsharedvt_out_trampoline + 220

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Mar 4, 2022
  2. steveisok commented on Mar 4, 2022

    @steveisok
    MemberAuthor
  3. self-assigned this
    on Mar 8, 2022
  4. added this to the 7.0.0 milestone on Apr 1, 2022
  5. modified the milestones: 7.0.0, 8.0.0 on Aug 12, 2022
  6. modified the milestones: 8.0.0, Future on Aug 8, 2023
  7. removed their assignment
    on Mar 22, 2024
  8. pavelsavara commented on Jul 29, 2026

    @pavelsavara
    Member

    Edit: I added dedicated #131537

  9. dotnet-policy-service commented on Jul 29, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
    See info in area-owners.md if you want to be subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions