Skip to content

[iOS/tvOS] System.Runtime.Tests crash with signal 4 #116815

Closed

Description

@kotlarmilos

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1072357&view=logs&j=7f49df26-8126-5de3-bf2f-6ac6bde01830&t=c62b6a8c-bf71-5057-7f45-9c355fe0b802
Build error leg or test failing: System.Runtime.Tests

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Application 'net.dot.System.Runtime.Tests' terminated (with exit code '' and/or crashing signal '4).",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Logs:

[08:04:31] dbug: [08:04:22.9258080] 2025-06-14 05:04:23.009 System.Runtime.Tests[51169:174009368] 	[PASS] System.Tests.StringTests.NonRandomizedGetHashCode_EquivalentForStringAndSpan
[08:04:31] dbug: [08:04:22.9823520] 2025-06-14 05:04:23.065 System.Runtime.Tests[51169:174009368] 	[PASS] System.Tests.StringTests.NonRandomizedGetHashCode_EquivalentForStringAndSpan
[08:04:31] dbug: [08:04:23.0862410] 2025-06-14 05:04:23.168 System.Runtime.Tests[51169:174009368] 	[PASS] System.Tests.StringTests.NonRandomizedGetHashCode_EquivalentForStringAndSpan
[08:04:31] dbug: [08:04:23.1905250] 2025-06-14 05:04:23.274 System.Runtime.Tests[51169:174009368] 	[PASS] System.Tests.StringTests.NonRandomizedGetHashCode_EquivalentForStringAndSpan
[08:04:31] dbug: [08:04:23.2425390] Xamarin.Hosting: Process '51169' exited with exit code  or crashing signal 4.
[08:04:31] dbug: [08:04:23.2432150] Application 'net.dot.System.Runtime.Tests' terminated (with exit code '' and/or crashing signal '4).
[08:04:31] dbug: ==================== End of ApplicationLog ====================
[08:04:31] dbug: 
[08:04:31] dbug: ==================== SystemLog ====================
[08:04:31] dbug: Log file: /tmp/helix/working/A53F08DC/w/A54E08E9/uploads/device-DNCENGTVOS-006-20250614_080252.log

Changes in #116538 made the error visible on iOS/tvOS. The error code indicates an invalid CPU instruction.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1072357
Error message validated: [Application 'net.dot.System.Runtime.Tests' terminated (with exit code '' and/or crashing signal '4).]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 6/19/2025 11:04:44 AM UTC

Report

Build Definition Test Pull Request
1088919 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117441
1087849 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1087846 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1075546 dotnet/runtime System.Runtime.Tests.WorkItemExecution #116772
1081661 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117044
1082710 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117190
1079832 dotnet/runtime System.Runtime.Tests.WorkItemExecution #116310
1081111 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117059
1081919 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117115
1081903 dotnet/runtime System.Runtime.Tests.WorkItemExecution #116848
1081890 dotnet/runtime System.Runtime.Tests.WorkItemExecution #114531
1081365 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117103
1081805 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117143
1081754 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1081764 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117051
1081673 dotnet/runtime System.Runtime.Tests.WorkItemExecution #116732
1081700 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1081522 dotnet/runtime System.Runtime.Tests.WorkItemExecution #116426
1075473 dotnet/runtime System.Runtime.Tests.WorkItemExecution #116745
1081650 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117140
1081647 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117128
1081549 dotnet/runtime System.Runtime.Tests.WorkItemExecution #116682
1081468 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117139
1081410 dotnet/runtime System.Runtime.Tests.WorkItemExecution #116411
1081406 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117135
1081380 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1081370 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1081319 dotnet/runtime System.Runtime.Tests.WorkItemExecution #115294
1081227 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117103
1081247 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1081241 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1081235 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117128
1081214 dotnet/runtime System.Runtime.Tests.WorkItemExecution #117125

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 33

Activity

  1. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    Known Build ErrorUse this to report build issues in the .NET Helix tab
    and removed
    untriagedNew issue has not been triaged by the area owner
    on Jun 19, 2025
  2. added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Jun 19, 2025
  3. added and removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Jun 19, 2025
  4. dotnet-policy-service commented on Jun 19, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  5. added this to the 10.0.0 milestone on Jun 19, 2025
  6. vitek-karas commented on Jun 19, 2025

    @vitek-karas
    Member

    Possibly related to #116714 as well.

  7. kotlarmilos commented on Jun 25, 2025

    @kotlarmilos
    MemberAuthor

    Stack trace of the failure:

    warning: System.Runtime.Tests was compiled with optimization - stepping may behave oddly; variables may not be available.
    (lldb) bt
    warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.
    * thread #12, name = '.NET TP Worker', stop reason = signal SIGBUS
      * frame #0: 0x000000010292de90 System.Runtime.Tests`sgen_try_alloc_obj_nolock(vtable=0x000000014ae660c0, size=20) at sgen-alloc.c:324 [opt]
        frame #1: 0x000000010292e144 System.Runtime.Tests`sgen_alloc_obj(vtable=0x000000014ae660c0, size=20) at sgen-alloc.c:446:8 [opt]
        frame #2: 0x0000000102a1f050 System.Runtime.Tests`mono_gc_alloc_obj(vtable=<unavailable>, size=<unavailable>) at sgen-mono.c:690:20 [opt]
        frame #3: 0x0000000102a11fa0 System.Runtime.Tests`mono_gc_alloc_handle_obj(vtable=<unavailable>, size=<unavailable>) at gc.c:1217:9 [opt]
        frame #4: 0x00000001029e1054 System.Runtime.Tests`mono_value_box_handle [inlined] mono_object_new_alloc_by_vtable(vtable=0x000000014ae660c0, error=0x000000016dc88688) at object.c:5507:23 [opt]
        frame #5: 0x00000001029e1044 System.Runtime.Tests`mono_value_box_handle(klass=0x000000014a3dbe60, value=0x000000016dc881e0, error=0x000000016dc88688) at object.c:6548:32 [opt]
        frame #6: 0x00000001029de18c System.Runtime.Tests`mono_value_box_checked(klass=0x000000014a3dbe60, value=0x000000016dc881e0, error=0x000000016dc88688) at object.c:6601:2 [opt]
        frame #7: 0x0000000102a33b40 System.Runtime.Tests`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=<unavailable>, exc=<unavailable>, error=<unavailable>) at mini-runtime.c:0 [opt]
        frame #8: 0x00000001029d64f4 System.Runtime.Tests`mono_runtime_invoke_checked [inlined] do_runtime_invoke(method=0x000000014ad95150, obj=0x0000000000000000, params=0x000000016dc886d8, exc=0x0000000000000000, error=0x000000016dc88688) at object.c:2572:11 [opt]
        frame #9: 0x00000001029d64b8 System.Runtime.Tests`mono_runtime_invoke_checked(method=0x000000014ad95150, obj=0x0000000000000000, params=0x000000016dc886d8, error=0x000000016dc88688) at object.c:2788:9 [opt]
        frame #10: 0x0000000102a390dc System.Runtime.Tests`mono_gsharedvt_constrained_call(mp=<unavailable>, cmethod=<unavailable>, klass=<unavailable>, info=<unavailable>, deref_args="\U00000001", args=0x000000016dc886d8) at jit-icalls.c:1499:6 [opt]
        frame #11: 0x0000000103914930 System.Runtime.Tests`wrapper_managed_to_native_object___icall_wrapper_mono_gsharedvt_constrained_call_intptr_intptr_intptr_intptr_intptr_intptr + 160
        frame #12: 0x0000000102ed8e30 System.Runtime.Tests`System_Linq_Enumerable_RangeSelectIterator_2_T_GSHAREDVT_TResult_GSHAREDVT_Fill_System_Span_1_TResult_GSHAREDVT_T_GSHAREDVT_System_Func_2_T_GSHAREDVT_TResult_GSHAREDVT(results=<unavailable>, start=<unavailable>, func=0x000000010c3a0da8) at <unknown>:1
        frame #13: 0x000000010399e73c System.Runtime.Tests`gsharedvt_trampoline + 220
        frame #14: 0x000000010399edbc System.Runtime.Tests`gsharedvt_out_trampoline + 220
        frame #15: 0x0000000102ed8afc System.Runtime.Tests`System_Linq_Enumerable_RangeSelectIterator_2_T_GSHAREDVT_TResult_GSHAREDVT_ToArray(this=0x000000010c117d60) at <unknown>:1
        frame #16: 0x000000010549a86c System.Runtime.Tests`System_Linq_Enumerable_ToArray_TSource_CHAR_System_Collections_Generic_IEnumerable_1_TSource_CHAR(source=0x000000010c117d60) at <unknown>:1
        frame #17: 0x00000001040b2cf8 System.Runtime.Tests`System_Tests_StringTests_NonRandomizedGetHashCode_EquivalentForStringAndSpan_int_bool(charValueLimit=65535, ignoreCase=false) at StringTests.cs:1007
        frame #18: 0x000000010390eb08 System.Runtime.Tests`wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 296
        frame #19: 0x0000000102a33ab4 System.Runtime.Tests`mono_jit_runtime_invoke(method=<unavailable>, obj=<unavailable>, params=<unavailable>, exc=<unavailable>, error=<unavailable>) at mini-runtime.c:3648:3 [opt]
        frame #20: 0x00000001029d64f4 System.Runtime.Tests`mono_runtime_invoke_checked [inlined] do_runtime_invoke(method=0x000000014be558c8, obj=0x0000000000000000, params=0x000000016de81ac0, exc=0x0000000000000000, error=0x000000016de81b90) at object.c:2572:11 [opt]
        frame #21: 0x00000001029d64b8 System.Runtime.Tests`mono_runtime_invoke_checked(method=0x000000014be558c8, obj=0x0000000000000000, params=0x000000016de81ac0, error=0x000000016de81b90) at object.c:2788:9 [opt]
        frame #22: 0x00000001029de828 System.Runtime.Tests`mono_runtime_try_invoke_byrefs(method=0x000000014be558c8, obj=<unavailable>, params_byref=0x000000016de81d90, exc=0x0000000000000000, error=0x000000016de81b90) at object.c:5209:16 [opt]
        frame #23: 0x00000001029983c0 System.Runtime.Tests`ves_icall_InternalInvoke(method_handle=<unavailable>, this_arg_handle=<unavailable>, params_byref=0x000000016de81d90, exception_out=MonoExceptionHandleOut @ x22, error=0x000000016de81b90) at icall.c:3667:11 [opt]
        frame #24: 0x00000001029a2388 System.Runtime.Tests`ves_icall_InternalInvoke_raw(a0=0x000000016de81c40, a1=0x000000016de81c48, a2=0x000000016de81d90, a3=0x000000016de81cc8) at icall-def.h:369:1 [opt]
        frame #25: 0x0000000103611920 System.Runtime.Tests`wrapper_managed_to_native_System_Reflection_RuntimeMethodInfo_InternalInvoke_object_intptr__System_Exception_ + 160
        frame #26: 0x0000000103603028 System.Runtime.Tests`System_Reflection_MethodBaseInvoker_InterpretedInvoke_Method_object_intptr_ + 120
        frame #27: 0x0000000103604514 System.Runtime.Tests`System_Reflection_MethodBaseInvoker_InvokeDirectByRefWithFewArgs_object_System_Span_1_object_System_Reflection_BindingFlags + 420
        frame #28: 0x00000001036041e8 System.Runtime.Tests`System_Reflection_MethodBaseInvoker_InvokeWithFewArgs_object_System_Reflection_BindingFlags_System_Reflection_Binder_object___System_Globalization_CultureInfo + 1720
        frame #29: 0x0000000103614024 System.Runtime.Tests`System_Reflection_RuntimeMethodInfo_Invoke_object_System_Reflection_BindingFlags_System_Reflection_Binder_object___System_Globalization_CultureInfo + 708
        frame #30: 0x0000000103614024 System.Runtime.Tests`System_Reflection_RuntimeMethodInfo_Invoke_object_System_Reflection_BindingFlags_System_Reflection_Binder_object___System_Globalization_CultureInfo + 708
    
  8. BrzVlad commented on Jul 29, 2025

    @BrzVlad
    Member

    This should be fixed

  9. locked and limited conversation to collaborators on Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarea-Codegen-AOT-monoblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'disabled-testThe test is disabled in source code against the issueos-iosApple iOS

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions