Skip to content

[naot][android] GetHashCode_MultipleSubClasses_ShouldBeUnique test failure #121254

Closed

Description

@sbomer

These tests fail on android native AOT:

        10-31 10:51:19.201  4056  4075 I DOTNET  : [FAIL] System.Reflection.Tests.FieldInfoTests.GetHashCode_MultipleSubClasses_ShouldBeUnique
        10-31 10:51:19.201  4056  4075 I DOTNET  : Assert.Equal() Failure: Values differ
        10-31 10:51:19.201  4056  4075 I DOTNET  : Expected: 0
        10-31 10:51:19.201  4056  4075 I DOTNET  : Actual:   15
        10-31 10:51:19.201  4056  4075 I DOTNET  :    at System.Reflection.Tests.FieldInfoTests.GetHashCode_MultipleSubClasses_ShouldBeUnique() + 0x123
        10-31 10:51:19.201  4056  4075 I DOTNET  :    at libSystem.Reflection.Tests!<BaseAddress>+0x1230a13
        10-31 10:51:19.201  4056  4075 I DOTNET  :    at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xf3
        10-31 10:51:19.207  4056  4075 I DOTNET  : [SKIP] System.Reflection.Tests.FieldInfoTests.GetValueFromRvaField
        10-31 10:51:19.221  4056  4075 I DOTNET  : [FAIL] System.Reflection.Tests.PropertyInfoTests.GetHashCode_MultipleSubClasses_ShouldBeUnique
        10-31 10:51:19.221  4056  4075 I DOTNET  : Assert.Equal() Failure: Values differ
        10-31 10:51:19.221  4056  4075 I DOTNET  : Expected: 0
        10-31 10:51:19.221  4056  4075 I DOTNET  : Actual:   45
        10-31 10:51:19.222  4056  4075 I DOTNET  :    at System.Reflection.Tests.PropertyInfoTests.GetHashCode_MultipleSubClasses_ShouldBeUnique() + 0x121
        10-31 10:51:19.222  4056  4075 I DOTNET  :    at libSystem.Reflection.Tests!<BaseAddress>+0x1230a13
        10-31 10:51:19.222  4056  4075 I DOTNET  :    at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xf3
        10-31 10:51:19.269  4056  4075 I DOTNET  : [FAIL] System.Reflection.Tests.EventInfoTests.GetHashCode_MultipleSubClasses_ShouldBeUnique
        10-31 10:51:19.269  4056  4075 I DOTNET  : Assert.Equal() Failure: Values differ
        10-31 10:51:19.269  4056  4075 I DOTNET  : Expected: 0
        10-31 10:51:19.269  4056  4075 I DOTNET  : Actual:   15
        10-31 10:51:19.269  4056  4075 I DOTNET  :    at System.Reflection.Tests.EventInfoTests.GetHashCode_MultipleSubClasses_ShouldBeUnique() + 0x107
        10-31 10:51:19.269  4056  4075 I DOTNET  :    at libSystem.Reflection.Tests!<BaseAddress>+0x1230a13
        10-31 10:51:19.269  4056  4075 I DOTNET  :    at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xf3
        10-31 10:51:19.323  4056  4075 I DOTNET  : [SKIP] System.Reflection.Tests.AssemblyNameTests.EmptyFusionLog
        10-31 10:51:19.344  4056  4075 I DOTNET  : [FAIL] System.Reflection.Tests.MethodInfoTests.GetHashCode_MultipleSubClasses_ShouldBeUnique
        10-31 10:51:19.344  4056  4075 I DOTNET  : Assert.Equal() Failure: Values differ
        10-31 10:51:19.344  4056  4075 I DOTNET  : Expected: 0
        10-31 10:51:19.344  4056  4075 I DOTNET  : Actual:   27
        10-31 10:51:19.344  4056  4075 I DOTNET  :    at System.Reflection.Tests.MethodInfoTests.GetHashCode_MultipleSubClasses_ShouldBeUnique() + 0x111
        10-31 10:51:19.344  4056  4075 I DOTNET  :    at libSystem.Reflection.Tests!<BaseAddress>+0x1230a13
        10-31 10:51:19.344  4056  4075 I DOTNET  :    at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xf3

Activity

  1. dotnet-policy-service commented on Oct 31, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  2. dotnet-policy-service commented on Oct 31, 2025

    @dotnet-policy-service
    Contributor

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

  3. jkotas commented on Oct 31, 2025

    @jkotas
    Member

    GetHashCode_MultipleSubClasses_ShouldBeUnique

    This is recently added test. Any chance that this is caused by mismatched/stale bits?

  4. sbomer commented on Oct 31, 2025

    @sbomer
    MemberAuthor

    Very possible - I'll try again with a clean build, thanks!

  5. sbomer commented on Oct 31, 2025

    @sbomer
    MemberAuthor

    Yup, looks like that was the problem, thank you.

  6. locked and limited conversation to collaborators on Dec 1, 2025
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

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions