Skip to content

Crash in ToString_Async test on Apple mobile with CoreCLR R2R and interpreter #124044

Closed

Description

@kotlarmilos

Description

Apple mobile tests fail when running ToString_Async with CoreCLR R2R and interpreter fallback.

Crash dump:

Incident Identifier: 28FA96E1-107E-4CA8-9C2A-A022F67C6646
CrashReporter Key:   c5d0398236b71d65ab79982eef2d259fa34f0229
Hardware Model:      AppleTV5,3
Process:             System.Runtime.Tests [7578]
Path:                /private/var/containers/Bundle/Application/21A0EE86-DCDD-4647-A0DD-4A6A95FF05F3/System.Runtime.Tests.app/System.Runtime.Tests
Identifier:          net.dot.System.Runtime.Tests
Version:             1.0 (1)
Code Type:           ARM-64 (Native)
Role:                Background
Parent Process:      launchd [1]
Coalition:           net.dot.System.Runtime.Tests [2421]

Date/Time:           2026-02-05 05:14:52.2089 -0800
Launch Time:         2026-02-05 05:11:53.9444 -0800
OS Version:          Apple TVOS 26.2 (23K54)
Release Type:        User
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000006
Exception Codes: 0x0000000000000001, 0x0000000000000006
VM Region Info: 0x6 is not in any region.  Bytes before following region: 4298604538
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                   100378000-100388000 [   64K] r-x/r-x SM=COW  /var/containers/Bundle/Application/21A0EE86-DCDD-4647-A0DD-4A6A95FF05F3/System.Runtime.Tests.app/System.Runtime.Tests
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [7578]

Triggered by Thread:  10

Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0:
0   libsystem_kernel.dylib        	       0x1ac60a874 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1ac60b3e8 mach_msg2_internal + 72
2   libsystem_kernel.dylib        	       0x1ac60b378 mach_msg_overwrite + 524
3   libsystem_kernel.dylib        	       0x1ac60b160 mach_msg + 20
4   CoreFoundation                	       0x18ad8ac9c __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x18ad8b520 __CFRunLoopRun + 1180
6   CoreFoundation                	       0x18adb1438 _CFRunLoopRunSpecificWithOptions + 496
7   GraphicsServices              	       0x1cf03aabc GSEventRunModal + 116
8   UIKitCore                     	       0x1975910c8 -[UIApplication _run] + 772
9   UIKitCore                     	       0x197595660 UIApplicationMain + 148
10  System.Runtime.Tests          	       0x100380490 main + 68
11  dyld                          	       0x189add89c start + 2592

Thread 1 name:   Dispatch queue: com.apple.root.default-qos
Thread 1:
0   libsystem_kernel.dylib        	       0x1ac60af34 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1aab5c4a4 _pthread_cond_wait + 1040
2   System.Runtime.Tests.r2r.dylib	       0x15595f638 S_P_CoreLib_System_Threading_WaitSubsystem_ThreadWaitInfo__Wait + 712
3   System.Runtime.Tests.r2r.dylib	       0x15595d5a4 S_P_CoreLib_System_Threading_WaitSubsystem__Wait + 148
4   System.Runtime.Tests.r2r.dylib	       0x155953478 S_P_CoreLib_System_Threading_WaitHandle__WaitOneNoCheck + 856
5   System.Runtime.Tests.r2r.dylib	       0x155939c7c S_P_CoreLib_System_Threading_Condition__Wait + 300
6   System.Runtime.Tests.r2r.dylib	       0x15593f6b0 S_P_CoreLib_System_Threading_ManualResetEventSlim__Wait_4 + 896
7   System.Runtime.Tests.r2r.dylib	       0x1559681f0 S_P_CoreLib_System_Threading_Tasks_Task__SpinThenBlockingWait + 512
8   System.Runtime.Tests.r2r.dylib	       0x155967d9c S_P_CoreLib_System_Threading_Tasks_Task__InternalWaitCore + 380
9   System.Runtime.Tests.r2r.dylib	       0x155967c10 S_P_CoreLib_System_Threading_Tasks_Task__InternalWait + 48
10  System.Runtime.Tests.r2r.dylib	       0x1559f35e8 S_P_CoreLib_System_Runtime_CompilerServices_TaskAwaiter__HandleNonSuccessAndDebuggerNotification + 72
11  System.Runtime.Tests.r2r.dylib	       0x154ea1654 AppleTestRunner_SimpleTestRunner___Main_ + 100
12  libcoreclr.dylib              	       0x101077e3c CallDescrWorkerInternal + 132
13  libcoreclr.dylib              	       0x100ef60cc MethodDescCallSite::CallTargetWorker(unsigned long long const*, unsigned long long*, int) + 724
14  libcoreclr.dylib              	       0x100e007b0 RunMain(MethodDesc*, short, int*, PtrArray**) + 600
15  libcoreclr.dylib              	       0x100e00a9c Assembly::ExecuteMainMethod(PtrArray**, int) + 268
16  libcoreclr.dylib              	       0x100e1fb20 CorHost2::ExecuteAssembly(unsigned int, char16_t const*, int, char16_t const**, unsigned int*) + 648
17  libcoreclr.dylib              	       0x100c989cc coreclr_execute_assembly + 248
18  System.Runtime.Tests          	       0x100380b58 mono_ios_runtime_init + 420
19  libdispatch.dylib             	       0x19ff1d77c _dispatch_call_block_and_release + 24
20  libdispatch.dylib             	       0x19ff3519c _dispatch_client_callout + 12
21  libdispatch.dylib             	       0x19ff4f924 _dispatch_queue_override_invoke.cold.3 + 28
22  libdispatch.dylib             	       0x19ff21a90 _dispatch_queue_override_invoke + 772
23  libdispatch.dylib             	       0x19ff2dc48 _dispatch_root_queue_drain + 320
24  libdispatch.dylib             	       0x19ff2e3e0 _dispatch_worker_thread2 + 184
25  libsystem_pthread.dylib       	       0x1aab5b988 _pthread_wqthread + 228
26  libsystem_pthread.dylib       	       0x1aab5b828 start_wqthread + 8

Thread 2 name:  com.apple.uikit.eventfetch-thread
Thread 2:
0   libsystem_kernel.dylib        	       0x1ac60a874 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1ac60b3e8 mach_msg2_internal + 72
2   libsystem_kernel.dylib        	       0x1ac60b378 mach_msg_overwrite + 524
3   libsystem_kernel.dylib        	       0x1ac60b160 mach_msg + 20
4   CoreFoundation                	       0x18ad8ac9c __CFRunLoopServiceMachPort + 156
5   CoreFoundation                	       0x18ad8b520 __CFRunLoopRun + 1180
6   CoreFoundation                	       0x18adb1438 _CFRunLoopRunSpecificWithOptions + 496
7   Foundation                    	       0x18a411aac -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8   Foundation                    	       0x18a411ccc -[NSRunLoop(NSRunLoop) runUntilDate:] + 60
9   UIKitCore                     	       0x19735cd5c -[UIEventFetcher threadMain] + 324
10  Foundation                    	       0x18a434e34 __NSThread__start__ + 716
11  libsystem_pthread.dylib       	       0x1aab5cf8c _pthread_start + 104
12  libsystem_pthread.dylib       	       0x1aab5b834 thread_start + 8

Thread 3 name:  .NET SynchManager
Thread 3:
0   libsystem_kernel.dylib        	       0x1ac6169cc kevent + 8
1   libcoreclr.dylib              	       0x1010ae8dc CorUnix::CPalSynchronizationManager::ReadBytesFromProcessPipe(int, unsigned char*, int) + 488
2   libcoreclr.dylib              	       0x1010ae2d4 CorUnix::CPalSynchronizationManager::WorkerThread(void*) + 112
3   libcoreclr.dylib              	       0x1010b3f54 CorUnix::CPalThread::ThreadEntry(void*) + 364
4   libsystem_pthread.dylib       	       0x1aab5cf8c _pthread_start + 104
5   libsystem_pthread.dylib       	       0x1aab5b834 thread_start + 8

Thread 4:
0   libsystem_kernel.dylib        	       0x1ac60af34 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1aab5c4a4 _pthread_cond_wait + 1040
2   libcoreclr.dylib              	       0x1010ad39c CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 260
3   libcoreclr.dylib              	       0x1010ad08c CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 188
4   libcoreclr.dylib              	       0x1010afde4 CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int) + 1200
5   libcoreclr.dylib              	       0x1010af908 <deduplicated_symbol> + 84
6   libcoreclr.dylib              	       0x100fad118 CLREventBase::WaitEx(unsigned int, WaitMode) + 172
7   libcoreclr.dylib              	       0x100f2f93c FinalizerThread::WaitForFinalizerEvent(CLREvent*) + 44
8   libcoreclr.dylib              	       0x100f2fad0 FinalizerThread::FinalizerThreadWorkerIteration(void*) + 76
9   libcoreclr.dylib              	       0x100f2fa48 FinalizerThread::FinalizerThreadWorker(void*) + 28
10  libcoreclr.dylib              	       0x100ec9380 ManagedThreadBase::KickOff(void (*)(void*), void*) + 208
11  libcoreclr.dylib              	       0x100f2ff28 FinalizerThread::FinalizerThreadStart(void*) + 92
12  libcoreclr.dylib              	       0x1010b3f54 CorUnix::CPalThread::ThreadEntry(void*) + 364
13  libsystem_pthread.dylib       	       0x1aab5cf8c _pthread_start + 104
14  libsystem_pthread.dylib       	       0x1aab5b834 thread_start + 8

Thread 5:
0   libsystem_kernel.dylib        	       0x1ac60af34 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1aab5c4a4 _pthread_cond_wait + 1040
2   libSystem.Native.dylib        	       0x1003c90b8 SystemNative_LowLevelMonitor_TimedWait + 104
3   System.Runtime.Tests.r2r.dylib	       0x15595f508 S_P_CoreLib_System_Threading_WaitSubsystem_ThreadWaitInfo__Wait + 408
4   System.Runtime.Tests.r2r.dylib	       0x15595d5a4 S_P_CoreLib_System_Threading_WaitSubsystem__Wait + 148
5   System.Runtime.Tests.r2r.dylib	       0x155953478 S_P_CoreLib_System_Threading_WaitHandle__WaitOneNoCheck + 856
6   System.Runtime.Tests.r2r.dylib	       0x1559574d4 S_P_CoreLib_System_Threading_PortableThreadPool_GateThread__GateThreadStart + 708
7   libcoreclr.dylib              	       0x101077360 CallJittedMethodRetVoid + 36
8   libcoreclr.dylib              	       0x100f47b98 InvokeCalliStub(CalliStubParam*) + 164
9   libcoreclr.dylib              	       0x100f4b9a8 InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) + 13420
10  libcoreclr.dylib              	       0x100ea8580 ExecuteInterpretedMethod + 392
11  libcoreclr.dylib              	       0x1010760b4 InterpreterStubRetVoid + 20
12  System.Runtime.Tests.r2r.dylib	       0x15592f888 S_P_CoreLib_System_Threading_Thread__StartCallback + 248
13  libcoreclr.dylib              	       0x101077e3c CallDescrWorkerInternal + 132
14  libcoreclr.dylib              	       0x100ef5db8 DispatchCallSimple(unsigned long*, unsigned int, unsigned long, unsigned int) + 232
15  libcoreclr.dylib              	       0x100f0e114 KickOffThread_Worker(void*) + 144
16  libcoreclr.dylib              	       0x100ec9380 ManagedThreadBase::KickOff(void (*)(void*), void*) + 208
17  libcoreclr.dylib              	       0x100f0c318 KickOffThread(void*) + 188
18  libcoreclr.dylib              	       0x1010b3f54 CorUnix::CPalThread::ThreadEntry(void*) + 364
19  libsystem_pthread.dylib       	       0x1aab5cf8c _pthread_start + 104
20  libsystem_pthread.dylib       	       0x1aab5b834 thread_start + 8

Thread 6:
0   libsystem_kernel.dylib        	       0x1ac60af34 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1aab5c4a4 _pthread_cond_wait + 1040
2   libSystem.Native.dylib        	       0x1003c90b8 SystemNative_LowLevelMonitor_TimedWait + 104
3   System.Runtime.Tests.r2r.dylib	       0x15595f508 S_P_CoreLib_System_Threading_WaitSubsystem_ThreadWaitInfo__Wait + 408
4   System.Runtime.Tests.r2r.dylib	       0x15595d5a4 S_P_CoreLib_System_Threading_WaitSubsystem__Wait + 148
5   System.Runtime.Tests.r2r.dylib	       0x155953478 S_P_CoreLib_System_Threading_WaitHandle__WaitOneNoCheck + 856
6   System.Runtime.Tests.r2r.dylib	       0x155950800 S_P_CoreLib_System_Threading_TimerQueue__TimerThread + 224
7   libcoreclr.dylib              	       0x101077360 CallJittedMethodRetVoid + 36
8   libcoreclr.dylib              	       0x100f47b98 InvokeCalliStub(CalliStubParam*) + 164
9   libcoreclr.dylib              	       0x100f4b9a8 InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) + 13420
10  libcoreclr.dylib              	       0x100ea8580 ExecuteInterpretedMethod + 392
11  libcoreclr.dylib              	       0x1010760b4 InterpreterStubRetVoid + 20
12  System.Runtime.Tests.r2r.dylib	       0x15592f888 S_P_CoreLib_System_Threading_Thread__StartCallback + 248
13  libcoreclr.dylib              	       0x101077e3c CallDescrWorkerInternal + 132
14  libcoreclr.dylib              	       0x100ef5db8 DispatchCallSimple(unsigned long*, unsigned int, unsigned long, unsigned int) + 232
15  libcoreclr.dylib              	       0x100f0e114 KickOffThread_Worker(void*) + 144
16  libcoreclr.dylib              	       0x100ec9380 ManagedThreadBase::KickOff(void (*)(void*), void*) + 208
17  libcoreclr.dylib              	       0x100f0c318 KickOffThread(void*) + 188
18  libcoreclr.dylib              	       0x1010b3f54 CorUnix::CPalThread::ThreadEntry(void*) + 364
19  libsystem_pthread.dylib       	       0x1aab5cf8c _pthread_start + 104
20  libsystem_pthread.dylib       	       0x1aab5b834 thread_start + 8

Thread 7:
0   System.Runtime.Tests.r2r.dylib	       0x157f495ec xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1__RunTestClassesAsync_d__28<System___Canon>__MoveNext + 1244
1   libcoreclr.dylib              	       0x101077360 CallJittedMethodRetVoid + 36
2   libcoreclr.dylib              	       0x100f47b98 InvokeCalliStub(CalliStubParam*) + 164
3   libcoreclr.dylib              	       0x100f4b9a8 InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) + 13420
4   libcoreclr.dylib              	       0x100ea8580 ExecuteInterpretedMethod + 392
5   libcoreclr.dylib              	       0x1010760b4 InterpreterStubRetVoid + 20
6   System.Runtime.Tests.r2r.dylib	       0x15854fc80 S_P_CoreLib_System_Runtime_CompilerServices_AsyncMethodBuilderCore__Start<xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1__RunTestClassesAsync_d__28<System___Canon>> + 128
7   System.Runtime.Tests.r2r.dylib	       0x157f4236c xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1<System___Canon>__RunTestClassesAsync + 108
8   System.Runtime.Tests.r2r.dylib	       0x157f48b5c xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1__RunAsync_d__27<System___Canon>__MoveNext + 1084
9   libcoreclr.dylib              	       0x101077360 CallJittedMethodRetVoid + 36
10  libcoreclr.dylib              	       0x100f47b98 InvokeCalliStub(CalliStubParam*) + 164
11  libcoreclr.dylib              	       0x100f4b9a8 InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) + 13420
12  libcoreclr.dylib              	       0x100ea8580 ExecuteInterpretedMethod + 392
13  libcoreclr.dylib              	       0x1010760b4 InterpreterStubRetVoid + 20
14  System.Runtime.Tests.r2r.dylib	       0x15854f6f0 S_P_CoreLib_System_Runtime_CompilerServices_AsyncMethodBuilderCore__Start<xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1__RunAsync_d__27<System___Canon>> + 128
15  System.Runtime.Tests.r2r.dylib	       0x157f422c8 xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1<System___Canon>__RunAsync + 104
16  System.Runtime.Tests.r2r.dylib	       0x156b76dd4 xunit_execution_dotnet_Xunit_Sdk_XunitTestAssemblyRunner__RunTestCollectionAsync_d__18__MoveNext + 804
17  System.Runtime.Tests.r2r.dylib	       0x15846ef28 S_P_CoreLib_System_Runtime_CompilerServices_AsyncMethodBuilderCore__Start<xunit_execution_dotnet_Xunit_Sdk_XunitTestAssemblyRunner__RunTestCollectionAsync_d__18> + 104
18  System.Runtime.Tests.r2r.dylib	       0x156b50fd8 xunit_execution_dotnet_Xunit_Sdk_XunitTestAssemblyRunner__RunTestCollectionAsync + 72
19  System.Runtime.Tests.r2r.dylib	       0x157f463b0 xunit_execution_dotnet_Xunit_Sdk_TestAssemblyRunner_1__RunTestCollectionsAsync_d__42<System___Canon>__MoveNext + 416
20  libcoreclr.dylib              	       0x101077360 CallJittedMethodRetVoid + 36
21  libcoreclr.dylib              	       0x100f47b98 InvokeCalliStub(CalliStubParam*) + 164
22  libcoreclr.dylib              	       0x100f4b9a8 InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) + 13420
23  libcoreclr.dylib              	       0x100ea8580 ExecuteInterpretedMethod + 392
24  libcoreclr.dylib              	       0x1010760b4 InterpreterStubRetVoid + 20
420 libcoreclr.dylib              	       0x101077360 CallJittedMethodRetVoid + 36
421 libcoreclr.dylib              	       0x100f47b98 InvokeCalliStub(CalliStubParam*) + 164
422 libcoreclr.dylib              	       0x100f4b9a8 InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) + 13420
423 libcoreclr.dylib              	       0x100ea8580 ExecuteInterpretedMethod + 392
424 libcoreclr.dylib              	       0x1010760b4 InterpreterStubRetVoid + 20
425 libcoreclr.dylib              	       0x101077360 CallJittedMethodRetVoid + 36
426 libcoreclr.dylib              	       0x100f47b98 InvokeCalliStub(CalliStubParam*) + 164
427 libcoreclr.dylib              	       0x100f4b9a8 InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) + 13420
428 libcoreclr.dylib              	       0x100ea8580 ExecuteInterpretedMethod + 392
429 libcoreclr.dylib              	       0x1010760b4 InterpreterStubRetVoid + 20
430 System.Runtime.Tests.r2r.dylib	       0x15593aa28 S_P_CoreLib_System_Threading_ExecutionContext__RunInternal + 136
431 libcoreclr.dylib              	       0x101077360 CallJittedMethodRetVoid + 36
432 libcoreclr.dylib              	       0x100f4c2c0 InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) + 15748
433 libcoreclr.dylib              	       0x100ea8580 ExecuteInterpretedMethod + 392
434 libcoreclr.dylib              	       0x1010760b4 InterpreterStubRetVoid + 20
435 System.Runtime.Tests.r2r.dylib	       0x156b754dc xunit_execution_dotnet_Xunit_Sdk_AsyncTestSyncContext___c__DisplayClass7_0___Post_b__0 + 28
436 System.Runtime.Tests.r2r.dylib	       0x156b806c0 xunit_execution_dotnet_Xunit_Sdk_XunitWorkerThread___c___QueueUserWorkItem_b__5_0 + 48
437 System.Runtime.Tests.r2r.dylib	       0x15593aa28 S_P_CoreLib_System_Threading_ExecutionContext__RunInternal + 136
438 System.Runtime.Tests.r2r.dylib	       0x155966ab4 S_P_CoreLib_System_Threading_Tasks_Task__ExecuteWithThreadLocal + 228
439 System.Runtime.Tests.r2r.dylib	       0x15592f878 S_P_CoreLib_System_Threading_Thread__StartCallback + 232
440 libcoreclr.dylib              	       0x101077e3c CallDescrWorkerInternal + 132
441 libcoreclr.dylib              	       0x100ef5db8 DispatchCallSimple(unsigned long*, unsigned int, unsigned long, unsigned int) + 232
442 libcoreclr.dylib              	       0x100f0e114 KickOffThread_Worker(void*) + 144
443 libcoreclr.dylib              	       0x100ec9380 ManagedThreadBase::KickOff(void (*)(void*), void*) + 208
444 libcoreclr.dylib              	       0x100f0c318 KickOffThread(void*) + 188
445 libcoreclr.dylib              	       0x1010b3f54 CorUnix::CPalThread::ThreadEntry(void*) + 364
446 libsystem_pthread.dylib       	       0x1aab5cf8c _pthread_start + 104
447 libsystem_pthread.dylib       	       0x1aab5b834 thread_start + 8

Thread 8:

Thread 9:
0   libsystem_kernel.dylib        	       0x1ac60af34 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1aab5c4a4 _pthread_cond_wait + 1040
2   libSystem.Native.dylib        	       0x1003c90b8 SystemNative_LowLevelMonitor_TimedWait + 104
3   System.Runtime.Tests.r2r.dylib	       0x15595f508 S_P_CoreLib_System_Threading_WaitSubsystem_ThreadWaitInfo__Wait + 408
4   System.Runtime.Tests.r2r.dylib	       0x15595d5a4 S_P_CoreLib_System_Threading_WaitSubsystem__Wait + 148
5   System.Runtime.Tests.r2r.dylib	       0x15595b4b0 S_P_CoreLib_System_Threading_LowLevelLifoSemaphore__WaitForSignal + 320
6   System.Runtime.Tests.r2r.dylib	       0x15595a608 S_P_CoreLib_System_Threading_PortableThreadPool_WorkerThread__WorkerThreadStart + 248
7   libcoreclr.dylib              	       0x101077360 CallJittedMethodRetVoid + 36
8   libcoreclr.dylib              	       0x100f47b98 InvokeCalliStub(CalliStubParam*) + 164
9   libcoreclr.dylib              	       0x100f4b9a8 InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) + 13420
10  libcoreclr.dylib              	       0x100ea8580 ExecuteInterpretedMethod + 392
11  libcoreclr.dylib              	       0x1010760b4 InterpreterStubRetVoid + 20
12  System.Runtime.Tests.r2r.dylib	       0x15592f888 S_P_CoreLib_System_Threading_Thread__StartCallback + 248
13  libcoreclr.dylib              	       0x101077e3c CallDescrWorkerInternal + 132
14  libcoreclr.dylib              	       0x100ef5db8 DispatchCallSimple(unsigned long*, unsigned int, unsigned long, unsigned int) + 232
15  libcoreclr.dylib              	       0x100f0e114 KickOffThread_Worker(void*) + 144
16  libcoreclr.dylib              	       0x100ec9380 ManagedThreadBase::KickOff(void (*)(void*), void*) + 208
17  libcoreclr.dylib              	       0x100f0c318 KickOffThread(void*) + 188
18  libcoreclr.dylib              	       0x1010b3f54 CorUnix::CPalThread::ThreadEntry(void*) + 364
19  libsystem_pthread.dylib       	       0x1aab5cf8c _pthread_start + 104
20  libsystem_pthread.dylib       	       0x1aab5b834 thread_start + 8

Thread 10 Crashed:
0   libcoreclr.dylib              	       0x100e35c30 StackTraceInfo::AppendElementImpl(Object*, unsigned long, unsigned long, MethodDesc*, CrawlFrame*, Thread*, int) + 516
1   libcoreclr.dylib              	       0x100e228d0 AsyncHelpers_AddContinuationToExInternal + 220
2   System.Runtime.Tests.r2r.dylib	       0x1574e6af4 S_P_CoreLib_System_Runtime_CompilerServices_AsyncHelpers_RuntimeAsyncTask_1<S_P_CoreLib_System_Threading_Tasks_VoidTaskResult>__UnwindToPossibleHandler + 148
3   System.Runtime.Tests.r2r.dylib	       0x1574e6934 S_P_CoreLib_System_Runtime_CompilerServices_AsyncHelpers_RuntimeAsyncTask_1<S_P_CoreLib_System_Threading_Tasks_VoidTaskResult>__DispatchContinuations + 788
4   System.Runtime.Tests.r2r.dylib	       0x15594aaa4 S_P_CoreLib_System_Threading_ThreadPoolWorkQueue__Dispatch + 500
5   System.Runtime.Tests.r2r.dylib	       0x15595a7b4 S_P_CoreLib_System_Threading_PortableThreadPool_WorkerThread__WorkerDoWork + 132
6   System.Runtime.Tests.r2r.dylib	       0x15595a5f0 S_P_CoreLib_System_Threading_PortableThreadPool_WorkerThread__WorkerThreadStart + 224
7   libcoreclr.dylib              	       0x101077360 CallJittedMethodRetVoid + 36
8   libcoreclr.dylib              	       0x100f47b98 InvokeCalliStub(CalliStubParam*) + 164
9   libcoreclr.dylib              	       0x100f4b9a8 InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*) + 13420
10  libcoreclr.dylib              	       0x100ea8580 ExecuteInterpretedMethod + 392
11  libcoreclr.dylib              	       0x1010760b4 InterpreterStubRetVoid + 20
12  System.Runtime.Tests.r2r.dylib	       0x15592f888 S_P_CoreLib_System_Threading_Thread__StartCallback + 248
13  libcoreclr.dylib              	       0x101077e3c CallDescrWorkerInternal + 132
14  libcoreclr.dylib              	       0x100ef5db8 DispatchCallSimple(unsigned long*, unsigned int, unsigned long, unsigned int) + 232
15  libcoreclr.dylib              	       0x100f0e114 KickOffThread_Worker(void*) + 144
16  libcoreclr.dylib              	       0x100ec9380 ManagedThreadBase::KickOff(void (*)(void*), void*) + 208
17  libcoreclr.dylib              	       0x100f0c318 KickOffThread(void*) + 188
18  libcoreclr.dylib              	       0x1010b3f54 CorUnix::CPalThread::ThreadEntry(void*) + 364
19  libsystem_pthread.dylib       	       0x1aab5cf8c _pthread_start + 104
20  libsystem_pthread.dylib       	       0x1aab5b834 thread_start + 8


Thread 10 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000004   x1: 0x0000000127ca1238   x2: 0x0000000000000000   x3: 0x0000000127ca12c0
    x4: 0xffffffffffffff58   x5: 0x0000000000000010   x6: 0x0000000000000000   x7: 0x00000001703f7618
    x8: 0x0000000127ca1274   x9: 0x0000000000000010  x10: 0x0000000000000010  x11: 0x0000000000000002
   x12: 0x00000001574e6708  x13: 0x00000001703f9dc0  x14: 0x0000000142d2b9e0  x15: 0x0000000000000002
   x16: 0x00000000000000e8  x17: 0x000000014a547b60  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x0000000000000000  x21: 0x00000001703f7480  x22: 0x0000000127ca1058  x23: 0x00000001703f7480
   x24: 0x0000000000000000  x25: 0x0000000000000000  x26: 0x0000000000000121  x27: 0x000000014a700000
   x28: 0x000000014a700020   fp: 0x00000001703f7530   lr: 0x0000000100e35bd0
    sp: 0x00000001703f7420   pc: 0x0000000100e35c30 cpsr: 0x60000000
   far: 0x0000000000000006  esr: 0x92000005 (Data Abort) byte read Translation fault

Binary Images:
       0x100378000 -        0x100387fff System.Runtime.Tests arm64  <3998a3f7b6fe3e859a884ed0bf83cc14> /var/containers/Bundle/Application/21A0EE86-DCDD-4647-A0DD-4A6A95FF05F3/System.Runtime.Tests.app/System.Runtime.Tests
       0x100c94000 -        0x101143fff libcoreclr.dylib arm64  <27ddfebad90d3bd3bb16af7875642b98> /private/var/containers/Bundle/Application/21A0EE86-DCDD-4647-A0DD-4A6A95FF05F3/System.Runtime.Tests.app/libcoreclr.dylib
       0x1003bc000 -        0x1003cbfff libSystem.Native.dylib arm64  <30dfba4ce50733a8ac9f2abdcbcdab26> /private/var/containers/Bundle/Application/21A0EE86-DCDD-4647-A0DD-4A6A95FF05F3/System.Runtime.Tests.app/libSystem.Native.dylib
       0x100640000 -        0x10078bfff libSystem.IO.Compression.Native.dylib arm64  <62aacdbce06138f5be98224cab7c6b41> /private/var/containers/Bundle/Application/21A0EE86-DCDD-4647-A0DD-4A6A95FF05F3/System.Runtime.Tests.app/libSystem.IO.Compression.Native.dylib
       0x1003e0000 -        0x1003ebfff libSystem.Globalization.Native.dylib arm64  <abcda6ac8d5f338f9054cc548ad2e587> /private/var/containers/Bundle/Application/21A0EE86-DCDD-4647-A0DD-4A6A95FF05F3/System.Runtime.Tests.app/libSystem.Globalization.Native.dylib
       0x100434000 -        0x10044bfff libSystem.Security.Cryptography.Native.Apple.dylib arm64  <d81c03c3b23737c2a3310050b5a4f853> /private/var/containers/Bundle/Application/21A0EE86-DCDD-4647-A0DD-4A6A95FF05F3/System.Runtime.Tests.app/libSystem.Security.Cryptography.Native.Apple.dylib
       0x1004e0000 -        0x1004ebfff libobjc-trampolines.dylib arm64  <17821759a8463745a9f2b3bdf1ad8de3> /usr/lib/libobjc-trampolines.dylib
       0x154e9c000 -        0x158d9bfff System.Runtime.Tests.r2r.dylib arm64  <a49ada4fda1e3533b718bc22e2f10f40> /private/var/containers/Bundle/Application/21A0EE86-DCDD-4647-A0DD-4A6A95FF05F3/System.Runtime.Tests.app/System.Runtime.Tests.r2r.dylib
       0x1ac60a000 -        0x1ac640f33 libsystem_kernel.dylib arm64  <e6961759efa13c8f9c506cc5380d2fb8> /usr/lib/system/libsystem_kernel.dylib
       0x18ad81000 -        0x18b2ed03f CoreFoundation arm64  <cbc4d756211b38ddb13acd4ca4d15ab4> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
       0x1cf038000 -        0x1cf04005f GraphicsServices arm64  <2dbb26d48df832ccb764557d98b9c3c7> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
       0x196614000 -        0x1983ed9df UIKitCore arm64  <a339d38a9dc5387097dcce0138865f2c> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
       0x189ac7000 -        0x189b43a83 dyld arm64  <378b84f9b7e137168714d9b814ccfa2b> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? unknown-arch  <00000000000000000000000000000000> ???
       0x1aab5b000 -        0x1aab6654b libsystem_pthread.dylib arm64  <96b5ed60fb5d32029560a1cc1d85dcf3> /usr/lib/system/libsystem_pthread.dylib
       0x19ff1c000 -        0x19ff5dabf libdispatch.dylib arm64  <9c06acb8be2636ef91b28749452a3778> /usr/lib/system/libdispatch.dylib
       0x189b44000 -        0x18a8c4c1f Foundation arm64  <7e696d3f7e273f3ba26f3e53fd01ba58> /System/Library/Frameworks/Foundation.framework/Foundation

EOF

Activity

  1. added this to the 11.0.0 milestone on Feb 5, 2026
  2. dotnet-policy-service commented on Feb 5, 2026

    @dotnet-policy-service
    Contributor

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

  3. dotnet-policy-service commented on Feb 5, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @BrzVlad, @janvorli, @kg
    See info in area-owners.md if you want to be subscribed.

  4. rcj1 commented on Feb 5, 2026

    @rcj1
    Contributor

    This appears to be caused by a bad DiagnosticIP in the interpreter. For example when I run

    public static class Program
    {
        public static async Task Main(string[] args)
        {
            try
            {
                await Helper1();
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Exception caught in Main: {ex}");
            }
        }
    
        static async Task Helper1()
        {
            await Task.Delay(100);
            throw new Exception("Exception from Helper1");
        }
    }

    with runtime-async enabled and interpreter enabled, we assert on an invalid CodeInfo in AsyncHelpers_AddContinuationToExInternal with argument diagnosticIP = 0x0000015b3c7d7624.

  5. added
    disabled-testThe test is disabled in source code against the issue
    on Feb 6, 2026
  6. janvorli commented on Feb 6, 2026

    @janvorli
    Member

    I can repro this failure on macOS arm64 in the System.Text.Json.Tests suite when running fully interpreted (DOTNET_InterpMode=3). The AsyncHelpers_AddContinuationToExInternal method gets diagnosticIP that is clearly pointing to interpreted code, but the CodeInfo doesn't recognize it as managed code. And neither does SOS ip2md.

    I wonder if the code that the diagnosticIP is pointing to got already unloaded. That could explain this.

  7. jakobbotsch commented on Feb 25, 2026

    @jakobbotsch
    Member

    The EH async tests (src/tests/async/async.csproj) fail consistently under DOTNET_InterpMode=3 on Windows with

    Assert failure(PID 31540 [0x00007b34], Thread: 36844 [0x8fec]): codeInfo.IsValid()
    
    CORECLR! AsyncHelpers_AddContinuationToExInternal + 0x270 (0x00007ff9`84f00850)
    CORECLR! CallJittedMethodRetVoid + 0x14 (0x00007ff9`855b9444)
    CORECLR! InvokeManagedMethod + 0x5F6 (0x00007ff9`852930a6)
    CORECLR! `InvokeUnmanagedMethodWithTransition'::`3'::__Body::Run + 0xEA (0x00007ff9`8529435a)
    CORECLR! InvokeUnmanagedMethodWithTransition + 0xC3 (0x00007ff9`85293c63)
    CORECLR! InterpExecMethod + 0x36D8 (0x00007ff9`8528dbe8)
    CORECLR! InterpreterCodeManager::CallFunclet + 0x1A1 (0x00007ff9`84f26e61)
    CORECLR! CallCatchFunclet + 0x38E (0x00007ff9`854fb97e)
    CORECLR! DispatchExSecondPass + 0x252 (0x00007ff9`854fc7b2)
    CORECLR! DispatchManagedException + 0x5C6 (0x00007ff9`854fcd96)
    

    I am disabling the async EH tests under interpreter against this issue in #124798

  8. janvorli commented on Feb 25, 2026

    @janvorli
    Member

    cc @davidwrighton who's planning to look into this issue.

  9. added a commit that references this issue on Mar 7, 2026
    777eae3
  10. locked and limited conversation to collaborators on Apr 6, 2026
  11. added a commit that references this issue on May 20, 2026
    e2f017e
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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions